aaronshover
Programmer
Ok, I have a for-loop that is displaying the pictures that I have in a folder into a table. They are the thumbnails and I have them being linked to the larger pictures. I want the larger pictures (the link)to open up in a pop-up window, where I can specify the height and width and about the toolbars etc... Does anybody know how to do that? I can get it to work withouth the pop-up window script. The code I am using is as follows:
<SCRIPT LANGUAGE="JavaScript">
document.write("<table border=1 cellpadding=1 cellspacing=3>"
var pic = 00;
for (j=00;j<05;j++) {
document.write("<tr>"
for (k=01;k<04;k++) {
pic++;
document.write('<td>');
document.write('<a href="#" onClick="window.open('pictures/'+pic+'.jpg','NewWindow','height=336,width=249');">
<img src="pictures/thumbs/'+pic+'.jpg" alt="Metlab - Potero" width="150" height="150" border = 0></a>'); }
document.write("</tr>" }
document.write("</table><br>"
</script>
<SCRIPT LANGUAGE="JavaScript">
document.write("<table border=1 cellpadding=1 cellspacing=3>"
var pic = 00;
for (j=00;j<05;j++) {
document.write("<tr>"
for (k=01;k<04;k++) {
pic++;
document.write('<td>');
document.write('<a href="#" onClick="window.open('pictures/'+pic+'.jpg','NewWindow','height=336,width=249');">
<img src="pictures/thumbs/'+pic+'.jpg" alt="Metlab - Potero" width="150" height="150" border = 0></a>'); }
document.write("</tr>" }
document.write("</table><br>"
</script>