A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: targeting 2 iframe w/ 1 link

  1. #1
    Member
    Join Date
    Jul 2002
    Posts
    51

    targeting 2 iframe w/ 1 link

    Say I have a simple image link on an html page. I'm not very good at html but I want my one link to target two iframes. LeftFrame and RightFrame. It sounds really simple but I can't get it to work and am not sure how. Thx in advance.
    01000010011011110110001000000000

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    will always be some javascripting

    <a href="loadframes()">...
    <script>
    function loadframes()
    { leftframe.location = 'a.html';
    rightframe.location = 'b.html';
    }

    or
    <a href="a.html" target="leftfrme" onclick="rightfrane.location='b.html'">

    Musicman

  3. #3
    Member
    Join Date
    Jul 2002
    Posts
    51
    Sorry for the trouble but -

    <A HREF="HomeLeft.html" TARGET="LeftFrame" onMouseOver="if(document.images) document.HOME_off.src='./nav/HOME_over.gif';" onMouseOut="if(document.images) document.HOME_off.src='./nav/HOME_off.gif';" onClick="RightFrame.location='HomeRight.html'">

    Assuming I am not being stupid and not filling in location with the location, why does it not work? The rightframe does not change, not even to page cannot be displayed. I picked this method you suggest because it looked easier and I still believe it will be.

    -I would be using flash but hey I need it in html

    thanks again
    01000010011011110110001000000000

  4. #4
    Member
    Join Date
    Jul 2002
    Posts
    51
    Well nevermind I fixed it by just having the link target one page, then have a body onload thing to load the other. ty for help
    01000010011011110110001000000000

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center