View Full Version : change an iframe w/o changing the entire page


corkie5252
07-30-2004, 07:37 PM
I know this is really basic, but I need to make it so I dont have to update the image map on every page. I want people to click on a link on my image map, and have it open the corresponding iframe. Any help with the code is appreciated. The URL is http://www.freewebs.com/corkie5252/dementia.htm

pb&j
07-30-2004, 10:32 PM
kinda confused...
your links already open into the iframe area.
the image map stays the same, solid, the same page.
what do you need to adjust?

on your pages, you seem to be missing the basic html tags...

<html>
<head>
<title> your title here </title>
</head>
<body>
most of your coding goes in here.
</body>
</html>

it is best to have those tags in all of your webpages for them to work correctly.

corkie5252
07-30-2004, 10:36 PM
Thanks, I will add the basic tags...

But what I want it to do is only change the iframe, not the image map too, each time you click a link on the map. Look at this site http://www.sweet-intensity.net/beckygirlhp/dandarkness.html to see the kinda thing Im talking about.

pb&j
07-30-2004, 10:41 PM
add this to each of your AREA tags...

target="main"

that way the link will look for the area called "main" which happens to be your iframe name and open the link into that spot.

corkie5252
07-30-2004, 10:47 PM
thanks! It works now.

pb&j
07-30-2004, 10:48 PM
no worries. good luck!