Results 1 to 3 of 3

Thread: Advanced RSS Ticker (Ajax invocation) - Limit Description

  1. #1
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Advanced RSS Ticker (Ajax invocation) - Limit Description

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

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tickerajax.zip

    3) Describe problem:

    I was wondering if there is a way to limit the letters in the description to something.

    At the moment if i have a rss feed with alot of text to blows out my page.

    Regards,
    Scott

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

    Default

    The easiest way is probably just to edit rssticker.js. Locate the line:

    Code:
    var description='<div class="rssdescription">'+this.description[this.pointer]+'</div>'
    and change that to:

    Code:
    var description='<div class="rssdescription">'+this.description[this.pointer].substr(0, 200)+'</div>'
    200 above means the max number of characters displayed will be 200.

  3. #3
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello

    Thanks for your help worked a treat.

    Again thank you very much.

    Regards,
    Scott

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
  •