version 1.2, 2004/04/18 17:36:02
|
version 1.3, 2004/04/18 19:29:08
|
Line 222 function Link() {
|
Line 222 function Link() {
|
function onMouseMove(event) { |
function onMouseMove(event) { |
getCoords(event, Img, Coords); |
getCoords(event, Img, Coords); |
} |
} |
|
|
|
function getElement(name) { |
|
var e; |
|
if (document.getElementById) { |
|
e = document.getElementById(name); |
|
} else if (document.all) { |
|
e = document.all[name]; |
|
} else if (document.layers) { |
|
e = document.layers[name]; |
|
}; |
|
return e; |
|
} |
|
|
|
function highlightImg(name, highlight) { |
|
var e = getElement(name); |
|
//alert("highlight: "+e+" = "+highlight); |
|
if (highlight) { |
|
e.border = 2; |
|
} else { |
|
e.border = 0; |
|
} |
|
} |
|
|
|
function highlightPair(name, highlight) { |
|
var img = getElement("i."+name); |
|
var link = getElement(name); |
|
if (highlight) { |
|
img.border = 1; |
|
link.style.backgroundColor = '#f08080'; |
|
} else { |
|
img.border = 0; |
|
link.style.backgroundColor = ''; |
|
} |
|
} |
|
|
|
|
""" |
""" |
|
|
javaHandler=""" |
javaHandler=""" |