i have some javascript roll over code that works fine in firefox but when i try it in IE i get this error:
Message: 'document[...]' is null or not an object Line: 25 Char: 13 Code: 0 URI: http://www.jgm-design.com/
the code im using is:
if (document.images)
{
image1 = new Image;
image2 = new Image;
image1.src = "images/logos/logoBlackFadedLow.jpg";
image2.src = "images/logos/logoWhiteFadedLow.jpg";
}
function chgImg(name, image)
{
if (document.images)
{
document[name].src = eval(image+".src");
}
}
Any idea why? Or a solution?