Results 1 to 3 of 3

Thread: Disable hyperlinks ajax rss ticker

  1. #1
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Disable hyperlinks ajax rss ticker

    1) Script Title: gAjax RSS Ticker

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...rssticker.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.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:

    Code:
    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:

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

  3. #3
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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 ?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •