Marquee and jScript

Discussion in 'Javascript' started by Nadim Attari, Apr 23, 2004.

  1. Nadim Attari

    Nadim Attari Guest

    Hi,

    Can i dynamically change the direction (through javaScript) of a marquee ???

    E.g.:
    ===
    <marquee id = 'newsScroll' name = 'newsScroll' direction = 'down'
    scrollamount = '1' scrolldelay = '1' onmouseover='this.stop()'
    onmouseout='this.start()'>
    some texts here...
    some texts here...
    some texts here...
    </marquee>

    <br><br><br>

    <a href="javaScript: scrollUp();"><img src="scroll-up.gif"></a><br>
    <a href="javaScript: scrollStop();"><"><img src="scroll-stop.gif"></a><br>
    <a href="javaScript: scrollDown();"><"><img src="scroll-down.gif"></a>

    <script language="JavaScript" type="text/JavaScript">
    function scrollUp()
    {
    document.getElementById(newsScroll).direction = 'up';
    }

    function scrollStop()
    {
    document.getElementById(newsScroll).stop();
    }

    function scrollDown()
    {
    document.getElementById(newsScroll).direction = 'down';
    }
    </script>

    This does not work.
    Any solutions / tutorials please..

    Thanks,
    Nadim Attari
     
    Nadim Attari, Apr 23, 2004
    #1
    1. Advertising

  2. Nadim Attari

    Mick White Guest

    Mick White, Apr 23, 2004
    #2
    1. Advertising

  3. Nadim Attari

    Nadim Attari Guest

    Nadim Attari, Apr 23, 2004
    #3
  4. Mick White wrote:

    > Nadim Attari wrote:
    >> Can i dynamically change the direction (through javaScript) of a marquee ???
    >>

    > Why don't you check the Microsoft site?
    > [...]


    Why does he/she not drop the whole invalid marquee nonsense?


    PointedEars
     
    Thomas 'PointedEars' Lahn, May 3, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon Maz
    Replies:
    4
    Views:
    1,310
    Jon Maz
    Sep 9, 2004
  2. Maxwell2006
    Replies:
    5
    Views:
    2,432
    Steven Cheng[MSFT]
    Mar 7, 2006
  3. Mr. x
    Replies:
    8
    Views:
    553
    cwdjr
    Nov 28, 2003
  4. John Bentley
    Replies:
    14
    Views:
    384
    Jim Ley
    Feb 5, 2004
  5. VK
    Replies:
    4
    Views:
    375
    Thomas 'PointedEars' Lahn
    Jan 12, 2006
Loading...

Share This Page