Hi
I'm trying to do something like that: after clicking on a table cell,
there should open a new browser window
with size depending on size of image which is to be displayed in this
window.
My idea is:
//
<img src="something.gif" style="position: absolute; top: 0; left: 0;
visibility:
hidden;">
//
and in java script function:
//(...)
document.images[0].src="something_else.gif";
var wsize=document.images[0].width;
var hsize=document.images[0].height;
//(..)
var mywindow=window.open('','',width=wsize,height=hsiz e)
//(...)
but I can't write "width=wsize, height=hsize": it doesn't work.
I could also use a switch statement for opening new windows
for example:
case wsize 100: window.open("","",width=100,height=100),
case wsize 200: window.open("","",width=200,height=150)
and so on
but this isn't a good solution because there are many images and they vary
in sizes
very much.
Any ideas??
thx
wak