oftware & S
cripts by CodeBrain.com
Link Cloaker 5
Site Capture 3
CHMOD 2 Utility
DropDown Menus Do Popup Windows
to select the code in the window below.
Use Ctrl+C to copy it to your clipboard.
============================================================ Script: Drop Down Menus That Do Popup Windows Functions: A simple script that allows you to launch popup windows from a dropdown menu. Any number of links can be added to the options list. The popup window features can be set within the script. Great for saving space on the page when long lists are required, for image popups, and for offsite referrals while still keeping people on your page. Browsers: NS3-6, IE4-6 Author: etLux ============================================================ Put the following script in the body of your page where you wish the dropdown menu to appear. Just follow the pattern in the options to set up the pages you wish to open in the popup window. You can set the popup window features in the function call within the windowDoPop=(...) by changing no to yes for toolbar, location, menu, status, scrollbars, etc., as well as the window height= and window= therein. Take care to have the entire windowDoPop=(...); on a single line without intervening spaces or linefeeds. <script> </script>
============================================================ Additional Tips Positioning the Popup Window If you want the popup window to locate itself at a certain position, put the following short script in the <head> of the page that is opened. The numbers are the x and y positions on the screen, respectively. <script> self.moveTo(100,100) </script> Focusing the Popup Window To ensure that the popup window comes into focus (that is, to the front), you may wish to add self.focus() to the body tag of the page, like this: <body onload="self.focus()"> Although IE4-6 and NS3-4 do not require this, NS6 does. ============================================================
Get The Code!
CodeLifter is a
©1995 - 2012 OEC Corp & CodeLifter.com
CodeLifter™ & CodeBrain™
CodeBrain InterNET Group
Contemporary classical music, completely free.