Click to See Complete Forum and Search --> : Javascript: adapting a js menu


Elli
08-28-2003, 04:34 AM
hi there, I implemented a js-menu into a website for navigation.
It´s working fine so far. My problem is that I want to change
not only 1 frame, I want to change 2 frames at one time
(mainContent and sideContent). Unfortunately I´m not a
js-programmer, so I have no clue how to adapt this kind of
function. Maybe there is one who could help me? Could it be
that there is also a other solution for this problem?

tnx Elli

Links:
website (http://floriannet.de/media)

I also attached the menu.js

Khalid Ali
08-28-2003, 07:29 AM
If I understood you correctly? you want to make changes to reflect in 2 frames,if this is so then you only need to target both frames with you change.For instance you want to load 2 pages in both frames then you will need to do something like this

parent.frame1Name.location.href = url1;
parent.frame2Name.location.href = url2;

Elli
08-28-2003, 08:15 AM
Outstanding, that was exactly the code fragment I was searching
for...

tnx a lot

Elli