Hello everybody,
Here is my question:
I have an <area>:
<area shape="rect" coords="417,278,596,400" href="javascript:showHideForm('divForm', true);">
When i click on it, it makes appear a <div> called divForm:
<div id="divForm" style="display:none; width:190; height: 80; position: absolute; top:450; left:490; z-index:2 visibility: visible; background-color: #FFCC33;">
<table class="texteNoirNormal" align="center" width="100%" border="0" bgcolor = "#FFCC33" cellspacing="0" cellpadding="0">
<tr>
<td>
<font color="#000000">
<a href="<%=Link6%>" onClick="<%=Link6%>"> <font color="#000000">Hyères (Port Pothuau)</font>TEST</a>
</font>
</td>
</tr>
</table>
</div>
What i would like to do but don't know how is when i click outside the <div>, the <div> has to disappear. To make it disappear i can call the same function that makes it appear. But how i tell him, when you click outside ...
Here is what i have tried for now on:
<area shape="rect" coords="417,278,596,400" href="javascript:showForm('divForm', true);" onBlur="javascript:hideForm('divForm', true);">. It works, when i click outside, the <div> disappears but the problem is that when i click on the link inside the <div> it disappears too, and the link doesn't work ...
I hope everything is clear.
Thank you for your answers.
Here is my question:
I have an <area>:
<area shape="rect" coords="417,278,596,400" href="javascript:showHideForm('divForm', true);">
When i click on it, it makes appear a <div> called divForm:
<div id="divForm" style="display:none; width:190; height: 80; position: absolute; top:450; left:490; z-index:2 visibility: visible; background-color: #FFCC33;">
<table class="texteNoirNormal" align="center" width="100%" border="0" bgcolor = "#FFCC33" cellspacing="0" cellpadding="0">
<tr>
<td>
<font color="#000000">
<a href="<%=Link6%>" onClick="<%=Link6%>"> <font color="#000000">Hyères (Port Pothuau)</font>TEST</a>
</font>
</td>
</tr>
</table>
</div>
What i would like to do but don't know how is when i click outside the <div>, the <div> has to disappear. To make it disappear i can call the same function that makes it appear. But how i tell him, when you click outside ...
Here is what i have tried for now on:
<area shape="rect" coords="417,278,596,400" href="javascript:showForm('divForm', true);" onBlur="javascript:hideForm('divForm', true);">. It works, when i click outside, the <div> disappears but the problem is that when i click on the link inside the <div> it disappears too, and the link doesn't work ...
I hope everything is clear.
Thank you for your answers.