1) Script Title: CMotion Image Gallery
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...iongallery.htm
3) Describe problem: I'm not actually having a problem with the script since everything seems to be working fine, but I do have one small question. When the full sized image opens in the pop up window, it's scaled to 95% and there's white around the image. I can't figure out why it doesn't just fill the whole window and I know I have the dimensions correct. Does it have something to do with this part of the script?
My largest image width is 500px and the largest height is also 500px, but every time the window opens there is white space around the image and I need to click it to make it fill the window. Is there any way to change this? I tried making those dimentions larger, but nothing different happened. If you need to see it in action you can temporarily find it here. It's just a test page, so it will be removed once I get it working the way I want. I'm sure the rest of my coding isn't perfect, but I'm not a professional web designer and I don't really expect it to be.function enlargeimage(path, optWidth, optHeight){ //function to enlarge image. Change as desired.
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=no"
window.open(path,"", winattributes)
}
Also, I noticed the Text and Image Crawler script mentioned in another thread here. Can pop-up enlarged images be added to that too? I like the continuous scroll on that one better than the "End of Gallery" thing on the CMotion script.
Thanks in advance!



Reply With Quote

Bookmarks