View Full Version : Question about one of those div things


Tessie
07-17-2003, 12:50 AM
I got a div thing to work as an iframe inside of an image map...now I want to know how to get it so that when I click on a link in the image map, the content loads inside the div iframe thing without the imagemap picture thing having to load again and again. Does that make sense?

kittycat
07-17-2003, 01:29 AM
You can't target divs, only iframes/frames. So you either replace the div with an iframe or put the iframe inside of the div you already have.

CryptalClear
07-17-2003, 01:33 AM
Tessie- Is this what you are talking about? On my site:
http://www.angelfire.com/art2/poetstoic/index.html
it automatically loads into the iframe. If it's what you are talking about, the code that I use is:

<a href="http://www.angelfire.com/art2/poetstoic/poems.html" target="inlineframe">

Have you tried the targeting? I guess just add the target="inlineframe(or whatever your iframe's name is)" to your link code, and that ought to fix the problem, I think :/ I'm not sure if it will.

Tessie
07-17-2003, 01:40 AM
Originally posted by CryptalClear


Have you tried the targeting? I guess just add the target="inlineframe(or whatever your iframe's name is)" to your link code, and that ought to fix the problem, I think :/ I'm not sure if it will.

I've tried targeting the div, but the person who posted before you said that's not possible...arghhh! I'm gonna kill my computer!!
I don't have an iframe, it's a div that looks like an iframe, but it doesn't want to act like one.
I'm trying to make the frame act like this person's: http://creative-escape.org/fan (http://creative-escape.org/fan/) . It looks like she set the picture to be the background though. I'm not sure if mine would work if I set it as a background.

Tessie
07-17-2003, 01:45 AM
By the way, how do you get the iframe inside the div?

kittycat
07-17-2003, 02:07 AM
On the site you posted, yes, the image is set as the background of the iframe.

To get an iframe inside the div:
<div>
iframe code
</div>

Tessie
07-17-2003, 01:29 PM
I tried, but it won't work. The scrollbar from the div is still there, and even if I make the iframe bigger than the div, it won't go away.