onmouseover= window.open and onmouseout window.close on .asp

Posted by Eduardo under JavaScript on 7/29/2011 | Points: 10 | Views : 4241 | Status : [Member] | Replies : 1
I need to close a popup window onmouseout on .asp page, the onmouseover open a popup window to see the picture, it do not have onmouseout to close to close the popup window, if you know how I can ad it, I will appreciate your help, this is the link to the page http://www.buscarealestate.com/property.asp?q=A1519908 and these is the part of the code on the page :

<td valign="top"><table width="75%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="55%" valign="top"> <%if lang=2 Then%>
PASE EL RAT&Oacute;N POR ARRIBA DE LAS FOTOS PARA AMPLIARLAS
<%else%>
PASS THE MOUSE OVER THE PICTURES TO ZOOM IN</p>
<%end if%><p>
<%for I = 2 to total_fotos
otrasfotos = base & "_" & I & ".jpg"%>
<a href="<%=otrasfotos%>" onMouseOver="window.open('<%=otrasfotos%>','popup','width=540,height=420,address=no,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=150,top=150'); return false"> <%Response.Write "<img src='" & otrasfotos & "' width=65 height=40>" & " "%> </a>
<%if I=10 or I=19 or I=28 or I=37 or I=46 or I=55 Then%><br>
<%end if
next%>
</p></td>

Thank you for your help.
ammed@aol.com




Responses

Posted by: Madhu.b.rokkam on: 8/3/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,

All you have to do is in the parent page use the onmouseover event of the control to popup a child window.
and in child window place the onmouseout event on the body tag to close that.

Thanks and Regards
Madhu

Eduardo, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response