Forum Moderators: open

Message Too Old, No Replies

fitting images to js windows

         

albroun

9:44 am on Aug 13, 2005 (gmt 0)

10+ Year Member



Hi

Have a problem with loading images into javascript windows, where the images are over a certain size. In such cases the browser (IE) "kindly" reduces the size of the image to fit into the user's screen, and therefore the javascript window looks too big for the image - until the user finds that if they click on the image and scroll to the bottom IE provides an icon which allows the image to expand to its full size - not very helfpul as the user has to know what they are trying to achieve to get the image to display at its intended size.

Is there any way of overridiing this beahviour. The code I am using at present typically looks like this (user clicks on a thumbnail to load full size image):

<a href="javascript:void window.open('picture-big.jpg','gw','width=680,height=950,menubar=no,scrollbars=yes,toolbar=no,resizable=yes,top=10,left=100')"><img src="picture-small.jpg" alt="click on this thumbnail" style="width:100px; height:139px;"></a>

Thanks

RonPK

12:40 pm on Aug 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What about writing an HTML document into the new window and use one of the available imagetoolbar-blockers?

But I'm not sure whether the toolbar-blockers also prevent the resizing.
<meta http-equiv="imagetoolbar" content="no">
or <img src="foo.png" galleryimg="no">

albroun

2:58 pm on Aug 13, 2005 (gmt 0)

10+ Year Member



Thanks

Forgot to mention that opening the image in an html document also ran into the same problem. What I was wondering if js could be used to prevent the image from being resized.

Cheers