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 3 of 3
  1. #1
    New Coder
    Join Date
    Apr 2006
    Location
    Florida
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question: Framesets

    I am not sure what to do. I have a simple page and I want to have a locked header with my navagation links so i can click a link without having to scroll up to the top of the page.

    Right now this is the code I am using

    Code:
    <html>
    
    <frameset rows="41%,100%">
    
      <frame src="frame_a.html">
      <frame src="frame_b.html">
      
    </frameset>
    
    </html>
    The frame_a is the header I want locked and the frame_b is the rest of the page.

    My problem is when I click a link in frame_a it happens in frame_a.

    Is there anything in my links I can add or change that will allow me to click a link in frame_a and have it open in frame_b?

    Here is the code for one of my links

    Code:
    <p ALIGN="left"><a href="/forum"><img style="border:0;" src = forum.gif></a></p>
    Thank you very much for all your help

    My sight if it helps

  • #2
    Regular Coder Pepe, the bull's Avatar
    Join Date
    Feb 2005
    Location
    Vancouver, WA
    Posts
    163
    Thanks
    1
    Thanked 16 Times in 16 Posts
    First you need to name your frames.

    Code:
      <frame src="frame_a.html" name="frame_a">
      <frame src="frame_b.html" name="frame_b">
    Then you need to add a target to your links.

    Code:
    <p ALIGN="left"><a href="/forum" target="frame_b"><img style="border:0;" src = forum.gif></a></p>
    Pepe, the bull

  • #3
    Regular Coder oldcrazylegs's Avatar
    Join Date
    Feb 2004
    Location
    East Moline Illinois USA
    Posts
    414
    Thanks
    4
    Thanked 5 Times in 4 Posts
    Last edited by oldcrazylegs; 04-29-2006 at 09:53 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
    •