Marquee and jScript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nadim Attari

    #1

    Marquee and jScript

    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='th is.stop()'
    onmouseout='thi s.start()'>
    some texts here...
    some texts here...
    some texts here...
    </marquee>

    <br><br><br>

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

    <script language="JavaS cript" type="text/JavaScript">
    function scrollUp()
    {
    document.getEle mentById(newsSc roll).direction = 'up';
    }

    function scrollStop()
    {
    document.getEle mentById(newsSc roll).stop();
    }

    function scrollDown()
    {
    document.getEle mentById(newsSc roll).direction = 'down';
    }
    </script>

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

    Thanks,
    Nadim Attari


  • Mick White

    #2
    Re: Marquee and jScript

    Nadim Attari wrote:
    [color=blue]
    > Hi,
    >
    > Can i dynamically change the direction (through javaScript) of a marquee ???
    >[/color]
    Why don't you check the Microsoft site?

    http://msdn.microsoft.com/workshop/a...ts/marquee.asp

    Mick

    Comment

    • Nadim Attari

      #3
      Re: Marquee and jScript

      > Why don't you check the Microsoft site?[color=blue]
      >
      >[/color]
      http://msdn.microsoft.com/workshop/a...ts/marquee.asp[color=blue]
      >
      > Mick[/color]

      Thx !


      Comment

      • Thomas 'PointedEars' Lahn

        #4
        Re: Marquee and jScript

        Mick White wrote:
        [color=blue]
        > Nadim Attari wrote:[color=green]
        >> Can i dynamically change the direction (through javaScript) of a marquee ???
        >>[/color]
        > Why don't you check the Microsoft site?
        > [...][/color]

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


        PointedEars

        Comment

        Working...