-- A working version of this script can be seen on the bottom of :
-- http://home.online.no/~liknes/Photoshop/tutorials_3DAction.htm
-- Paste the following code between the Head tags on your page
-- Everything written with in a blue font must be edited by you
-- These five lines of text are NOT part of the code!
<script language="JavaScript">
if (navigator.appVersion.indexOf("2.") != -1){
check = false;
}
if ((navigator.appVersion.indexOf("3.") != -1) && (navigator.appName.indexOf("Explorer") != -1)){
check = false;
}
else {
check = true;
}
image1= new Image();
image1.src = "image_1_off.gif";
image1on = new Image();
image1on.src = "image_1_on.gif";
image2= new Image();
image2.src = "image_2_off.gif";
image2on = new Image();
image2on.src = "image_2_on.gif";
function imageon(name) {
document[name].src = eval(name + "on.src");
}
function imageoff(name) {
document[name].src = eval(name + ".src");
}
function on(name) {
if (check == true){
imageon(name);
}
}
function off(name) {
if (check == true){
imageoff(name);
}
}
</script>
-- The code below goes between the body tags.
-- Paste it in the table where the rollovers are placed
-- These three lines of text is NOT part of the code!
<a href="some_page" onmouseover="on('image1');" onmouseout="off('image1')"><img
src="image_1_off" name="image1" alt="description" border="0" width="xxx"
height="xxx"></a>
<a href="some_page" onmouseover="on('image2');" onmouseout="off('image2')"><br>
<img src="image_1_off" name="image2" alt="description" border="0" width="xxx"
height="xxx"></a>