I want to replace a div onmouseover by another div. The replacement takes place, but the div is flickering onmouseover. Why is that and how should I change my source code?
The jscript:
Code:
<script type="text/javascript" language="JavaScript"><!--
function HideDIV(d) { document.getElementById(d).style.display = "none"; }
function DisplayDIV(d) { document.getElementById(d).style.display = "block"; }
//--></script>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
I am a little confused here what are u trying to do but I think the problem is with your 'A' DOM elements inside the DIV.
What hapends is that u have mouseout event on your DIV and when u mouse over on A element mouseout fires on DIV even that A tag located inside the DIV.
The easies way what u can do is to define event for the A tag on mouseover and cacel all of the following events.