View Full Version : CMotion "enlargeimage" scrollbars?

12-23-2007, 02:36 AM
CMotion Image Gallery


Using the "enlargeimage" function, how do you include scrollbars in the kiosk window?

To view my usage please see http://proudfoto.com

The filmstrip at the bottom of the page uses cmotion gallery, but I have also added "Lightbox image viewer 2.03a" (http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm) to the mix, so to see the kiosk window click the "Click here for REALLY big picture..." link at the bottom of the picture frame.

I am assuming that the "enlargeimage" function variables in "motiongallery.js" are what I need tutelage in.

12-23-2007, 08:22 AM
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=yes,scrollbars=yes"
window.open(path,"", winattributes)

12-23-2007, 02:41 PM
Thanks John - You da man.