hofleverancier
08-17-2013, 09:51 PM
Hello all,
I use the gAjax RSS Feeds Displayer v2.0 (http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm). How can is shorten a line of text. (substring) I only want to show for example the first 25 letters of a feed. What do i need to do?
Need your help, thanks.
Best regards, Dan
Code i use:
gfeedfetcher.js : http://www.dynamicdrive.com/dynamicindex18/gfeedfetcher.js
HTML:
<script type="text/javascript">
var cssfeed=new gfeedfetcher("example1", "example1class", "")
cssfeed.addFeed("CSS Drive", "http://www.cssdrive.com/index.php/news/rss_2.0/") //Specify "label" plus URL to RSS feed
cssfeed.displayoptions("date") //show the specified additional fields
cssfeed.setentrycontainer("li") //Display each entry as a list (li element)
cssfeed.filterfeed(10, "title") //Show 10 entries, sort by date
cssfeed.init() //Always call this last
</script>
I use the gAjax RSS Feeds Displayer v2.0 (http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm). How can is shorten a line of text. (substring) I only want to show for example the first 25 letters of a feed. What do i need to do?
Need your help, thanks.
Best regards, Dan
Code i use:
gfeedfetcher.js : http://www.dynamicdrive.com/dynamicindex18/gfeedfetcher.js
HTML:
<script type="text/javascript">
var cssfeed=new gfeedfetcher("example1", "example1class", "")
cssfeed.addFeed("CSS Drive", "http://www.cssdrive.com/index.php/news/rss_2.0/") //Specify "label" plus URL to RSS feed
cssfeed.displayoptions("date") //show the specified additional fields
cssfeed.setentrycontainer("li") //Display each entry as a list (li element)
cssfeed.filterfeed(10, "title") //Show 10 entries, sort by date
cssfeed.init() //Always call this last
</script>