[thelist] where's the bug!? (NN4 rollover)

Micah Freedman i at micahfreedman.com
Fri Mar 8 11:56:01 CST 2002


For some reason my rollovers are causing a JS error in NN4. They
work in IE & NN6. I'm pretty sure I've used this exact code before
and had it work x-browser, but I'm trying to do XHTML for the
first time, so there may be something to do with that....

Anyone see the problem?

the url: http://jamesdonegan.net/welcome/

-----------------------------
the HTML trigger:
// note that I'm using both id and name. Perhaps this is the
source of the problem.

<a href="../acting/"  onmouseover="over('acting')"
onmouseout="out('acting')"><img src="../images/btn_acting.gif"
title="" alt="acting" width="89" height="24" id="acting"
name="acting" border="0" />

-----------------------------
the JS code:

function swapImage(imgName, imgSrc) {
	document[imgName].src=imgSrc;
}

function out(id) {
	swapImage (id,'/new/images/btn_' + id + '.gif');
}

function over(id) {
	swapImage (id,'/new/images/btn_' + id + '_ov.gif');

-----------------------------

TIA,

Micah


______________________

 Micah Freedman
 www.micahfreedman.com
 i at micahfreedman.com
 212.769.7902
______________________





More information about the thelist mailing list