ProfBelen
06-17-2004, 04:16 PM
Is there any way I could edit the size of the ie window? I want to have it set up so that when you click on a thumbnail it brings up a new window that is fitted to the size of the picture. thanks
|
View Full Version : resizing an ie window ProfBelen 06-17-2004, 04:16 PM Is there any way I could edit the size of the ie window? I want to have it set up so that when you click on a thumbnail it brings up a new window that is fitted to the size of the picture. thanks MaGiCSuN 06-17-2004, 05:28 PM if your host allows you to use PHP this script can be helpfull: http://regretless.com/scripts/scripts.php#dodosnmimage if not, then javascript will be the one. Use this between the <head> and </head>: <script language="JavaScript"><!-- function Win(url,h,w) { // (url,height,width) var p = "height=" + h + ",width=" + w + ",scrollbars=yes"; window.open(url,"",p); } // --> </script> then use this for every pop-up as a link (above code should not be changed!!!): <a href="javascript:Win('urltoimagehere.gif','height','widt h')"><img src="thumbnail.gif" border="0"></a> for the urltoimagehere.gif you fill in the url to the actual image. heigth will be replaced by the height of the window, and width to the width of the window Love, Mirna |