Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-13-2004, 05:22 AM   PM User | #1
Tron 10
New to the CF scene

 
Join Date: Oct 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Tron 10 is an unknown quantity at this point
Multiple pages in one iframe...

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.
Tron 10 is offline   Reply With Quote
Old 10-13-2004, 05:36 AM   PM User | #2
gohankid77
Regular Coder

 
Join Date: Jul 2004
Location: engoku no anime
Posts: 354
Thanks: 0
Thanked 0 Times in 0 Posts
gohankid77 is an unknown quantity at this point
Multiple 'href' attributes? LOL

JavaScript anybody?

Also, what do you mean:

Quote:
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.
__________________
Spread Firefox!
Get Firefox!

Last edited by gohankid77; 10-13-2004 at 05:40 AM..
gohankid77 is offline   Reply With Quote
Old 10-13-2004, 07:22 AM   PM User | #3
ArcticFox
Regular Coder

 
ArcticFox's Avatar
 
Join Date: Jan 2004
Location: Vostok Station, AQ
Posts: 602
Thanks: 35
Thanked 3 Times in 3 Posts
ArcticFox can only hope to improve
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');>
__________________
<div> - putting your mind in a box since 1997

Last edited by ArcticFox; 10-13-2004 at 07:24 AM..
ArcticFox is offline   Reply With Quote
Old 10-13-2004, 02:46 PM   PM User | #4
Tron 10
New to the CF scene

 
Join Date: Oct 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Tron 10 is an unknown quantity at this point
Something like this, gohankid77...



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.

Last edited by Tron 10; 10-13-2004 at 06:06 PM..
Tron 10 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:54 AM.


Advertisement
Log in to turn off these ads.