rhiaro
12-14-2008, 11:20 PM
1) Script Title: DHTML Window
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
I'm using the script to load images inline, and it would be ideal if I could set the width and height of the window to match the dimensions of the images.
I changed width and height to auto - which seems to work perfectly for width, but not height. Any ideas?
<a href="gallery/phr06.jpg" onClick="img01=dhtmlwindow.open('img01', 'inline', '<a href=# onClick=img01.hide(); return false><img src=gallery/phr06.jpg /></a>', 'PHR Gallery', 'width=auto, height=auto, left=50px,top=50px,resize=1,scrolling=0'); return false"><img src="gallery/thumbs/phr06.jpg" class="imgpad2" /></a>
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
I'm using the script to load images inline, and it would be ideal if I could set the width and height of the window to match the dimensions of the images.
I changed width and height to auto - which seems to work perfectly for width, but not height. Any ideas?
<a href="gallery/phr06.jpg" onClick="img01=dhtmlwindow.open('img01', 'inline', '<a href=# onClick=img01.hide(); return false><img src=gallery/phr06.jpg /></a>', 'PHR Gallery', 'width=auto, height=auto, left=50px,top=50px,resize=1,scrolling=0'); return false"><img src="gallery/thumbs/phr06.jpg" class="imgpad2" /></a>