junkyarddog25
06-13-2003, 02:13 AM
this is my javascript for my thumbnail, but when i go test it it doesnt work
<script language="JavaScript1.2">
<!--
function openWin( winHeight, winWidth, picSrc ){
newWin = window.open('', '', 'height='+ winHeight + ',width='+ winWidth + 'toolbars=no, scrollbars=yes' );
newWin.document.write("<head><title>"+ picSrc +"</title></head>");
newWin.document.write("<p align=center>");
newWin.document.write("<img src=" + picSrc + ">"); newWin.document.write("<br><br><form><input type='button' value='Close' onclick='JavaScript:window.close()'>");
newWin.document.write("</form></p>");
}
-->
</script>
<p align=center><img src="/home1/pictures/president.jpg" width="50" height="50" onclick="openWin(300,300,'/home1/pictures/president.jpg')"></p>
<script language="JavaScript1.2">
<!--
function openWin( winHeight, winWidth, picSrc ){
newWin = window.open('', '', 'height='+ winHeight + ',width='+ winWidth + 'toolbars=no, scrollbars=yes' );
newWin.document.write("<head><title>"+ picSrc +"</title></head>");
newWin.document.write("<p align=center>");
newWin.document.write("<img src=" + picSrc + ">"); newWin.document.write("<br><br><form><input type='button' value='Close' onclick='JavaScript:window.close()'>");
newWin.document.write("</form></p>");
}
-->
</script>
<p align=center><img src="/home1/pictures/president.jpg" width="50" height="50" onclick="openWin(300,300,'/home1/pictures/president.jpg')"></p>