var state = "none";
var newstate = "none";
function MM_openBrWindow(theURL,winName,features,newstate) { //v2.0
if (state != newstate) {
if (navigator.appName=="Microsoft Internet Explorer"){
window.open(theURL,winName,features + ",left=0 ,top=0"); }
else if (navigator.appName=="Netscape") {
window.open(theURL,winName,features + ",screenX=0 ,screenY=0"); }
state = newstate; }
}
//-->
</script>
</HEAD>
<BODY BGCOLOR="WHITE">
<h3> Click on the text below to display graphics in a new window.
<a href="example_12_html.htm">View source.</a></h3>
<table>
<tr>
<td> <a href="#"
onClick = "MM_openBrWindow('starblue.gif','Picture','width=52,height=50','picture');
return false"
onMouseOut = "MM_openBrWindow('closeit.htm','Picture','width=52,height=50','none')">
Blue Star</a><br>
<a href="#"
onClick = "MM_openBrWindow('stargold.gif','Picture','width=52,height=50','picture');
return false"
onMouseOut = "MM_openBrWindow('closeit.htm','Picture','width=52,height=50','none')">
Gold Star</a><br>
<a href="#"
onClick = "MM_openBrWindow('stargren.gif','Picture','width=52,height=50','picture');
return false"
onMouseOut = "MM_openBrWindow('closeit.htm','Picture','width=52,height=50','none')">
Green Star</a><br>
<a href="#"
onClick = "MM_openBrWindow('starpurp.gif','Picture','width=52,height=50','picture');
return false"
onMouseOut = "MM_openBrWindow('closeit.htm','Picture','width=52,height=50','none')">
Purple Star</a><br>
<a href="#"
onClick = "MM_openBrWindow('starslvr.gif','Picture','width=52,height=50','picture');
return false"
onMouseOut = "MM_openBrWindow('closeit.htm','Picture','width=52,height=50','none')">
Silver Star</a><br>
<a href="#"
onClick = "MM_openBrWindow('staryell.gif','Picture','width=52,height=50','picture');
return false"
onMouseOut = "MM_openBrWindow('closeit.htm','Picture','width=52,height=50','none')">
Yellow Star</a> </td>
</tr>
</table>
<p> </p>
<p><a href="index.htm#Example12">Return to Having Fun
with JavaScript</a>.</p>
</BODY>
</HTML>