Go Back   Dynamic Drive Forums > DD Scripts > Dynamic Drive scripts help
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 08-07-2008, 03:39 AM
khicon khicon is offline
New Comer (less than 5 posts)
 
Join Date: Aug 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default Random news in gAjax RSS Feeds Displayer

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,
Reply With Quote
  #2  
Old 08-08-2008, 06:34 AM
khicon khicon is offline
New Comer (less than 5 posts)
 
Join Date: Aug 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

May I give it a bump? :P

Anyone has solution yet?
Reply With Quote
  #3  
Old 08-08-2008, 07:44 AM
ddadmin's Avatar
ddadmin ddadmin is offline
Administrator
 
Join Date: Aug 2004
Posts: 7,627
Thanks: 2
Thanked 639 Times in 629 Posts
Blog Entries: 13
Default

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>
Attached Files
File Type: js gfeedfetcher.js (6.1 KB, 70 views)
__________________
DD Admin
Reply With Quote
The Following User Says Thank You to ddadmin For This Useful Post:
khicon (08-08-2008)
  #4  
Old 08-08-2008, 12:52 PM
khicon khicon is offline
New Comer (less than 5 posts)
 
Join Date: Aug 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you!
It works like charm.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:33 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.