Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:44

Target = _blank


Poster: plschneide
Dated: Thursday January 11 2007 - 4:43:27 GMT

I have seen several posts and an example that tell how to have a main menu link open in a new window using code:

aI("target=_new;text=Product Purchasing Page - With target=new;url=http://www.milonic.com/cbuy.php;");

However when I try that with my menu it still opens in the same window. Has anybody run into that problem? Any ideas why this might be happening?

Here is a snippet from my page code (the last menu item - almost last piece of this snippet - is where I am trying to open in a new window (I've also copied examples directly and added them to no avail)

<!--Display Menu -->
<div id="oqarMenuContents">
<div id="oqarMenu"><!--- Menu -->
<a href=http://www.milonic.com/><font color="black">JavaScript Menu Powered by Milonic</font></a>
</div>
</div>

<SCRIPT language="JavaScript" src="/menu/milonic_src.js" type="text/javascript"></SCRIPT>
<script language="JavaScript">

if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/menu/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/menu/mmenudom.js><\/scr"+"ipt>");
</script>
<script>

_menuCloseDelay=500;
_menuOpenDelay=0;
_subOffsetTop=0;
_subOffsetLeft=0
with(menuStyle=new mm_style()){
bordercolor="#999999";
borderstyle="inset";
borderwidth="2";
fontfamily="Verdana, Tahoma, Arial";
fontsize="100%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#eeeeee";
offcolor="#000000";
onbgcolor="#ddffdd";
oncolor="#000099";
outfilter="randomdissolve(duration=0.1)";
overfilter="Fade(duration=0.1);Alpha(opacity=100);Shadow(color=#777777', Direction=135, Strength=3)";
padding="4";
pagebgcolor="#82B6D7";
pagecolor="#000000";
separatorcolor="#999999";
separatorsize="1";
subimage="/menu/arrow.gif";
subimagepadding="2";
}

with(milonic=new menuname("Design Notes")){
style=menuStyle;
overflow="scroll";
aI("text=Select Company/Project;url=/qa/index.php?page=noteselect;");

}

with(milonic=new menuname("Surveys")){
style=menuStyle;
aI("text=Edit/Add Survey;url=/surveys/index.php?page=surveyedit;");
aI("text=Create and Send an Approval Form and/or Survey;url=/surveys/index.php?page=creation;");
aI("text=View Survey Results by Project;url=/surveys/index.php?page=review;");
aI("text=View Survey Results by Developer;url=/surveys/index.php?page=reviewFilter&peopleFilterTypeID=1;");
aI("text=View Survey Results by PM;url=/surveys/index.php?page=reviewFilter&peopleFilterTypeID=3;");
aI("text=View Survey Results by Trainer;url=/surveys/index.php?page=reviewFilter&peopleFilterTypeID=9;");
aI("text=View Training Records by Company;url=/surveys/index.php?page=surveyssentbycompany;");
aI("text=View Training Records by Type;url=/surveys/index.php?page=surveyssentbytype;");

}

with(milonic=new menuname("Proposals")){
style=menuStyle;
aI("text=Proposal Products;url=/proposals/index.php?page=products;");
aI("text=Add a Proposal;url=/proposals/index.php?page=create;");
aI("text=Update a Proposal;url=/proposals/index.php?page=update;");
aI("text=Proposal Reports;url=/proposals/index.php?page=report;");

}

with(milonic=new menuname("Maintenance")){
style=menuStyle;
aI("text=Add/Edit Company;url=/maintenance/index.php?page=company;");
aI("text=Add/Edit People;url=/maintenance/index.php?page=people;");
aI("text=Add/Edit Project;url=/maintenance/index.php?page=project;");

}

drawMenus();
</script>
<div id="oqarMenuContents">
<div id="oqarMenu">
<SCRIPT TYPE="text/javascript">
with(new menuname("Main Menu")){
style=menuStyle;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("showmenu=Design Notes;text=Design Notes;url=/qa/index.php;");
aI("showmenu=Surveys;text=Surveys and Signoffs;url=/surveys/index.php;");
aI("showmenu=Proposals;text=Proposals;url=/proposals/index.php;");
aI("showmenu=Maintenance;text=System Maintenance;url=/maintenance/index.php;");
aI("text=Log Out;url=/index.php?page=logout;");
aI("target=help;text=Help;url=/help/ApplicationHelp.htm?helppage=;");
}
drawMenus();
</script>

</div>
</div>


Poster: John
Dated: Thursday January 11 2007 - 15:00:49 GMT

If you mean this...
Code:
aI("target=help;text=Help;url=/help/ApplicationHelp.htm?helppage=;");

...that obviously won't work, or was that just to show us where?

Anyway, got a URL? Makes it a lot easier for us. target=_blank; should not be a problem.


Poster: Ruth
Dated: Saturday January 13 2007 - 1:01:54 GMT

Hi,

If you have the newest version it should be working, but check your page to see if you have some kind of code about opening new windows.

Ruth