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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jump menu problem

Status
Not open for further replies.

DoctorFox

Programmer
May 15, 2001
12
GB
Hi all, i'm looking for some help if you can? I'm putting together some jump menu's and want the links to open up in a new browser window. The target menu in the jump menu field only offers "open in main window" and does not give me any other choices.....

Is it possible to do this in Dreamweaver or is it a case of manually altering the HTML code?

Any advice would be appreciated as it's driving me mad B-(
 
Hello DoctorFox!

Change DW's code a bit.
[ol]
[li] select list menu, open Behaviours window and remove Jump Menu behaviour;

[li] still having list menu selected add Open Browser Window behaviour;

[li] still having list menu selected go to code and change this code
onChange="MM_openBrWindow('','','')"
into this
onChange="MM_openBrWindow(this,'put_here_any_name_you_want','set_here_any_attributes_you_want')"

[li] still having list menu selected open Properties window and set values - each item must have URL to the page you want to open as its value.
Example: <option value=&quot;aaa.htm&quot; selected>aaa</option>

[li]goto HEAD section of your page and find MM_openBrWindow function and change it to look like this:
function MM_openBrWindow(selObj,winName,features) { //v2.0
window.open(selObj.options[selObj.selectedIndex].value,winName,features);

[/ol]

That must be it (if I didn't forget anything :))... Good Luck! :)
 
Thanks for your prompt response EP, i'll give it a go.

Much appreciated!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top