CodeLifter.com
S
oftware & S
cripts by CodeBrain.com
Home
JavaScripts
PopUp Maker
-
po
pup wind
ows
CodeLifter 5
-
source viewer
ScrollBar Styler
-
color scrol
lbars
Flash Fixer
-
rem
ove al
erts
Roll-Over Maker
-
image roll-overs
Link Cloaker 5
-
enc
rypt links
Site Capture 3
-
hidden frames
CHMOD 2 Utility
-
chmod utility
BlackBird 3.0
-
browser shell
Zoom 1.0
-
magnifier
MicroTicker.com
-
text scroller
CodeBrain.com
-
j
ava app
lets
BrainCode.com
-
j
ava app
lets
MailToProtector
-
protect email
Java Applets
Perl Scripts
Affiliate Program
Index
DropDown Menus Do Popup Windows
Cross-Browser Compatible
Index
Picture One
Picture Two
Picture Three
Picture Four
Picture Five
Click
here
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>
Picture One
Picture Two
Picture Three
Picture Four
Picture Five
============================================================ 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
CodeBrain.com
Sister Site
©1995 - 2012 OEC Corp & CodeLifter.com
CodeLifter™ & CodeBrain™
Legal Notices
CodeBrain InterNET Group
BrainCode.com
CodeFoot.com
CodeBelly.com
Droiddd.com
etLux.com
FFFast.com
TrayApps.com
PopUpWorks.com
MicroTicker.com
DavidSosnowski.com
OECCorp.com
MailToProtector.com
CodeBrain.com
Free MUSIC!
Contemporary classical music, completely free.