»
EnglishFrenchVietnamese

Print - Popup Checkbox Navigation Menu - JavaScriptBank.com

Full version: jsB@nk » Form » Checkbox » Popup Checkbox Navigation Menu
URL: https://www.javascriptbank.com/popup-checkbox-navigation-menu.html

Popup Checkbox Navigation Menu © JavaScriptBank.comThis JavaScript opens a small popup window containing a checkbox JavaScript navigation menu. Great for saving space on your Web page!

Full version: jsB@nk » Form » Checkbox » Popup Checkbox Navigation Menu
URL: https://www.javascriptbank.com/popup-checkbox-navigation-menu.html



JavaScript
<SCRIPT LANGUAGE="JavaScript">// Sandeep Gangadharan (sandeep@sivamdesign.com)<!-- Beginvar X = 200; // change the # at the left for a fixed X co-ordinate to accommodate browsers other than IE or NSvar Y = 200; // change the # at the left for a fixed Y co-ordinate to accommodate browsers other than IE or NSif (navigator.appName.indexOf("Netscape")!=-1) {document.captureEvents(Event.MOUSEMOVE)function getcoords(e) {X = parseInt(e.screenX) - 80; // change the # at the left to further adjust the left-margin depending on the size of the windowY = parseInt(e.screenY) - 60; // change the # at the left to further adjust the top-margin depending on the size of the windowreturn true;}document.onmousemove = getcoords;function openWin() {if (navigator.appName.indexOf("Microsoft")!=-1) {X = parseInt(event.screenX) - 80; // change the # at the left to further adjust the left-margin depending on the size of the windowY = parseInt(event.screenY) - 60; } // change the # at the left to further adjust the top-margin depending on the size of the windowdisplay=window.open('','NewWin','menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,height=110,width=190')message="<font face='verdana, arial, helvetica, san-serif'size='2'><form>";message+="<input type='checkbox' onClick=window.open('http://javascriptbank.com/','') onBlur='window.close();' />The JavaScript Source<br />";message+="<input type='checkbox'onClick=window.open('http://javascriptbank.com/','') onBlur='window.close();' />JavaScriptBank.com<br />";message+="<input type='checkbox' onClick=window.open('http://JavaScriptBank.com/','') onBlur='window.close();' />JavaScriptBank.com<br />";message+="<input type='checkbox'onClick=window.open('http://javascriptbank.com/','') onBlur='window.close();' />JavaScriptBank.com<br />";message+="</form></font>"; display.moveTo(X,Y);display.document.write(message); }}// End --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form><input type="button" value="Links to Web Sites" onClick="openWin()"/></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->