1. Home
  2. Computing & Technology
  3. JavaScript

Cycling Ad Banner

Part 3 : Add to Your Page

clr gif
More of this Feature

Sample Obtain the Script

All that remains to be done now is to add the code to convert the cycling banner so that it will act as a link to the appropriate pages..

Here is the code for my sample image with the necessary modifications shown in bold:

<p align="center">
<img src="graphics/pic1a.gif" width="150" height="150" border="0" alt="Cycling banner images" name="rollimg"
style="cursor:pointer"
onclick="location=imglinks[thisimg]"
/></p>
Sample Page | Obtain the Script | Add to Your Page
Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.