chong
05-18-2005, 10:25 AM
While coding for a site recently, i encountered a problem while trying to make some mouseover image source changes.
Although
document.getElementById("img1").src = newsrc;
is supposed to be cross compatible, it works only on IE... I couldnt get it to work on Moz5
but
document.image.img1.src = newsrc;
works on both.
doesnt getElementById work the same way on both IE n Moz?
TIA :)
Although
document.getElementById("img1").src = newsrc;
is supposed to be cross compatible, it works only on IE... I couldnt get it to work on Moz5
but
document.image.img1.src = newsrc;
works on both.
doesnt getElementById work the same way on both IE n Moz?
TIA :)