Forum Moderators: open

Message Too Old, No Replies

Opening an image link with new window sized to image...

         

Udder_Juice

7:26 pm on Jun 11, 2004 (gmt 0)



I'm looking to create links to images that open in a new window with the new window sized to the image. Now I have found several java script thingys.

However I dont have time to set up a script for every link, I need some kind of universal thing that just tells IE to "open the new window sized to the image whatever size the image may be" type of thing. Is there anything like this? I don't need really fancy results just a window that opes to the size of the image.

Thanks!

[edited by: tedster at 7:44 pm (utc) on June 11, 2004]

tedster

7:49 pm on Jun 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forum

Check out message #4 in our Generic Javascript [webmasterworld.com] resource -- the one titled CUSTOM SIZE POPUP WINDOWS.

That javascript allows you to use variables to plug in the height and width. To go any further with automation, I believe you would need to use some server-side scripting, like PHP, to grab the dimesions of the image right from the file.