You can use the id of the image(s) you want to change:
Code:
<img id="some_id"
onmouseover="fade('some_id2', 'out', 30);fade('some_id3', 'out', 30);"
onmouseout="fade('some_id2', 'in');fade('some_id3', 'in');" . . .
This assumes that these (or something like them) exist (these could also have events that affect other images):
HTML Code:
<img id="some_id2" src="pic2.jpg">
<img id="some_id3" src="pic3.jpg">
and are setup here:
Code:
var faders=[];
// Preset each image's initial opacity (0 to 100):
// ex: faders[x]=['image_id', initial_opacity];
faders[0]=['some_id2', 100];
faders[1]=['some_id3', 100];
You can setup as many images as you want, and have as many events distributed however you like in your HTML code that change however you like whatever images you have set up.
Bookmarks