Hello,
1) Script Title: Advanced RSS Ticker (Ajax invocation)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ajax/index.htm
3) Describe problem: it is possible to put a limit of a number of words they are displays in the script?
bye
Hello,
1) Script Title: Advanced RSS Ticker (Ajax invocation)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ajax/index.htm
3) Describe problem: it is possible to put a limit of a number of words they are displays in the script?
bye
Edit: Erroneous code. Removed. See below for correct changes.
Last edited by ddadmin; 01-22-2008 at 04:18 AM.
re,
i try this:
but nothing appears after that.. error of syntax? (i have remove feeddate for my utilisation)Code:var tickercontent=linktitle.substring(0, 20)+description //STRING FOR FEED CONTENTS
bye
Ah yes, forget what I said above, the substring() function should be called on earlier, before the entire HTML is returned already. So something like:
Code:var linktitle='<div class="rsstitle"><a href="'+this.link[this.pointer]+'">'+this.title[this.pointer].substring(0, 20)+'</a></div>' var description='<div class="rssdescription">'+this.description[this.pointer].substring(0, 100)+'</div>'
thanks
so, last question: how to put a limit of the number of articles published of the feed ?
bye
Limiting the number of feeds that get returned, among other things, is controlled by LastRSS. Inside bridge.php, try adding the below line in red:
See here for more info: http://lastrss.oslab.net/Code:$rss->date_format = 'M d, Y g:i:s A'; //date format of RSS item. See PHP date() function for possible input. $rss->items_limit = 5 ; //return 5 items only
Bookmarks