View Full Version : Looking For Help
holdingthebag
07-31-2005, 04:06 AM
I am trying to add a marquee - type scroller to my site. However, I would like the text to scroll in a circular fashon like:
abc...abc...abc
not abc across the window then start over.
hints, suggestions and complete solutions are welcome!
jscheuer1
07-31-2005, 05:11 AM
Continuous Horizontal Marquee (http://home.comcast.net/~jscheuer1/side/marqueeh.htm)
Click above link, then right click on the page and choose view source.
holdingthebag
07-31-2005, 04:31 PM
Thanks works great!
When trying to understand the source, I do not comprehend some of the statement such as:
document.getElementById? document.getElementById("iemarquee2") : document.all.iemarquee2
Could you direct me to a resource so that I can learn these constructs
one ? two : three is equivalent to
if (one) {
two;
} else {
three;
}
holdingthebag
07-31-2005, 05:21 PM
Exam answer so the code snippet says
If the browser supports DOM then find the node for the Marquee otherwise use the collections method to find marquee2.
Yes indeed. It also returns a value, so you can use it in statements like this:
var one = two ? three : four;
where a variable called one is created, then if two is true, assign it the value of three; otherwise, assign it the value of four.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.