Results 1 to 3 of 3

Thread: RSS Feeds Displayer

  1. #1
    Join Date
    Jun 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default RSS Feeds Displayer

    1) Script Title: gAjax RSS Feeds Displayer (hosted)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...sdisplayer.htm

    3) Describe problem:
    Forgive me for being not a programmer and not an English native speaker, but I would love to display mixed rss-feeds with this script on my website. The problem is, I want to display them with alternating background colors, for odd items for example gray while displaying even items with a white background. Does someone know the way to do this?

    Thx,
    Maurice

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

    Default

    Sure, try the below modified .js file for the script. It adds an "odd" and "even" CSS class to each entry. Then in your CSS, you can do something like:

    Code:
    #example1 .even{
    background: gray;
    }
    
    #example1 .odd{
    background: yellow;
    }
    where "example1" is the ID of your RSS Feeds instance to alternate the background colors of the output.

  3. #3
    Join Date
    Jun 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank U very much! This works fine!

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
  •