|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
#1
|
|||
|
|||
|
1) Script Title: gAjax RSS Feeds Displayer
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...sdisplayer.htm 3) Describe problem: I'd like to have my news displayed randomly (instead of sort by date, label or name), is there any way to do that? Thank you, |
|
#2
|
|||
|
|||
|
May I give it a bump? :P
Anyone has solution yet? |
|
#3
|
||||
|
||||
|
Sure, try the attached modified .js file, which adds an additional sort string of "random", such as:
Code:
<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, "random") //Show 10 entries, sort by random
cssfeed.init() //Always call this last
</script>
__________________
DD Admin |
| The Following User Says Thank You to ddadmin For This Useful Post: | ||
khicon (08-08-2008) | ||
|
#4
|
|||
|
|||
|
Thank you!
It works like charm.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|