SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Feb 2004
    Location
    Holland
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question <map><area> linking probs.

    Hi,

    I'm working on a website that contains frames and a <map>.

    For example :

    Code:
    <img src="plaatje.jpg" width="450" height="600" border="0" usemap="#test">
    
    <map name="test">
    <area shape="rect" coords="308,93,347,239" href="url" target="middle">
    </map>
    This works fine. But I want it to let it link to 2 frames.

    For example :
    Code:
    <area shape="rect" coords="308,93,347,239" href="url" target="middle" href="url2" target="right">
    But the thing is that this doesn't work

    Can anybody help me out with this?

  2. #2
    SitePoint Addict
    Join Date
    Jul 2000
    Posts
    201
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could do that with javascript, I think this will work:
    HTML Code:
    <script language="javascript">
    <!--
    function frmUpdate(page){
       top.right.location=page;
    }
    // -->
    </script>
    
    <area shape="rect" coords="308,93,347,239" href="url" target="middle" onClick="frmUpdate('url2');">
    Last edited by FauxPas; Feb 27, 2004 at 16:45. Reason: I incorporated some improvements that I found at this page: http://www.sbrady.com/hotsource/javascript/twoframes.html

  3. #3
    SitePoint Member
    Join Date
    Feb 2004
    Location
    Holland
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    Thnx for your help.
    It works now


Bookmarks

Posting Permissions

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