-
cmotion popup window html
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();
}
-
-
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
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks