marquee en javascript

R

Rebecca

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="JavaScript">
m2.stop();
setInterval('m2.start()',15000);
</SCRIPT>
The last part <scriptlanguage etc> I've put in the head of my document... is
that right? Can somebody tell me what's going wrong here?
Greetings, Rebecca.
 
T

Thomas 'PointedEars' Lahn

Rebecca said:
[...]
<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="JavaScript">

This should read

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

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


PointedEars
 
L

Lasse Reichstein Nielsen

Thomas 'PointedEars' Lahn said:
You are using proprietary features (IE only) to nag users.

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top