I'm retrieveing some records from a db - for each record I'm displaying in the web page, I want a preview rollover icon which when clicked will open up a popup. Using IE5.5. the preview icon is a magnifying glass that raises off the page on rolling over..
I've got this working fine for one page :
but cannot get this working from the main page:
I've tried copying the relevant code from the working page to the non-working page to no joy.
The code is almost identical between the two pages - also when the non-working page is viewed in NS 4.7 or NS6.0 I noticed that when you rollover the very first preview icon, it makes the bottom record preview icon move to the "over" state ?? (Ignore the onMouseDown event in the working page - to start with I just want the rollover to work, then I will add the click Event).
working page HTML /JS :
<td width="49" rowspan="2" valign="top" bgcolor="#DEE2F5"><img src="images/spacer.gif" width="1" height="1"><a href="javascript:void(0)" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('mag','','images/mag_over.gif',1)"><img name="mag" border="0" src="images/mag_up.gif" width="30" height="30" onMouseDown="MM_openBrWindow('<%=(rs_getCom.Fields.Item("preview_URL".Value)%>','Preview','width=500,height=500')"></a></td>
non-working page HTML/JS :
<td valign="middle" colspan="2" rowspan="2" bgcolor="#DEE2F5"><img src="images/spacer.gif" width="1" height="1"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('mag1','','images/mag_over.gif',1)"><img name="mag1" border="0" src="images/mag_up.gif" width="30" height="30"></a></td>
thanks in advance
I've got this working fine for one page :
but cannot get this working from the main page:
I've tried copying the relevant code from the working page to the non-working page to no joy.
The code is almost identical between the two pages - also when the non-working page is viewed in NS 4.7 or NS6.0 I noticed that when you rollover the very first preview icon, it makes the bottom record preview icon move to the "over" state ?? (Ignore the onMouseDown event in the working page - to start with I just want the rollover to work, then I will add the click Event).
working page HTML /JS :
<td width="49" rowspan="2" valign="top" bgcolor="#DEE2F5"><img src="images/spacer.gif" width="1" height="1"><a href="javascript:void(0)" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('mag','','images/mag_over.gif',1)"><img name="mag" border="0" src="images/mag_up.gif" width="30" height="30" onMouseDown="MM_openBrWindow('<%=(rs_getCom.Fields.Item("preview_URL".Value)%>','Preview','width=500,height=500')"></a></td>
non-working page HTML/JS :
<td valign="middle" colspan="2" rowspan="2" bgcolor="#DEE2F5"><img src="images/spacer.gif" width="1" height="1"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('mag1','','images/mag_over.gif',1)"><img name="mag1" border="0" src="images/mag_up.gif" width="30" height="30"></a></td>
thanks in advance