Weird script.
Popups are usually blocked by popup blockers... it lets you load this via a link if it doesn't load in the first place if you have a popup blocker.
Just google for a popup script.
Not sure about coordinates... that's a bit more complex.
Just use mozilla firefox (install if you don't have it; it's worth it) and look at the source. It'll block the popup and let you see what's going on.
The function looks pretty simple.
The coordinates are part of that script... just parameters in the function.
Actually... here:
Code:
function popWindow(urlpass,windowNumber,imageWidth,imageHeight,posLeft,posTop) {
newWindow = window.open(urlpass, windowNumber, "width="+imageWidth+", height="+imageHeight+", scrollbars=no, toolbar=no, resizable=no, left="+posLeft+", top="+posTop);
newWindow.focus();
self.close();
}
that's what does it. self.close cloes the big window, newwindow.focus makes it make the popup active, and the window.open just opens the popup.
It's held in a function, so the url, windowNumber, image Width, etc can be passed to it via
Code:
<BODY [...] ONLOAD="popWindow('main.shtml','1','390','270','226','200');">
Bookmarks