Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Access is denied" error

Status
Not open for further replies.

grega

Programmer
Feb 2, 2000
932
GB
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 &quot;access denied&quot; 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=&quot;navOff&quot; onMouseOver=&quot;this.className='navOn';showPopup();&quot; onMouseOut=&quot;this.className='navOff';hidePopup();&quot; onClick=&quot;navTo('gallery')&quot;>Gallery</td>
</tr>

.
.

<div class=&quot;popupMenu&quot; id=&quot;gallMenu&quot;>
World Tour
<br>
Bagnall 2000
<br>
Canada
<br>
</div>

</body>
</html>
 
If you can post a link the page, and I could see the actual behavior, i may be able to help... jared@aauser.com
 
Sorry jared ... it's not on the net .. I'm playing around with this at work locally and have no ftp access out to my site :-(

Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top