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 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Nov 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Changing content of two frames w/one link?

    I have a webpage with two rows, with the lower row divided into two columns. The left column has a menu with links and the right column has the contents. On the top row, I would like to include a title that changes as different links are followed. Is there any way I can have one of my menu links change the contents section and the top title row?

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #3
    New to the CF scene
    Join Date
    Nov 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, that's what I need. I just need to know how to change this so that the top frame will change to raggy.html instead of the frame that hosts the link.

    <a href="zoinks.html"
    onClick="window.self.location='raggy.html'" target="otherframe">
    Zombies</a>

  • #4
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    <a href="raggy.html"
    onClick="window.self.location='zoinks.html'" target="otherframe">
    Zombies</a>
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #5
    New to the CF scene
    Join Date
    Nov 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry I'm not explaining this well. I've got three frames, like this:
    _______________
    _______________l
    ...l....................l
    ...l....................l
    ...l....................l
    ...l....................l
    ...l....................l
    ...l....................l
    ...l....................l

    I want the left (skinny) frame's links to change both the top and right frames. The left frame will remain a menu.


    Could I just change the self in window.self.location to top? I'll try it...

  • #6
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    you have a frame named top? that's a bad idea. top is a name reserved by javascript. if you write
    <a href="raggy.html"
    onClick="top.location='zoinks.html'" target="otherframe">
    Zombies</a> , that will replace the entire browser window, with zoinks.html

    otherwise, you're right, and i'm sorry for the misunderstanding. you just change the window.self.location to self.FRAMENAME.location.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #7
    New to the CF scene
    Join Date
    Nov 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, I'll change the name of the frame, too. I haven't taken any classes or anything on HTML so I don't know very much. Thanks for your help.


  •  

    Posting Permissions

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