Inch
03-13-2002, 03:47 AM
Hi all,
Can anyone out there give me a hand in making this NS6 compatible. Works fine in IE and NS4, but img src doesn't seem to change onClick in NS6. All I get instead is the outline of the original image.
function NScenterLayer(l) {
l.pageX = l.parentLayer.pageX + (l.parentLayer.clip.width/2) - (l.document.width/2);
l.pageY = l.parentLayer.pageY + (l.parentLayer.clip.height/2) - (l.document.height/2);
}
function rollover(objImage, intIndex) {
i = arguments[2] ? 1 : 0;
if (document.all) {
document.bigcirc.src = (i == 0) ? aryBC[intIndex] : 'images/crimestoppers.jpg';
}
else {
var l = document.pic.document.inner;
l.visibility = 'hide';
l.document.write('<img border="0" src="' + aryBC[intIndex] + '">');
l.document.close();
NScenterLayer(l);
l.visibility = 'show';
}
}
Any help appreciated.
Cheers :)
Can anyone out there give me a hand in making this NS6 compatible. Works fine in IE and NS4, but img src doesn't seem to change onClick in NS6. All I get instead is the outline of the original image.
function NScenterLayer(l) {
l.pageX = l.parentLayer.pageX + (l.parentLayer.clip.width/2) - (l.document.width/2);
l.pageY = l.parentLayer.pageY + (l.parentLayer.clip.height/2) - (l.document.height/2);
}
function rollover(objImage, intIndex) {
i = arguments[2] ? 1 : 0;
if (document.all) {
document.bigcirc.src = (i == 0) ? aryBC[intIndex] : 'images/crimestoppers.jpg';
}
else {
var l = document.pic.document.inner;
l.visibility = 'hide';
l.document.write('<img border="0" src="' + aryBC[intIndex] + '">');
l.document.close();
NScenterLayer(l);
l.visibility = 'show';
}
}
Any help appreciated.
Cheers :)