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!
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!
Continuous Horizontal Marquee
Click above link, then right click on the page and choose view source.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
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
Code:if (one) { two; } else { three; }
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
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:
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.Code:var one = two ? three : four;
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks