473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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="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 1877
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nadim Attari | last post by:
Hi, Can i dynamically change the direction (through javaScript) of a marquee ??? E.g.: === <marquee id = 'newsScroll' name = 'newsScroll' direction = 'down' scrollamount = '1' scrolldelay =...
1
by: michaaal | last post by:
Does anyone know of a JavaScript that will do a marquee type text scrolling like the one on this page... http://www.rentacoder.com The one on the above link uses the <marquee> HTML tags, and I...
1
by: Sketcher | last post by:
Hi all, I am looking to add the following scrolling marquee to my website (see code below) However instead of using the marquee methods I want to use and as a person rests their mouse on...
15
by: charlie fortune | last post by:
I'm quite new to HTML, and have seen <marquee> get bad press here. What's wrong with using it. I wanted to have the contents of a .txt file scrolling for news items, can I do this with marquee, or...
1
by: Shawn Witt | last post by:
I hope someone can help me with this situation... I have a web page with an Iframe. When a link is clicked outside the Iframe, the src changes. There is also a marquee outside the Iframe. ...
4
by: uwe.braunholz | last post by:
Hello, I want to set the text of a marqee dynamical. So I created the following code: ****snip**** <style> #noticeMarquee { background-color:#ff00ff; color:#ffffff;
8
praclarush
by: praclarush | last post by:
Ok, I'm new to JavaScript and I'm taking a class for it the assignment in it I'm supposed to create edit a pre-made page to display a marquee that automatically scrolls for the user, as well as give...
1
by: ced69 | last post by:
having trouble getting marquee to work get object required errors tring t <title>This Month at the Chamberlain Civic Center</title> <link href="styles.css" rel="stylesheet"...
3
by: Rajneesh Chellapilla | last post by:
Hi I made this marquee program however, I am having trouble getting all four marquees to line up correctly. Basically I want the the 4 marquees to line up on the four sides exactly so they intersect....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.