Results 1 to 5 of 5

Thread: Cross browser Marquee II but want a horizontal version

  1. #1
    Join Date
    Jan 2009
    Location
    NH
    Posts
    673
    Thanks
    97
    Thanked 26 Times in 26 Posts

    Default Cross browser Marquee II but want a horizontal version

    1) Script Title: Cross browser Marquee II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/cmarquee2.htm

    3) Describe problem: is there way to change something in the code so that the words scroll from the right to the left (rather than bottom to top)?

    upon searching it seemed like the option was to use the Marquee tag I really don't want to go that deprecated way.
    thanks

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

  3. #3
    Join Date
    Jan 2009
    Location
    NH
    Posts
    673
    Thanks
    97
    Thanked 26 Times in 26 Posts

    Default

    oh wow am I blind

    thanks

  4. #4
    Join Date
    Jan 2009
    Location
    NH
    Posts
    673
    Thanks
    97
    Thanked 26 Times in 26 Posts

    Default

    I tried a test page here using the code:
    http://www.pscompetitiveedge.com/verticaltext.html

    Is there a way to slow it down a bit more? I have the var marqueespeed=1
    When I changed 1 to .5 it didn't work.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I thought you said you wanted a horizontal version. In any case, I would advise against using that vertical marquee script because it has a gap between the last item and the first and because it doesn't work in Opera.

    That said, to slow it down even more, find this line in the script:

    Code:
    setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
    See that red 30? That's the number of milliseconds between each incremental movement. Increase that number to 40 or 50 to slow it down even more.

    I would suggest however, if you want to do a vertical marquee like that, use:

    http://home.comcast.net/~jscheuer1/side/marquee.htm

    Use your browser's "view source" to get the code. It doesn't have the problems I just mentioned.

    It will probably be too fast as well though. But it has a similar line:

    Code:
    setTimeout('lefttime=setInterval("scrollmarquee()",20)',initPause)
    increase that number to like 30 or 40 to slow it down.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •