Navigation Menu
Alphabetical Listing
Site Contents

Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner














Internet.com

IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

General

Add a horizontal 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

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: streamingBannerHorizontal.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


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

5. From: Corry
Banner doesn't work when online
05/13/2008 12:19:10

The script works fine when run locally on my machine. As soon as I put the pages online, the images in the banner are static. They no longer move. Any clue?

6. From: Lee (Admin)
10/31/2008 14:23:06

Your question is beyond the scope of these comments. You will need to post it over on the JavaScript forum. Thanks!

3. From: hANjEK
Correction
11/29/2007 06:06:40

<script type="text/javascript" src="streamingBannerHorizontal.js"></script>


the above code must put between <body> tags.

4. From: Lee (Admin)
12/04/2007 11:22:33

No, it can go in the head section. It works just fine that way.

1. From: jackson
Need help on code please
08/24/2007 10:33:39

Need help please. constant stream of pictures break when "contWidth" in js. is set to 750. How can it keep it streaming smoothly ?

2. From: Lee (Admin)
10/03/2007 14:48:55

You will need to contact the author or submit your question to the JavaScript Forum for further help.


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.