Ok, i have a little problem, i wanna change my mouseOver image after 2 seconds. But i cant get it right, i tried this:
function turnOn(imageName)
{
if (document.images)
{
document.images[imageName].src = eval (imageName + 'on.src');
setTimeout("document.images[imageName].src = eval (imageName + 'off.src');",2000)
}
}
What am i doing wrong?
function turnOn(imageName)
{
if (document.images)
{
document.images[imageName].src = eval (imageName + 'on.src');
setTimeout("document.images[imageName].src = eval (imageName + 'off.src');",2000)
}
}
What am i doing wrong?