473,386 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

drop down menu exchanges 2 frames

Yve
Hello,
I am new here and received good advice many times before by just
reading - now I would like to ask this question:

I have got a frameset of 5 frames: navigation and 4 content-frames.
How can I exchange the content of more than one frame by using an drop
down menu in the navigation-frame?
THANK YOU IN ADVANCE.

Yve.
Jul 20 '05 #1
2 3170
Yve wrote:

Hello,
I am new here and received good advice many times before by just
reading - now I would like to ask this question:

I have got a frameset of 5 frames: navigation and 4 content-frames.
How can I exchange the content of more than one frame by using an drop
down menu in the navigation-frame?

THANK YOU IN ADVANCE.

Yve.

Hi Yve,

Depends a lot on the options for the menu script available, but...
If you can add a onClick handler for a menuitem, use that to refer to a
js function.

In the function redefine the sources for the various target frames.
Should do the trick.

Juliette
Jul 20 '05 #2
Yve
Juliette <"jrf[spamblock]"@jokeaday.net> wrote in message news:<3F***************@jokeaday.net>...
Yve wrote:

Hello,
I am new here and received good advice many times before by just
reading - now I would like to ask this question:

I have got a frameset of 5 frames: navigation and 4 content-frames.
How can I exchange the content of more than one frame by using an drop
down menu in the navigation-frame?

THANK YOU IN ADVANCE.

Yve.

Hi Yve,

Depends a lot on the options for the menu script available, but...
If you can add a onClick handler for a menuitem, use that to refer to a
js function.

In the function redefine the sources for the various target frames.
Should do the trick.

Juliette


Hi, Juliette,

Thank you for your message.

As I am not a coder, I copy/pasted code to solve my problem.

If I choose e.g.the option "gelb", the content-frame should load
gelb.html and the thumbs-frame thumb_gelb.html.

So I don´t know how to tell "gelb" the two targets.

It would be just great if you could have a look at it to give me a
clue.

Thank you very much, greeting from Berlin; Yve.
.................................................. ............................

<html>
<head>
<title>test_javascript</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script type="text/javascript">
<!--
function Go(x,y) {
if(x == "nothing") {
document.forms[0].reset();
document.forms[0].elements[0].blur();
return;
}
else if(x == "end")
top.location.href = parent.content.location;
else if(y == "end")
top.location.href = parent.thumbs.location;
else {
parent.content.location.href = x;
parent.thumbs.location.href = y;
document.forms[0].reset();
document.forms[0].elements[0].blur();
}
}
//-->
</script>

</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="251">
<form>
<select size=1 name="bereich1"
onChange="Go(this.form.bereich1.options[this.form.bereich1.options.selectedIndex].value)'
width="50">
<option value="nothing">Bereich1
<option value="nothing">. . . . . . . </option>
<option value="../content/gelb.html">gelb</option>
<option value="../content/blau.html">blau</option>
</select>
</form>
</td>
<td width="66">&nbsp;</td>
<td width="283">
<form>
<select size=1 name="bereich2"
onChange="Go(this.form.bereich2.options[this.form.bereich2.options.selectedIndex].value)'
width="50">
<option value="nothing">Bereich2
<option value="nothing">. . . . . . . </option>
<option value="../content/rot.html">rot</option>
<option value="../content/gruen.html">grün</option>
</select>
</form>
</td>
</tr>
</table>
</body>
</html>

.................................................. .......................
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: KK | last post by:
Drop-down menus are the hottest thing since Wonder Bread but . . . 1. Alot of people put them in the they-look-nice-but-you-cant-code-them-right-so-they-always-look-messed-up category (a la...
1
by: Smriti Dev | last post by:
Hi, I have a drop down menu with a listing of communities and I use it to select a community, selecting a letter ie. "T" , I get bumped to the "T" section to choose communities that start with...
3
by: Bilal | last post by:
Hi, I've been looking all over the net for a way to increase the size of a drop down menu without any success. Does anyone perhaps have a way to display 11-15 items on a menu without having...
4
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
4
by: Larry R Harrison Jr | last post by:
I have them working now, courtesy of the link given in the prior thread--the HVMenu over at Dynamic Drive myself. http://www.dynamicdrive.com I have them working as side-bar menus, not...
2
by: hemanth.singamsetty | last post by:
Hello there, I've a drop down menu (created using CSS & Javascript -- see code below). My problem is, whenever I click a link on the menu the new page replaces the current page (and the menu...
1
by: Keimo Repo | last post by:
Hello I would need some advice, even just speculations... A customer of ours insists on a couple of customer specific design features for our existing multi-customer web application: - A...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.