If I were to do this...
I would need to use the window.open method as mentioned by Kouras, however, to size the page to the image, the image on the main page would need to have the exact dimentions in the HEIGHT and WIDTH attributes (<IMG SRC=something.gif HEIGHT=219 WIDTH=135)
I then use JavaScript to use the dimensions of the IMG tag to create a window of the same size. It's important to remember to set the margins of the popup to 0 so that the image fits perfectly.
Main Topics
Browse All Topics





by: KourasPosted on 2003-04-13 at 18:56:36ID: 8324110
Hi, top='+wint +',left='+ winl+',scr ollbars='+ scroll+',' sion) >= 4) { win.window.focus(); }
ef,'name', '400','500 ','yes');r eturn false;">
I know how to do it with javascript, but it will be a pop-up.....:
Put in the head:
<SCRIPT>
<!-- Begin pop up
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVer
}
// End of pop up-->
</SCRIPT>
and the link ih he body will be:
<a href="yourfile.htm" onClick="NewWindow(this.hr
Hope this will help:)
Kouras