marquee en javascript

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

    marquee en javascript

    Hello everybody,
    Since a few years I'm fooling around a little bit trýing to make a website
    for my husbands' oldmobils. One of the idea's is to let a car 'drive'
    through the screen, make it 'drive back' through the screen en stand still
    somewhere in the middle or at the right side (doesn't matter). I've been
    trying to establish this with just the marquee-element, but this didn't
    work, both images came through the screen at the same time , which wasn't
    the main idea. Now I've got a javascript from someone, which shóuld do right
    trick, but I'm affraid I'm missing something somewhere... the right place in
    the document or a mark or something like that. Although the images dó move
    at the same spot, they still move at the same tíme, same place... what I
    want is the images to move one after another, so first the image of the car
    driving from the right to the left and thén at the same alinea the car
    'driving back' through the screen. What I've got is this script:
    <div id="MARQ" style="position :absolute; left:0px; top:15px; border:1px
    none #000000">
    <MARQUEE id=m1 direction=right LOOP=1>
    to the right
    </MARQUEE>
    </div>

    <div id="MARQ" style="position :absolute; left:0px; top:15px; border:1px
    none #000000">
    <MARQUEE id=m2 direction=left LOOP=1>
    to the left
    </MARQUEE>
    </div>

    <SCRIPT LANGUAGE="JavaS cript">
    m2.stop();
    setInterval('m2 .start()',15000 );
    </SCRIPT>
    The last part <scriptlangua ge etc> I've put in the head of my document... is
    that right? Can somebody tell me what's going wrong here?
    Greetings, Rebecca.


  • Thomas 'PointedEars' Lahn

    #2
    Re: marquee en javascript

    Rebecca wrote:
    [color=blue]
    > [...]
    > <div id="MARQ" style="position :absolute; left:0px; top:15px; border:1px
    > none #000000">
    > <MARQUEE id=m2 direction=left LOOP=1>
    > to the left
    > </MARQUEE>
    > </div>
    > <SCRIPT LANGUAGE="JavaS cript">[/color]

    This should read

    <script type="text/javascript">
    [color=blue]
    > m2.stop();
    > setInterval('m2 .start()',15000 );
    > </SCRIPT>
    > The last part <scriptlangua ge etc> I've put in the head of my document... is
    > that right? Can somebody tell me what's going wrong here?[/color]

    You are using proprietary features (IE only) to nag users.
    Google is your friend. [psf 6.1]


    PointedEars

    Comment

    • Lasse Reichstein Nielsen

      #3
      Re: marquee en javascript

      Thomas 'PointedEars' Lahn <PointedEars@nu rfuerspam.de> writes:
      [color=blue]
      > You are using proprietary features (IE only) to nag users.[/color]

      Both Gecko and Opera implement the MARQUEE tag (I believe that Opera
      Software's reason was that it was in so great demand in some oriental
      countries, that it made business sense to include it. I don't
      understand why the Mozilla people included it, though.

      /L
      --
      Lasse Reichstein Nielsen - lrn@hotpop.com
      DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
      'Faith without judgement merely degrades the spirit divine.'

      Comment

      Working...