...

View Full Version : Multiple pages in one iframe...



Tron 10
10-13-2004, 05:22 AM
Hey everyone,

I've been struggling with this page I made. I can't remember how to have multiple pages open in one iframe with hotspots. I have one image with about five hotspots that need to open in one iframe. Any suggestions? Thanks.

gohankid77
10-13-2004, 05:36 AM
Multiple 'href' attributes? LOL

JavaScript anybody?

Also, what do you mean:



I have one image with about five hotspots that need to open in one iframe.


You can only have one page loaded into a(n) (i)frame at a time.

ArcticFox
10-13-2004, 07:22 AM
You need to NAME the iFrame and TARGET the links to go into that frame.


Example;

<iframe src="original.html" name="Fred"></iframe>


Your link to send new page to iFrame:

<a href="page.html" target="Fred">
or; <div onClick="javascript:window.open('page.html','Fred');>

Tron 10
10-13-2004, 02:46 PM
Something like this, gohankid77...

http://disturbthepeace.net/ex.jpg

The text above is a slice made in photoshop and the box below is the iframe. Like I want to be able to click the "news" hotspot and have "news.htm" open in the iframe. Then I want to be able to click "time" and have "time.htm" open in the iframe. See what I mean?

And thanks, ArcticFox, I'll try that.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum