PDA

View Full Version : newbie needs window.open help please



charter
Dec 9th, 2002, 07:23 PM
Being a newbie could someone please help?

I am looking for a script that will automatically open a window in a certain way.

I want the window to have just the Blue Title Bar at the top and the Task Bar at the bottom.

I want the webpage to fill the rest of the window and the window to open to various sizes depending on screen resolution and size.

An example is at www.bladeinteractive.com (http://www.bladeinteractive.com)

I have looked at the source but cannot understand it

<script language="JavaScript">
function tmt_fullscreen(url, scrollo) {
var larg_schermo = screen.availWidth - 10;
var altez_schermo = screen.availHeight - 30;
window.open(url, "WindowName", "width=" + larg_schermo + ",height=" + altez_schermo + ",top=0,left=0,scrollbars=" + scrollo + "");
}
</script>

What is all this larg_schermo and altez_schermo

Please help I'm desperate.

All help appreciated

cg9com
Dec 9th, 2002, 07:56 PM
the thermo thingies arent actually any type of javascript reference, they are just the names of the variables and can be changed to whatever, for example:

var larg_schermo = screen.availWidth - 10;
var altez_schermo = screen.availHeight - 30;
window.open(url, "WindowName", "width=" + larg_schermo + ",


the red is the variable name ...
blue is what the variable is representing
green is where the variable is placed inside the code, it basically can be a way to assign a name to the blue section without having to type it out every time ...


you can add toolbar="no" in the popup configuration to rid the top section