Streaming Banners
General
Add a banner roll to your Web site with this easy-to-use script. Each banner can also include a URL. The size can be set in the script file.
Notes
- Created by: Jeroen Haan
- Web Site: http://www.haan.net/
In order the have the script working in FireFox as well you need a proper "DTD" to prevent the browser's "quirksmode". See http://www.quirksmode.nl/ for more details.
Or in case you experience problems, copy and paste next line on top of your Web page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source Code
Paste this source code into the designated areas.
External file
Paste this code into an external JavaScript file named: banner.js
CSS
Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.
Head
Paste this code into the HEAD section of your HTML document.
Body
Paste this code into the BODY section of your HTML document




Leave a Response
(9 comments)Yes, as it is shown in the code for the body section, you'll need to supply whatever images you want to use.
I can not get the script to work ,dont i need the images on file i followed the code and all I get is a black line in my browser
You will need to submit your question to the [a href="http://www.webdeveloper.com/forum/forumdisplay.php?f=3"]JavaScript Forum[/a] for further help.
Great script, but i can't make it work either on ie oe Firefox, followed every step but im having some trouble
Dear Alain,[br /][br /]Between the anchor tags <a></a> is a image tag <img ... />[br /]of course you can place anything between the anchor tags.[br /]Try it and let us know![br /][br /]Dear Donald,[br /][br /]I already have a buggy demo but need to tweak a little.[br /]Remind me that I will place the horizontal version soon.