Click to See Complete Forum and Search --> : open picture sized window ?


slam
12-11-2003, 08:52 AM
<a href="bild/F1.jpg" target="_blank">
<img src="bild/H1.jpg" width="300" height="208" align="right" alt="" border="0"></a>

the mouse click opens a new window and displays F1.jpg

I want that window to resize adjusted to the picture size (I have pictures of different sizes)

How can I do this ?

gil davis
12-11-2003, 08:54 AM
http://gil.davis.home.att.net/openit_example.htm

slam
12-12-2003, 05:45 PM
downloaded the files, and modified my source file as instructed but doesn't work !
I deleted all my java scripts and only kept the reference to the openit.js ...

gil davis
12-12-2003, 08:38 PM
Did the example work?

What browser?

Are all the files in the same directory?

Post your code.

slam
12-13-2003, 05:39 AM
Sorry, but I forgot to include the link to the stylesheet !
it works perfectly now, thank you
IE 6 (PC)

---------------------------------------------------------------

further tests give the following results :

Netscape 7.1 : O.K. but window slightly smaller than pict

IE 5.1 (Mac) : not O.K. gives small window with background only and RED scrollbars ?