Click to See Complete Forum and Search --> : re: Where on earth is this error!!??


luds
05-16-2003, 06:00 PM
Pleeeeeeeease!!

Can someone find the syntax error here!! lol

I wouldn't mind , but all my other buttons work fine... but these two....argggggg!!

the url is http://testsitepv.pwp.blueyonder.co.uk/accompanists.htm

and it's the accompanist button and the FAQ button!!

thanks... my eyes have gone all blurry trying to find the error!!

luds

khalidali63
05-16-2003, 06:06 PM
2 possible errors

1.You have one function defined twice

function chgImg(imgField,newImg)
{
if (document.images)
{
document.images[imgField].src=eval(newImg + ".src")
}
}

use it fromany of the locations but has to be unique signature.

2.faq images are not preloaded...nor defined

luds
05-17-2003, 10:50 AM
Thanks Khalid and Dave... you know how it is when you just can't see the mistake!!
Hopefully I'll get better as I get more experienced!

I'd missed the .src off the end of the faq mouse events too! lol

Still many thanks again for your quick and informative replies. I really appreciate it :¬)

luds