I cant get my mouse over to work in IE. It gives me the error 'document[..]' is null or not an object. However it works just fine in Firefox. Please help. Here's the javascript code
Code:
if (document.images)
{
var buttonon = new Image();
var buttonoff = new Image();
buttonon.src = '../images/buttonon.jpg';
buttonoff.src = '../images/buttonoff.jpg';
}
function act(imgname)
{
if(document.images) document[imgname].src = eval(imgname + "on.src");
}
function inact(imgname)
{
if(document.images) document[imgname].src = eval(imgname + "off.src");
}
Comment