PDA

View Full Version : Disable hyperlinks ajax rss ticker



GIRLSONPOLAROID
03-28-2011, 08:27 PM
1) Script Title: gAjax RSS Ticker

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

3) Describe problem:

I'm using the description mode (Label, date, description. not snippet). I'd like to change hyperlinks display into descriptions. They are of course blue and underlined. I want them like the rest of the description (in my case: 9px and lightgray). Active or not.

Thx a lot.

ddadmin
03-28-2011, 11:24 PM
If by disable you just mean style your links so they look like regular text, just use CSS to target the "a" element of your RSS ticker containers based on the laters' ID attributes. For example, lets say this is your first ticker:


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()

It has an ID attribute of "example1", so in your CSS, you can modify the look of its links with a rule such as:


<style>
#example1 a{
color:gray;
}
</style>

GIRLSONPOLAROID
03-29-2011, 10:39 AM
It works like a charm! Thx you man!

I just added "text-decoration:none;" so it's not underlined anymore

#example1 a{
color:lightgray;
text-decoration:none;
}


But I'm using this lines so the description text is lightgray and 9px

#example1 div{
color: lightgray;
font-size: 9px;
}

do i have to keep them ?