...

View Full Version : onClick change image, but image doesn't show on IE =0



khan8822
07-12-2005, 12:13 AM
as the title described

i have an onClick change image code that works perfectly fine in firefox,

however, on ie, it loads a blank image sometimes when i call the onClick...

is there a quick trick to fix this?....

glenngv
07-12-2005, 04:40 AM
We can't fix it if we can't see the code.

khan8822
07-12-2005, 03:54 PM
<A href="javascript://"
onClick="if(document.getElementById('food').style.display == 'none')
{
document.getElementById('food').style.display = '';
document.images['pointImg'].src = './images/minus.gif'
} else {
document.getElementById('food').style.display = 'none';
document.images['pointImg'].src = './images/plus.gif'
}">

glenngv
07-13-2005, 04:05 AM
<a href="#"
onClick="...
...
;return false;">



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum