PDA

View Full Version : IFrame sticking - weird situation



jundo12
05-08-2017, 10:24 PM
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/earthfemale/european/shuttle/earth/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

jundo12
05-09-2017, 06:29 AM
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.