469,640 Members | 1,561 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,640 developers. It's quick & easy.

marquee en javascript

Hello everybody,
Since a few years I'm fooling around a little bit tring 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 shuld 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 tme, 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 thn 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.
Jul 23 '05 #1
2 1733
Rebecca wrote:
[...]
<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

<script type="text/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?


You are using proprietary features (IE only) to nag users.
Google is your friend. [psf 6.1]
PointedEars
Jul 23 '05 #2
Thomas 'PointedEars' Lahn <Po*********@nurfuerspam.de> writes:
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
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Nadim Attari | last post: by
1 post views Thread by michaaal | last post: by
1 post views Thread by Sketcher | last post: by
15 posts views Thread by charlie fortune | last post: by
1 post views Thread by Shawn Witt | last post: by
4 posts views Thread by uwe.braunholz | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.