Click to See Complete Forum and Search --> : Targeting iframes


spufi
04-30-2003, 02:08 PM
So I have bunch of pics on a page that are thunbnail sized. You click on them and you get the larger version. This is all fine and dandy, but I want it to be a little slicker. I was thinking about using an iframe, but doing so was a little more complex.I tried to use an iframe to display the pics within the iframe. I however wanted to only to display the first pic and then allow the user to click on a link to change the pic within the iframe. This is basically what frames are used for, but the site has already been done with a no-frame design. So, is Javascript the way to make this work, or would something like PHP ultimately be better? The goal is to change the pic and not the whole page itself.

Charles
04-30-2003, 02:31 PM
Why use nasty old JavaScript when kind HTML will do the trick?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Bettie at her Best</title>
<div><a href="http://www.bettiepage.com/images/photos/whip/whip7.jpg" target="display">Bettie</a> | <a href="http://www.bettiepage.com/images/photos/whip/whip8.jpg" target="display">Page</a></div>
<iframe name="display" height="350" width="250">

pyro
04-30-2003, 02:39 PM
These two links may be of interest to you:

http://www.infinitypages.com/research/divinclude.php
http://www.infinitypages.com/research/clientsidedivinclude.htm