ppeettee
08-04-2003, 09:39 AM
Hi newbie here.
anyone spend a couple of seconds and tell me whats wrong with this?
<HTML>
<HEAD>
<TITLE>Family</TITLE>
<script language="JavaScript" type="text/JavaScript">
for (var i=1; i<200;i++)
{
this.document.write("<a onClick='newwin('"+i+".jpg')>");
this.document.write("<IMG SRC='thumb_"+i+".jpg' height=100>");
this.document.write("</a>");
};
function newwin(url)
{
pwidth=400;
pheight=400;
xpos=200;
ypos=200;
picwindow=window.open("","piccy",'width='+pwidth+',height='+pheight+',screenx='+xpos+',screeny='+ypos+',left='+xpos+',top='+ypos+',t oolbar=no,titlebar=no,directories=no,menubar=no,location=no,status=no,resizable=yes');
picwindow.document.write("<center>Click on image to close<a href='javascript:window.close()'><img src="+url+"></a>")
picwindow.document.close()
};
</script>
</HEAD>
<body bgcolor="#FFFFFF"></body>
</HTML>
anyone spend a couple of seconds and tell me whats wrong with this?
<HTML>
<HEAD>
<TITLE>Family</TITLE>
<script language="JavaScript" type="text/JavaScript">
for (var i=1; i<200;i++)
{
this.document.write("<a onClick='newwin('"+i+".jpg')>");
this.document.write("<IMG SRC='thumb_"+i+".jpg' height=100>");
this.document.write("</a>");
};
function newwin(url)
{
pwidth=400;
pheight=400;
xpos=200;
ypos=200;
picwindow=window.open("","piccy",'width='+pwidth+',height='+pheight+',screenx='+xpos+',screeny='+ypos+',left='+xpos+',top='+ypos+',t oolbar=no,titlebar=no,directories=no,menubar=no,location=no,status=no,resizable=yes');
picwindow.document.write("<center>Click on image to close<a href='javascript:window.close()'><img src="+url+"></a>")
picwindow.document.close()
};
</script>
</HEAD>
<body bgcolor="#FFFFFF"></body>
</HTML>