Auto crop on pop-up window.

liunx

Guest
Well, perhaps this isn't possible in plain HTML...<br />
<br />
Am working on this photo gallery (<!-- m --><a class="postlink" href="http://www.lettonica.info/moments/riga/">http://www.lettonica.info/moments/riga/</a><!-- m -->) layout.<br />
<br />
Would love to make the large images, prompted by clicking either thumbnail or text link, to fit the pop-up enlargement window.<br />
With this script I've got it's only possible to determine height, width in the image attributes:<br />
<br />
onclick="window.open(this.href,'picture','toolbar=0,location=0,directories=0,status=no,menubar=0,scrollbars=n o,resizable=no,width=550,height=550,titlebar=no');return false;" <br />
<br />
Is there a plain HTML command to make window fit image width, height properties?<!--content-->Originally posted by philaweb <br />
Well, perhaps this isn't possible in plain HTML...<br />
<br />
Am working on this photo gallery (<!-- m --><a class="postlink" href="http://www.lettonica.info/moments/riga/">http://www.lettonica.info/moments/riga/</a><!-- m -->) layout.<br />
<br />
Would love to make the large images, prompted by clicking either thumbnail or text link, to fit the pop-up enlargement window.<br />
With this script I've got it's only possible to determine height, width in the image attributes:<br />
<br />
onclick="window.open(this.href,'picture','toolbar=0,location=0,directories=0,status=no,menubar=0,scrollbars=n o,resizable=no,width=550,height=550,titlebar=no');return false;" <br />
<br />
Is there a plain HTML command to make window fit image width, height properties? Not a plain html command. Html is markup, not script, its just does not work that way. Now you can do this server side, you can get image information server side and use it to modify your html and java script so that the images will display how you want. But no html alone is not going to be able to do what you want... if I am reading the question right. You can make the image fit in the window with some css and all, but makeing the window fit the image would be a js thing.<!--content-->Originally posted by PeOfEo <br />
...but makeing the window fit the image would be a js thing. <br />
<br />
I anticipated that. :) <br />
<br />
Well, back to the drawing board. :D <br />
<br />
<br />
Must find JS pop-up script, must find JS pop-up script, must find JS pop-up script etc. ..... :p<!--content-->
 
Back
Top