Yogg
07-25-2003, 02:28 PM
Hi,
I'm experiencing some problems with mozilla 1.3/4 implementing a dropdown menu. Check an example of the bug i'm talking about on http://www.jeuxvideos.com. Don't care about the language and focus on the dropdowns menus.
In mozilla navigator, the onClick event existing in each items of those menus doesn't work. Instead, it's the onMouseOut event wich is called.
Here is a sample:
<script language="javascript">
function hide(id) {
document.getElementById(id).style.visibility = 'hidden';
}
function show(id) {
document.getElementById(id).style.visibility = 'visible';
}
</script>
<input type="button" onClick="show('div1')" value="show div">
<br><br><br>
<div id="div1">
<table cellpadding="0" cellspacing="0" border="0" width="100" onMouseOut="hide('div1')" bgcolor="#99DCFF">
<tr>
<td>
<table width="100%" onMouseOver="show('div1')">
<tr>
<td onclick="alert('clic !')">item</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
When you roll out of the div, it disappears with the hide function called by the onMouseOut event. But why does the onClick event of the cell calls that onMouseOut ??? My cell is supposed to be a link !!!! So i can't work it out. I just mention again that i'm experiencing this problem with mozilla and not IE.
Thanks for your suggestions !!!
Yogg
I'm experiencing some problems with mozilla 1.3/4 implementing a dropdown menu. Check an example of the bug i'm talking about on http://www.jeuxvideos.com. Don't care about the language and focus on the dropdowns menus.
In mozilla navigator, the onClick event existing in each items of those menus doesn't work. Instead, it's the onMouseOut event wich is called.
Here is a sample:
<script language="javascript">
function hide(id) {
document.getElementById(id).style.visibility = 'hidden';
}
function show(id) {
document.getElementById(id).style.visibility = 'visible';
}
</script>
<input type="button" onClick="show('div1')" value="show div">
<br><br><br>
<div id="div1">
<table cellpadding="0" cellspacing="0" border="0" width="100" onMouseOut="hide('div1')" bgcolor="#99DCFF">
<tr>
<td>
<table width="100%" onMouseOver="show('div1')">
<tr>
<td onclick="alert('clic !')">item</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
When you roll out of the div, it disappears with the hide function called by the onMouseOut event. But why does the onClick event of the cell calls that onMouseOut ??? My cell is supposed to be a link !!!! So i can't work it out. I just mention again that i'm experiencing this problem with mozilla and not IE.
Thanks for your suggestions !!!
Yogg