Results 1 to 4 of 4

Thread: CMotion Image Gallery to open html pages

  1. #1
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default CMotion Image Gallery to open html pages

    CMotion Image Gallery

    http://www.dynamicdrive.com/dynamici...iongallery.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!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    Code:
    <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:

    Code:
    <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:

    Code:
    <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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    kona (10-13-2008)

  4. #3
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1 View Post
    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
    Last edited by kona; 10-14-2008 at 12:22 AM.

  5. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Sure, why not?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •