This script uses dynamic html to display logo images and hyperlinks. Three images are displayed at a time. After every 10 seconds, the oldest logo is removed and a new logo is added.
To install, download the file logo.js. Add:
within the <head> of your web page. Where you want your logos
displayed, add a table with <td id="p001"><td id="p002"><td id="p003">. In NS4,
instead of <td id>, use <layer id>.
You also need to define your logo list in public arrays.
wid - <img width>
hgt - <image height>
img - image cache
src - <img src>
tit - <img alt>
url - <a href>
wid = new Array() ; hgt = new Array() ; img = new Array()
src = new Array() ; tit = new Array() ; url = new Array()
wid = 103 ; hgt = 100 ; img = new Image()
src = "logo\/mas.gif"
tit = "Local astronomy club
Dennis Allen webmaster"
url = "http:\/\/www.wmich-astro.org"
Note: Make sure to replace any occurrence "/" with "\/" (needed in document.write()).
Note: For external images, add "(x)" to tit. Otherwise, this code will wait onload forever.
Finally, add <body onload="logo_init()" onunload="logo_off()">.
Script originally from © Dynamic Drive (www.dynamicdrive.com).
[Return to Top]
[Go to Home Page]
Copyright © 2013 Dennis Allen.
This web page was last updated 07/03/13