Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-23-2005, 08:22 PM   PM User | #1
tr_y2k
New Coder

 
Join Date: Mar 2005
Location: United Kingdom
Posts: 27
Thanks: 8
Thanked 0 Times in 0 Posts
tr_y2k is an unknown quantity at this point
Question Dreamweaver Menu/Pop up Window

Hello i am trying to use Dreamweaver's Show pop up menu to create a drop down menu. I have succesfully created the menu, however i want the top menu item to open a new window. I have tried adding snippets from differnet websites but i cannot figure out how to get it to work. I have highlighted the specific area of my code im having trouble with in red. Please can someone help... Please dont leave a newbie out in the cold. If you need more info please ask. Im using the behaviours that come with Dreamweaver MX 2004. many thanx §âGë


<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<script type="" language="JavaScript">
<!--
function mmLoadMenus() {
if (window.mm_menu_0625155809_0)
return; window.mm_menu_0625155809_0_1 = new Menu("Work&nbsp;Files",100,11,"Courier New, Courier, mono",11,"#00FF00","#000000","#000000","#00FF00","left","middle",0,1,3000,-1,7,true,true,true,3,false,true);
mm_menu_0625155809_0_1.addMenuItem("Code&nbsp;Snippets","window.open('other/snippets.txt', '_blank');");
mm_menu_0625155809_0_1.addMenuItem("Work&nbsp;File","window.open('other/work.txt', '_blank');");
mm_menu_0625155809_0_1.addMenuItem("Notepad","window.open('other/notepad.txt', '_blank');");
mm_menu_0625155809_0_1.fontWeight="bold";
mm_menu_0625155809_0_1.hideOnMouseOut=true;
mm_menu_0625155809_0_1.bgColor='#000000';
mm_menu_0625155809_0_1.menuBorder=1;
mm_menu_0625155809_0_1.menuLiteBgColor='#000000';
mm_menu_0625155809_0_1.menuBorderBgColor='#00FF00';
window.mm_menu_0625155809_0 = new Menu("root",100,11,"Courier New, Courier, mono",11,"#00FF00","#000000","#000000","#00FF00","left","middle",0,1,3000,-1,7,true,true,true,3,false,true);
mm_menu_0625155809_0.addMenuItem(window.open(menuform.menu3.options[menuform.menu3.selectedIndex].value,'URLwindow','width=400,height=200');
mm_menu_0625155809_0.addMenuItem(mm_menu_0625155809_0_1);
mm_menu_0625155809_0.addMenuItem("Open&nbsp;Websites","window.open('../../../', '_blank');");
mm_menu_0625155809_0.addMenuItem("Solar&nbsp;Network","window.open('../../The Solar Network/index.html', '_blank');");
mm_menu_0625155809_0.addMenuItem("Global&nbsp;Stats","window.open('global_stats.htm', '_self');");
mm_menu_0625155809_0.fontWeight="bold";
mm_menu_0625155809_0.hideOnMouseOut=true;
mm_menu_0625155809_0.childMenuIcon="images/arrows.gif";
mm_menu_0625155809_0.bgColor='#000000';
mm_menu_0625155809_0.menuBorder=1;
mm_menu_0625155809_0.menuLiteBgColor='#000000';
mm_menu_0625155809_0.menuBorderBgColor='#00FF00';

mm_menu_0625155809_0.writeMenus();
} // mmLoadMenus()

function MM_startTimeout() {
if( window.ActiveMenu ) {
mmStart = new Date();
mmDHFlag = true;
mmHideMenuTimer = setTimeout("mmDoHide()", window.ActiveMenu.Menu.hideTimeout);
}
}
//-->
</script>
<script type="" language="JavaScript" src="mm_menu.js"></script>
tr_y2k is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:20 PM.


Advertisement
Log in to turn off these ads.