The code below is part of a tool tip set of functions. Currently this fails in Explorer as soon as it tries to set the event handlers to an instance of the functions. So in this case “initToolTipElements” is only printed once to the alert box and then the script stops. The code works fine in Firefox.
This is the doc type to the HTML page.
[CODE]<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
Failing function.
[CODE]function initToolTipElements()
{
var ttEls=document.getElementsByName(‘toolTip’);
//Looks like this is only being run once in explorer.
for (i=0;i<=5;i++)
{
alert(“initToolTipElements”);
ttEls[i].onmouseover=addMapToolTip;
ttEls[i].onmousemove=Locate;
ttEls[i].onmouseout=removeToolTip;
}
}
Can any one tell me where to look for the problem?