PDA

View Full Version : CMotion Image Gallery to open html pages



kona
10-12-2008, 02:55 PM
CMotion Image Gallery

http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.htm

I want to use CMotion Image Gallery to display thumbnails of interactive panoramic images. When a thumbnail is clicked I would like the interactive panorama to display on the same page in a specified div. Basically CMotion Image Gallery and iframes to display html pages. I'm looking for the basic code for doing this.

Thanks for your help in advance!

jscheuer1
10-13-2008, 06:34 AM
That part is easy. Setting up a panorama page and having it look good in an iframe is the tricky part. OK, here goes. An iframe may be given a unique name attribute for targeting purposes, so give your iframe a unique name, for example:


<iframe name="panorama_frame" width="500" height="200" src="about:blank">This feature requires that your browser support iframe.</iframe>

Then, in the markup for Cmotion, do like:


<div id="motioncontainer" style="position:relative;overflow:hidden;">
<div id="motiongallery" style="position:absolute;left:0;top:0;white-space: nowrap;">

<nobr id="trueContainer"><a href="panorama_1.htm" target="panorama_frame"><img src="panorama_1.gif" border=1></a> <a hre . . .

where panorama_1.htm is the name of your html page with a panorama on it. Repeat the:


<a href="panorama_1.htm" target="panorama_frame"><img src="panorama_1.gif" border=1></a>

part with different hrefs and img tag src attributes as many times as required to show the thumbnail image for and to link to each external panorama page.

kona
10-13-2008, 01:31 PM
That part is easy. Setting up a panorama page and having it look good in an iframe is the tricky part.

Believe it or not, I have this part down.

Thanks, once again, for all your help. I'll set it up later today and let you know how it works. Are you interested in seeing it when I'm finished?

kona

jscheuer1
10-13-2008, 07:32 PM
Sure, why not?