Forum Moderators: open

Message Too Old, No Replies

Displaying image into new WIndow

         

tbeck11

3:41 pm on Feb 3, 2004 (gmt 0)



Newbeeie here.

I'm using Frontpage for my web site and am able to click on a picture and have it open into a new window. My question is how can I size the new window that my image is displayed in?

Thanks.

Todd

jomaxx

4:04 pm on Feb 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I know nothing about Frontpage, but you can control the size of the window if you use the Javascript window.open command. Just make the link look something like this:

<A HREF="image.jpg" onClick="window.open('image.jpg','winname','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=300,height=200'); return false;">

You'll have to experiment (in a few different browsers) to find the window height and width you need to specify in order to make the image display perfectly.

There are also ways you can use the actual h/w of the image so that it doesn't have to be hardcoded, but that gets a lot more complex and it's probably more than you need.

[edited by: tedster at 6:38 pm (utc) on Feb. 3, 2004]
[edit reason] fix side scroll [/edit]