...

View Full Version : Changing content of two frames w/one link?



Rougeux
11-10-2002, 08:33 AM
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?

joh6nn
11-10-2002, 09:16 AM
http://hotwired.lycos.com/webmonkey/97/02/index4a.html

Rougeux
11-10-2002, 05:53 PM
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>

joh6nn
11-10-2002, 06:02 PM
<a href="raggy.html"
onClick="window.self.location='zoinks.html'" target="otherframe">
Zombies</a>

Rougeux
11-10-2002, 06:15 PM
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...

joh6nn
11-10-2002, 06:46 PM
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.

Rougeux
11-10-2002, 06:55 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum