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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:36

java script links


Poster: brrobin1
Dated: Tuesday January 7 2003 - 15:10:52 GMT

Is it possible to use javascript to pop open new windows in this menu? When I try it won't keep the sub menu open (if I'm quick enough I can click it befor it disapears)
ex from html head portion:
Code:
<SCRIPT language="JavaScript">
<!--
function netscape()
{
   mapWindow = window.open('http://www.server.com/netscape_users.html','browser','width=700,height=500,resizable=yes,scrollbars=yes,status=yes')
}
function win(i)  { 
   mapWindow = window.open(i,'nfWIN', 'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=700,height=400,left=10,top=10'); 
   mapWindow.focus();
             } 

//-->
</SCRIPT>

and then the array call to it
Code:
   addmenu(menu=["test",
   ,,150,0,"",style2,,"left",effect,,,,,,,,,"images/bk.gif",,,
   ,"Log&nbsp;On","javascript:win('http://www.server.com/logon.html');",,,1
   ,"No&nbsp;Frame&nbsp;Log&nbsp;On","javascript:win('http://www.server.com/Nlogon.html');",,,1
   ])


Poster: brrobin1
Dated: Tuesday January 7 2003 - 15:27:58 GMT

Sorry I'm an idiot I found the answer
here. I just had to replace my 's with \"s.