By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,617 Members | 1,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,617 IT Pros & Developers. It's quick & easy.

marquee en javascript

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.