Results 1 to 2 of 2

Thread: IFrame sticking - weird situation

  1. #1
    Join Date
    May 2014
    Posts
    203
    Thanks
    28
    Thanked 5 Times in 5 Posts

    Default IFrame sticking - weird situation

    Okay, I've modified a cool js/css image gallery to make a 3d room with four walls. each wall can hold its own background and images. the images and background stay as individual features of each wall, however, an iframe will instead stick to the camera and follow it around the room. lol (use left/right arrow keys on keyboard to view the room.
    http://theangelsquest.com/test/earth...3d/index3.html

    suffice it to say, i'd prefer a way to make the iframe stay on its own originally depicted wall, not stick to the camera. i know its possible but potentially only if i create a toggle for the background that pops up to reveal the iframe embedded in it, but if not dismissed, it will also follow the camera around (which is not the worst thing ever, but still preferable for the iframe to be unique to its originating wall. wonder if more than one wall can have an iframe if they can be associated with their own walls? could create a crossroads effect, like in a maze or building with 4 halls going in different directions
    Last edited by jundo12; 05-08-2017 at 10:48 PM.

  2. #2
    Join Date
    May 2014
    Posts
    203
    Thanks
    28
    Thanked 5 Times in 5 Posts

    Default

    here's an example where i put a toggleable image on a wall, that stayed put and didn't follow the camera because the html/css/javascript for the image, was attached to that background for that wall
    <figure><div style="position: absolute; left: 0%; top:0%; z-index: 9999; width: 100%; height: 100%; "><a
    href="#" onclick="toggle_visibility('cabinets');" data-sounddown="chest.mp3">
    <img src="images/shipview7f.png" alt="img02" width="100%" height="100%" data-sounddown="chest.mp3"/></a>
    </div>

    <figcaption>

    </figcaption>

    now feasibly, having the iframe embedded in the toggleable window, would keep the iframe stuck to that wall since it's buried in the toggle, but interactivity with it is clumsy and the toggled window will follow you around if you don't dismiss it. in addition a further step (clicking) would be required *not a terrible issue but not as interactive to access the iframe content.

Similar Threads

  1. all levels sticking
    By discdemo in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 09-28-2009, 03:50 PM
  2. Weird Iframe sizing problem
    By dmrgraphics.com in forum HTML
    Replies: 0
    Last Post: 03-19-2009, 05:38 AM
  3. Replies: 1
    Last Post: 08-25-2008, 03:17 PM
  4. A DIV area critical situation
    By npsari in forum JavaScript
    Replies: 2
    Last Post: 05-13-2007, 11:11 AM

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
  •