Marquee

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

    #1

    Marquee

    Hi all,

    I am looking to add the following scrolling marquee to my website (see code
    below)

    However instead of using the marquee methods [start | Stop] I want to use
    [Up | Down]
    and as a person rests their mouse on either word [up | down] the list will
    scroll accordingly. I do not want the text to scroll continously - it should
    only operate when the Up | Down feature is used.


    Any ideas,

    thanks.

    Sketch.


    <marquee id="scroller" direction=up width=100 height=100
    style="backgrou nd-color:#cccccc;b order:0px">
    Message 1<br>
    Message 2<br>
    Message 3<br>
    Message 4<br>
    Message 5<br>
    Message 6<br>
    Message 7<br>
    </marquee><br>

    <a href="javascrip t:scroller.star t()">Start</a> | <a
    href="javascrip t:scroller.stop ()">Stop</a>

    <script>
    if (document.all)
    scroller.stop()
    </script>


  • McKirahan

    #2
    Re: Marquee

    "Sketcher" <sketcher@eirco m.net> wrote in message
    news:pHZXc.2596 4$Z14.8265@news .indigo.ie...[color=blue]
    > Hi all,
    >
    > I am looking to add the following scrolling marquee to my website (see[/color]
    code[color=blue]
    > below)
    >
    > However instead of using the marquee methods [start | Stop] I want to use
    > [Up | Down]
    > and as a person rests their mouse on either word [up | down] the list will
    > scroll accordingly. I do not want the text to scroll continously - it[/color]
    should[color=blue]
    > only operate when the Up | Down feature is used.
    >
    >
    > Any ideas,
    >
    > thanks.
    >
    > Sketch.
    >
    >
    > <marquee id="scroller" direction=up width=100 height=100
    > style="backgrou nd-color:#cccccc;b order:0px">
    > Message 1<br>
    > Message 2<br>
    > Message 3<br>
    > Message 4<br>
    > Message 5<br>
    > Message 6<br>
    > Message 7<br>
    > </marquee><br>
    >
    > <a href="javascrip t:scroller.star t()">Start</a> | <a
    > href="javascrip t:scroller.stop ()">Stop</a>
    >
    > <script>
    > if (document.all)
    > scroller.stop()
    > </script>[/color]


    "<MARQUEE ...> creates a scrolling display.
    <MARQUEE ...> is an MSIE extension, but is now supported by NS 7."


    The following works under IE5.5; watch for word-wrap:

    <html>
    <head>
    <title>marquees .htm</title>
    </head>
    <body>
    <marquee id="scroller" direction="up"
    width="100" height="50"
    style="backgrou nd-color:#CCCCCC; border:1px solid">
    <br> &nbsp; Message 1
    <br> &nbsp; Message 2
    <br> &nbsp; Message 3
    <br> &nbsp; Message 4
    <br> &nbsp; Message 5
    <br> &nbsp; Message 6
    <br> &nbsp; Message 7
    </marquee>
    <br>
    <button onmouseover="sc roll(0)"
    onmouseout="scr oller.stop()"
    style="width:50 ">Up</button>
    <button onmouseover="sc roll(1)"
    onmouseout="scr oller.stop()"
    style="width:50 ">Down</button>
    <script type="text/javascript">
    function scroll(what) {
    var dirs = new Array("up", "down");
    document.getEle mentById("scrol ler").directio n = dirs[what];
    scroller.start( );
    }
    if (document.all) scroller.stop() ;
    </script>
    </body>
    </html>


    Comment

    Working...