Faulty script

Hi

In pages like http://pintotours.net/Oceania/Australia/HiltonSyd.html there are 4 images (2x2) that enlarge on clicking them. They are connected to a script “sprites2.js”.

It works fine in the usual modern browsers but in IE8 only the first image enlarges.

In an unrelated thread, the author suggested that the culprit resides in this line

spn[c].addEventListener('onclick',makeClickHandler(c));

but did not expand and explain and I am totally ignorant of js scripts

Could you help, please?

Thank you

Hi there qim,

change this…

    spn[c].addEventListener('onclick',makeClickHandler(c));

…to this…

    makeClickHandler(c);

coothead

Thank you coothead

That’s the last of my (current…) IE8 problems solved.

SOLVED

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.