PDA

View Full Version : cmotion popup window html



dydoyaga
04-18-2006, 10:05 PM
I have followed all the directions on this forum and it all works... however, I notice that my image on popup does not auto resize the image now that it generates the html file. I have not put it up on my site yet.

any chance of image resizing to fit html page and still be resizable when I expand the browser window.

thanks
again

this is the code i got from pervious feed on the forum:

function enlargeimage(path, description, optWidth, optHeight){
var actualWidth=typeof optWidth!="undefined" ? optWidth : "600px" //set 600px to default width
var actualHeight=typeof optHeight!="undefined" ? optHeight : "500px" //set 500px to default height
var winattributes="width="+actualWidth+",height="+actualHeight+",resizable=yes"
var win=window.open("","", winattributes)
win.document.write('<body style="margin:10px;padding:0;overflow:hidden;">');
win.document.write('<img src="'+path+'">');
win.document.write('<div style="margin-top:3px;font-family:verdana, arial, sans-serif;font-size:90%;"><nobr>'+description+'<\/nobr><\/div>');
win.document.close();
}

dydoyaga
04-18-2006, 10:16 PM
Also, I think a limitation of charcters exists doing it with this script. Any way to get past the limitation. If I want to add a few sentences to describe the image?

thanks again