GotFusion.com Where your journey begins
Full Service Web HostingNetObjects Fusion 7 Websites Portal

 


 

Yes, You Can Have the Nav Bar Open in a New Window

Opening a scripted popup window from the Nav Bar component is a two step process

Step 1:

To have the Nav Bar component open a scripted window you need to write a script function such as the one below.

<script language="javascript"><!--
function outsidePop1() {
window.open('http://www.fusiongalleries.com','FG','toolbar=1,location=1,
directories=0,status=1,menubar=1,scrollbars=1,resizable=1,copyhistory=1,
width=800,height=600,left=0,top=0');
}
//-->
</script>

Copy the above script to notepad and make sure that the window.open line is one continuous block of script all the way to the ending bracket and semicolon ); You should only have 6 lines of script.  You can replace the link that opens the Fusion Galleries web site in a new window with the link you wish to open in a new scripted window, unless you want to have a navigation button that links to us

OR       Download a zip file containing this script function

To place this script function bring up the MasterBorder Properties palette, press the HTML button on it, insert the script in the Between the Head tab.

Placment of your script function so it can be used by all pages

Step 2:

Create a Custom Nav Bar Component.  Add all of your internal page links that you want in your site navigation.  For the one that you wish to have open with your scripted Popup Link, create an External JavaScript link and place outsidePop1() as the call.  outsidePop1 is the name of the script function used in this example. You can change this call and the name of the function to meet your needs, just remember that both the name of the script function and the call have to be the same.

Place your Function Call as a JavaScript Link


You now will have a scripted window that is called from your navigation bar component

 

 

 

Return to the TOP of this page

 

 


|  Fusion  |  Web Design  |  Hosting  |  Resources  |  gotFusion Store  | 

Problems with this page?  

All content copyright © 2002, 2004 gotFusion LLC.  The name gotFusion and the gotFusion ® logo are registered trademarks of gotFusion LLC
Copyright, legal notice & privacy statement