PDA

View Full Version : CMotion Script



MomoD
10-28-2005, 07:53 PM
http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.htm


Is there a way to tweak this code so that, instead of loading the enlarged viewing in a popup window, it loads the window into an iframe window above the gallery?

IE-

------------------
|.......iframe........|
|______________|
|__galleryscript__|

I'm not familiar with javascript, but I took a look in the js file and saw no variable or tag at all that may allow me to change that, and when I simply added the target="show" tag to the link, I got an error.

jscheuer1
10-29-2005, 06:01 AM
It is not clear to me what you did but, for what you want, you should be able to make your links look like this (from the example):


<a href="larger_image.jpg" target="iframe_name"><img src="dynamicbook1.gif" border=1></a>

where larger_image.jpg is the name of the image you want displayed in the iframe and iframe_name is the name of the iframe:


<iframe name="iframe_name"></iframe>

You will of course want to use other attributes, of your choosing, in the iframe tag,