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:
<script LANGUAGE="JavaScript" TYPE="text/javascript" src="logo.js"></script>
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.
Public Variables:
wid[] - <img width>
hgt[] - <image height>
img[] - image cache
src[] - <img src>
tit[] - <img alt>
url[] - <a href>
Example:
wid = new Array() ; hgt = new Array() ; img = new Array()
src = new Array() ; tit = new Array() ; url = new Array()
wid[0] = 103 ; hgt[0] = 100 ; img[0] = new Image()
src[0] = "logo\/mas.gif"
tit[0] = "Local astronomy club
Dennis Allen webmaster"
url[0] = "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