customcraftsman
02-24-2004, 08:01 PM
I found a thread from 2001 on this forum for enlarging an image in a new window when a user clicks on it. Here's the Javascript I used:
<html>
<head>
<SCRIPT language="JavaScript">
<!--
function PopUp(pPage) {
window.open(pPage,'popWin','resizable=yes,scrollbars=yes,width=580,height=460,toolbar=no');
}
//-->
</SCRIPT>
</head>
<body>
<A href="javascriptopUp('picture.jpg');"><img src="thumbnail.jpg" alt="" border=0></a>
</body>
</html>
This has worked great for me but I need to have the large image in the new window centered. I've tried adding "align=center" to various parts of both the <head> part of the code as well as the <body> part of the code. Nothing has worked.
Does anybody know if it's possible to get the image centered in the pop up window? Here's a page from my site using this code. http://69.44.16.33/shop/customer/pages.php?pageid=18&xid=9f3c39f86f00ea225c75399e679eef6d
Thanks so much.
<html>
<head>
<SCRIPT language="JavaScript">
<!--
function PopUp(pPage) {
window.open(pPage,'popWin','resizable=yes,scrollbars=yes,width=580,height=460,toolbar=no');
}
//-->
</SCRIPT>
</head>
<body>
<A href="javascriptopUp('picture.jpg');"><img src="thumbnail.jpg" alt="" border=0></a>
</body>
</html>
This has worked great for me but I need to have the large image in the new window centered. I've tried adding "align=center" to various parts of both the <head> part of the code as well as the <body> part of the code. Nothing has worked.
Does anybody know if it's possible to get the image centered in the pop up window? Here's a page from my site using this code. http://69.44.16.33/shop/customer/pages.php?pageid=18&xid=9f3c39f86f00ea225c75399e679eef6d
Thanks so much.