Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using a jump menu to open a page in another frame

Status
Not open for further replies.

Molenski

IS-IT--Management
Jan 24, 2002
288
DE
hi, i am new to dreamweaver and have taken over the job of managing my company intranet site. the site was built using fp2000, but on the advice of others, i am trying to further develop the site using dreamweaver 3 which i have found so far to be very good. here is my problem........
at the mo there is a drop down menu (some java script downloaded from the net which was editible, with accompanying text and i think some sort of code file) in one of the frames that makes up the home page. i would like to change this for a jump menu, which will speed up the loading of the home page. the files used with the java have made it considerably slower to load.
the problem is, although the page is split up into 3 sections, 'contents', 'main', and 'head' by frames, when i insert a jump menu in the 'contents' frame, the relevant page always opens in a new browser window, when i would like it to open in the 'main' window. this would keep the site standard and save users having to close unnecessary windows.
i have had a look in the source and tried changing a couple of things but to no avail. also, is there a way of returning the jump menu display to the original display (in this case 'quick links') as it always seems to retain the last url chosen.
hope this makes sense and thanks for all help!!! :-V
 
Hey molenski,
I use Dreamweaver 4 so I am not sure you have this option.
All I had to do was go to the top frame and
Insert>Form Object>Jump Menu. A pop-up window appears allowing me to specify the different choices for my jump menu as well as where they will appear (Main Window, Top Frame, Main Frame, or Bottom Frame) There is also a check box for Returning the menu to initially selected so you could make a first value that says 'choose link' or 'choose url' whatever and it will go back to that each time.

If Dreamweaver 3 Does not have this option here is the code for an example of the TopFrame Jump Menu:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<script language=&quot;JavaScript&quot;>
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+&quot;.location='&quot;+selObj.options[selObj.selectedIndex].value+&quot;'&quot;);
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot;>
<form name=&quot;form1&quot;>
<select name=&quot;menu1&quot; onChange=&quot;MM_jumpMenu('parent.frames[\'mainFrame\']',this,1)&quot;>
<option selected>Choose URL</option>
<option value=&quot;<option value=&quot;<option value=&quot;<option value=&quot;</select>
</form>

</body>
</html>

Hopefully, this will help you out. Good Luck.
Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top