PDA

View Full Version : gAjax RSS Ticker (hosted)



jayradioguy
01-03-2009, 10:52 AM
1) Script Title: gAjax RSS Ticker (hosted)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/gajaxrssticker.htm

3) Describe problem: How can I specify a font style for the "snippet" parameter? You've defined .titlefield, .datefield and .labelfield, but nothing for the snippets. (I tried .snippetfield, but no go.)

Thanks,

Jay

ddadmin
01-04-2009, 10:21 AM
Well, the snippet portion is just all the "other" text within each feed container. If you've set the containers to be DIV tags, ie:


var cssfeed=new gfeedrssticker("example1", "example1class", 2000, "_new")
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("div") //Wrap each entry with a DIV tag
cssfeed.filterfeed(10, "date") //Show 10 entries, sort by date
cssfeed.entries_per_page(1)
cssfeed.init()

Then, to style that text in general, you'd do something like the following in your CSS:


#example1 div{
color: brown;
}