All, relatively new to javascript but hope someone can point me in the right direction.
On a particular table cell, I have an onMouseOver function defined to do 2 things .. (1) Change the style of the element in question, and (2) call a function to display a hidden <DIV>.
It does seem to work somewhat OK, but I still am getting an "access denied" error sometimes when I mouseover the cell. It seems if I run the mouse over nice and slow, there's no problem, but if I do it too fast, the error occurs.
I'm sure this is a common enough thing but I'm at my wits end as to what is wrong. Below is a snippet of the code if it would help ... only excerpts from the page.
Thanks in advance.
Greg.
On a particular table cell, I have an onMouseOver function defined to do 2 things .. (1) Change the style of the element in question, and (2) call a function to display a hidden <DIV>.
It does seem to work somewhat OK, but I still am getting an "access denied" error sometimes when I mouseover the cell. It seems if I run the mouse over nice and slow, there's no problem, but if I do it too fast, the error occurs.
I'm sure this is a common enough thing but I'm at my wits end as to what is wrong. Below is a snippet of the code if it would help ... only excerpts from the page.
Thanks in advance.
Greg.
Code:
.
.
function showPopup()
{
var mX=event.clientX;
var mY=event.clientY;
parent.frames['frNav'].document.all.gallMenu.style.top=mY + 'px';
parent.frames['frNav'].document.all.gallMenu.style.visibility='visible';
}
function hidePopup()
{
parent.frames['frNav'].document.all.gallMenu.style.visibility='hidden';
}
//-->
</script>
</head>
.
.
<tr>
<td class="navOff" onMouseOver="this.className='navOn';showPopup();" onMouseOut="this.className='navOff';hidePopup();" onClick="navTo('gallery')">Gallery</td>
</tr>
.
.
<div class="popupMenu" id="gallMenu">
World Tour
<br>
Bagnall 2000
<br>
Canada
<br>
</div>
</body>
</html>