Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Regular Coder
    Join Date
    Jul 2004
    Location
    engoku no anime
    Posts
    354
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Last edited by gohankid77; 10-13-2004 at 06:40 AM.

  • #3
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts
    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');>
    Last edited by ArcticFox; 10-13-2004 at 08:24 AM.
    <div> - putting your mind in a box since 1997

  • #4
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 07:06 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •