Not that there's anything wrong with textboxes or the status bar, but personally, I like my text scrolled all by itself, not wrapped inside any other element. In other words, a "true" text scroller. Is it possible? Apparently, yes. After a couple of weeks of searching, I finally found some working scrolling text examples on the web, and in the process, learned for myself how to create them. In this article, I wish to share that knowledge with you.
I'm going to teach you how to create a basic, side-scrolling scroller using the DHTML features of IE4+ and NS4+. Here's a demo:
Whether you're using IE4 or NS4, the scroller works equally. Two completely different concepts is involved in the realization of it. Let's see for ourselves how to create a text scroller!
Scrolling the text in IE4
In IE4, it's actually very simple to scroll any text, thanks to a default tag supported since IE3- the
In IE4, however, it seems you can now also put in HTML tags, and they will interpreted as such:
So that's that for IE4. If you're only creating a text scroller for IE4, you already know all there is to know. However, I, like many other people, use NS4 to browse the web, so whatever you have planned for IE4 users, I would appreciate seeing it as well. Let's move on to see how to make the scroller work in NS4 equally, which is a little more complex.
|» Level Intermediate|
Rating: 6.89 Votes: 56
|No information about the author has been provided|
|Download the files used in this tutorial.|
|Download (0 kb)|
|More help? Search our boards for quick answers!|