Opening images in borderless windows?

Does anyone know how to have an image open in a new browser window, that is sized to the dimensions of the image. After doing some research, I know it can be done with Java, but Im not to sure how to do it.

Ive seen it done from iWeb, but on photo template pages, Im not using the templates, but want the same effect. Any help would be greatly appreciated.

Power Mac G5 Mac OS X (10.4.7)

Posted on Aug 23, 2006 6:38 PM

Reply
6 replies

Aug 24, 2006 2:07 AM in response to red.sea

OK, so after you "Link to File" and publish, open the html files and find

href="pagename_files/nameofimagefile.jpg"

change to

href="#" onclick="javascript:window.open('pagename files/nameofimagefile.jpg','blank','width=x,height=y,toolbar=0,menubar=0,resizable=0,location=0,status=0,scr ollbars=0,directories=0'); return false;"

x and y are the photo dimensions

Aug 27, 2006 1:36 AM in response to red.sea

Add titlebar=0

NB: not all browsers support all window features, ie it may not work!

A workaround would be to make a single html page with the image on it, title this page appropriately (alter the text between <title> and </title> in the code) and have that as your target. That way, when the new window opens, it will have the title that you want, instead of the path.

Michael
iMac 20" Intel Core Duo 2GHz

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Opening images in borderless windows?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.