Results 1 to 3 of 3

Thread: RSS Ticker (Ajax invocation)

  1. #1
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default RSS Ticker (Ajax invocation)

    I like this script. It works well for what I need. Is there a modification to list more than one headline though? In some instances a "ticker" is not needed as much as a headline list. Along with that, I do not see an edit option to make links open in a new window. The XML tag <link> is not accepting the target="new" attribute. TIA

    I am referring to:

    http://www.dynamicdrive.com/dynamici...ajax/index.htm

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

    Default

    Regarding the first question, unfortunately no, as this is a ticker script after all. The next RSS based script I'll post most likely will be something more static, allowing you to display a few news at once, for example, and non changing.

    You can make most basic changes to the way each RSS item is displayed by editting rssticker.js, specifically, the rotatemsg() function. In your case:

    Code:
    var linktitle='<div class="rsstitle"><a href="'+this.link[this.pointer]+'" target="_new">'+this.title[this.pointer]+'</a></div>'
    should do it.

  3. #3
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sheesh I am not sure how I missed that. I looked everywhere but the JS file. Thanks for that.

    I understand on the ticker/static part. I was stretching it. Great script! Thank you!

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
  •