View Full Version : rollover image linked to pop-up window


thugparlay
01-15-2003, 08:57 PM
I'm having difficulty making my rollover image; when clicked, have a new window pop-up centered. The scripts I have tried from other threads have no worked.

Here is my rollover image code, where would I insert the pop-up code?:

<td width="160"><a href="HTMLPAGEHERE" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('media','','ROLLOVERIMAGE.JPG',1)"><img name="media" border="0" src="ORIGINALIMAGE.JPG" width="160" height="15" alt="media archives"></a></td>

Alcy
01-16-2003, 02:35 PM
You add the popup code before.

<head>
<script language="javascript">
//<!--
function popup()
{ window.open ("YourURLgoesHere.html","popup","width=400,height=400,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
-->
</script>
</head>

<td width="160"><a href="javascript:popup()" onMouseOut="MM_swapImgRestore()" onMouseOver=" MM_swapImage('media','','
ROLLOVERIMAGE.JPG',1)"><img name="media" border="0" src="ORIGINALIMAGE.JPG" width="160" height="15" alt="media archives"></a></td>

EDIT:|| Javascript should be one word.

thugparlay
01-17-2003, 12:14 AM
thanks for your assistance.