Cybertooth Tiger
02-15-2003, 10:05 PM
I have a script for the mousover working fine, however, I want to add an "onClick" to open a new window.
This is the script in the head...
<SCRIPT language="javascript">
<!--
function launchwin()
{
window.open("map.html", "width=300,height=300");
}
//-->
</SCRIPT>
And in the table......
<td>
<a href="map.html" onClick="launchwin();"
onmouseover="changeImages('coverage', 'images/coverage-06.gif'); return true;"
onmouseout="changeImages('coverage', 'images/coverage.gif'); return true;">
<img name="coverage" src="images/coverage.gif" width="140" height="38" border="0" alt=""></a></td>
But this only seems to link through to another page (ie: "self"), no pop up?
I could use target="blank" however the map is quiet small, and the project requires this layout (long story).
I want the URL of the new window to be map.html, so not sure if I need both the URL's in there.
Can someone please let me know where I am going wrong.
Many Thanks in advance.
Tonz
This is the script in the head...
<SCRIPT language="javascript">
<!--
function launchwin()
{
window.open("map.html", "width=300,height=300");
}
//-->
</SCRIPT>
And in the table......
<td>
<a href="map.html" onClick="launchwin();"
onmouseover="changeImages('coverage', 'images/coverage-06.gif'); return true;"
onmouseout="changeImages('coverage', 'images/coverage.gif'); return true;">
<img name="coverage" src="images/coverage.gif" width="140" height="38" border="0" alt=""></a></td>
But this only seems to link through to another page (ie: "self"), no pop up?
I could use target="blank" however the map is quiet small, and the project requires this layout (long story).
I want the URL of the new window to be map.html, so not sure if I need both the URL's in there.
Can someone please let me know where I am going wrong.
Many Thanks in advance.
Tonz