Results 1 to 6 of 6

Thread: Pausing up-down scroller

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

    Default Pausing up-down scroller

    I'm trying to display more than [3] items in my array. So long as I only try to display pausecontent[0], [1], and [2] it works fine. When I go to try and add a fourth item, ie pausecontent[3] the script goes blank. Trying to use this for a client who want to display about 20 article headlines.

    Is there a variable I'm missing that needs to be set to the number of display items?

    url http://lonestarsecuritiesre.com.previewmysite.com

    I apologize if this question has been resolved in a previous post. Looked hard but didn't see it.

    PS I'll put the dynamic drive link on this page as soon as I get this little problem resolved.

    Thanks
    Buck

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

    Default

    The script definitely can support an arbitrary number of array items- I just verified this. The only problem I can think of is that the HTML in your 4th content contains something invalid, causing the script to return an error.

    Verify that this is the case by using something very simple as the message content:

    Code:
    pausecontent[3]='Third content here'

  3. #3
    Join Date
    Mar 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem Continues to Plague Me

    Thanks...I believe I may have created the problem by trying to put a space between each pausecontent[x] to aid in readability. That appears to be the culprit that generated the problem...but I'm not sure of that.

    One item that might help non-javascript writers (such as myself) with this script is the need for instructions to kill / delete in the <body> the code for whichever scroller you do not want to show. Kill the <br /> tag as well!

    Bottom Line: I'm not positive about what I did to generate the problem in the first place. But she's cooking now.

    Thanks
    Buck

  4. #4
    Join Date
    Mar 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Found the Problem!

    OK...I was including articles in the scroller list. One article had they word ...year's.. in it. Obviously the single quote mark is used to indicate the end of a scroller entry. Thus, when I included the single quote mark.. the rest of the entry became garbage. Something for people planning to use this script to watch out for.

    Thanks
    Buck

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Escape with \. For example,
    '
    becomes
    \'
    .
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Mar 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Good Suggestion

    Thanks Twey ... That's cool.
    Buck

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
  •