Okay, I had to do alot of tweaking, but here it is (I tried to get it as simple as I could). The bold areas are the variables that get changed depending on which button is clicked, and, of course, the single function. I've named the file popcalc.js
Thank you for your help thus far!
BEGIN CODE
**************************
// set the popup window width and height
var windowW=583 // wide
var windowH=330 // high
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//Set the screen position where the popup should appear.
// See the following settings.
//***************************************************************
//Programmer Specifies Window Position *
// Un-comment Set 1 & Comment Set 2 out *
//Automatically center on screen *
// Un-comment Set 2 & Comment Set 1 out *
//***************************************************************
//---------------
//Set 1 |
//---------------
//var windowX = 260 // from left
//var windowY = 100 // from top
//---------------
//Set 2 |
//---------------
var windowX = (screen.width/2)-(windowW/2);
var windowY = (screen.height/2)-(windowH/2);
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// set the url of the page to show in the popup
var urlPop = "the page.htm"
// set the title of the page
var title = "pop up title"
// set this to true if the popup should close
// upon leaving the launching page; else, false
var autoclose = true
// ============================
// do not edit below this line
// ============================
s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false
function openFrameless(){
if (beIE){
JMS = window.open("","popFrameless","fullscreen,"+s)
JMS.blur()
window.focus()
JMS.resizeTo(windowW,windowH)
JMS.moveTo(windowX,windowY)
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
JMS.document.open();
JMS.document.write(frameString)
JMS.document.close()
} else {
JMS=window.open(urlPop,"popFrameless","scrollbars,"+s)
JMS.blur()
window.focus()
JMS.resizeTo(windowW,windowH)
JMS.moveTo(windowX,windowY)
}
JMS.focus()
if (autoclose){
window.onunload = function(){JMS.close()}
}
}
*****************************
END CODE Jay
![[infinity] [infinity] [infinity]](/data/assets/smilies/infinity.gif)
"If the words up and down were reversed, would you trip and fall or trip and fly?"