-----Original Message-----
I am working on some pages where i want the user to click
on a text link and open an image in a new window, so far
i can get the new window but i would like to do it so it
opens only at the image size , 336 x 495 pxls, and
centered if possible, i am not good at java scripts so if
anyone knows how to do this please let me know asap!!!
You have to modify the text link to call the window.open
method, as shown below.
<a href="javascript:window.open
('/images/mypicture.jpg',null,'height=336,width=495,status=
no,toolbar=no,menubar=no,location=no');void(0);">text link
</a>
The height= and width= settings specify the *external*
size of the new window. Making the window just large
enough to show the whole picture is a problem, because you
can't know in advance how much space the window borders
consume. You'll probably have to make the window a little
over-sized, and hope for the best.
For more information about the window.open method, browse:
http://msdn.microsoft.com/workshop/author/dhtml/reference/m
ethods/open_0.asp
Microsoft Office FrontPage 2003 Inside Out comes with a
test page that displays the browser's current external and
internal window sizes. This may be helpful when estimating
the external window size needed to provide a given
internal space. You can preview this page at:
http://www.interlacken.com/fp11iso/ch19/windowsize.htm
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------