View Full Version : Looking For Help

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:

not abc across the window then start over.

hints, suggestions and complete solutions are welcome!

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.

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

07-31-2005, 04:44 PM
one ? two : three is equivalent to

if (one) {
} else {

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.

08-01-2005, 06:41 AM
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.