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


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

8. From: jamika
help
05/08/2008 22:55:43

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

9. From: Lee (Admin)
05/12/2008 10:32:35

Yes, as it is shown in the code for the body section, you'll need to supply whatever images you want to use.

6. From: Pat
10/19/2007 07:37:34

Great script, but i can't make it work either on ie oe Firefox, followed every step but im having some trouble

7. From: Lee (Admin)
10/26/2007 13:58:52

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

5. From: Jeroen Haan
horizontal version
06/20/2007 20:56:13

Dear Alain,

Between the anchor tags <a></a> is a image tag <img ... />
of course you can place anything between the anchor tags.
Try it and let us know!

Dear Donald,

I already have a buggy demo but need to tweak a little.
Remind me that I will place the horizontal version soon!
(send me an email).

4. From: Donald Kiesling
05/04/2007 16:07:20

Great script! Can it be modified to scroll horizontally? If so, how? Thank you.

3. From: Alain
04/19/2007 13:02:57

I just viewed your Streaming Banners script and it is very interesting.

I was wondering though if we absolutely have to put images or could text links also be included along with images.

Thanks.


2. From: Jeroen Haan
04/15/2007 14:41:35

In order the have the script working in FireFox as well you need a proper "DTD" to prevent the browser's "quirksmode".

Please see http://www.quirksmode.nl/ for more details.

Or in case you experience problems, copy and paste next line on top of your webpage:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


1. From: Nishesh Dubey
04/15/2007 01:34:36

This code is really good and helpfull


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.