Results 1 to 2 of 2

Thread: Advanced RSS ticker script

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

    Cool Advanced RSS ticker script

    1) Script Title: Advanced RSS Ajax Ticker Script (Ajax invocation)

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

    3) Describe problem: Trying to limit how much content is displayed in the rss feed. title is ok, date is ok, but can not limit the amount of description displayed. Anybody know how to do this?

    thanks

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

    Default

    Welcome to the forums, and please use a more descriptive title for your threads (I've edited it this time).

    To your question, the easiest way would just be to open up rssticker.js, find the below line, and add to it the code in red:

    Code:
    this.description[i]=this.feeditems[i].getElementsByTagName("description")[0].firstChild.nodeValue
    this.description[i]=this.description[i].substring(0, 100)
    where 100 means you only want to show the first 100 characters.

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
  •