" info="Copy the above code anywhere in your Body section." + "The pop-up will be displayed when the page loads." } if(type==4){ results="onLoad=\'" + code + "\'" info="Copy the above code into your
tag." } if(type==5){ results=code info="This is advanced and requires that you understand JavaScript code." } document.pwForm.codeArea.value=results document.pwForm.additionalInfo.value=info } function getXLoc(){ var xLoc = document.pwForm.winX.value if(document.pwForm.xStat.selectedIndex==1) xLoc = xLoc * (-1) if(document.pwForm.xStat.selectedIndex==2) xLoc = "cen" return xLoc } function getYLoc(){ var yLoc = document.pwForm.winY.value if(document.pwForm.yStat.selectedIndex==1) yLoc = yLoc * (-1) if(document.pwForm.yStat.selectedIndex==2) yLoc = "cen" return yLoc } function getFeatures(){ var options="" if(document.pwForm.featureToolbar.checked) options="toolbar" if(document.pwForm.featureLocation.checked){ if(options.length>0) options+="," options+="location" } if(document.pwForm.featureDirectories.checked){ if(options.length>0) options+="," options+="directories" } if(document.pwForm.featureStatus.checked){ if(options.length>0) options+="," options+="status" } if(document.pwForm.featureMenubar.checked){ if(options.length>0) options+="," options+="menubar" } if(document.pwForm.featureScrollbars.checked){ if(options.length>0) options+="," options+="scrollbars" } if(document.pwForm.featureResizable.checked){ if(options.length>0) options+="," options+="resizable" } return options } function testPopUp(){ openPopWin(document.pwForm.url.value, document.pwForm.winWidth.value, document.pwForm.winHeight.value, getFeatures(), getXLoc(), getYLoc()) } function setStatus(msg){ status = msg return true } //-->|
|
Easy method for you to design and test the Links for Pop-up Windows for your web pages.
You first need to copy some code to your web page. You can find the instructions for doing this in my discussion on
The openPopWin()function. Do only steps 1 and 2. This page replaces step 3 by giving you the tools to easily create all of the links you will need.
Here, you will first Design & Test your Pop-up. When you are satisfied with it, you will push a button to Get the Code to copy to your web page.
Repeat the steps Design & Test your Pop-up and Get the Code for any additional Pop-up Windows you wish to put on the same page.
Please email me if you have any problems using these procedures or any suggestions for improving this page.