Window and layer utilities

Mouse position
Relative to document Relative to window
MouseX= MouseX=
MouseY= MouseY=
 
Window position (relative to document) and size
Width= Left=
Height= Top=
 
Absolute positioned layer within master layer
Relative positioned master layer
Absolute positioned top layer
 
Relative positioned master layer
Visible= Z-index=
Width= Left=
Height= Top=
 
Absolute positioned layer within master layer
Visible= Z-index=
Width= Left=
Height= Top=
 
Absolute positioned top layer
Visible= Z-index=
Width= Left=
Height= Top=

1. Download the files

You can download the files in zip format.

2. Include winutils.js in the head of your page

Insert the following line into the head of your page:

<script type="text/javascript" src="winutils.js"></script>

3. Call, use, view, edit or modify the utilities

Feel free to do anything.

4. Use and comment

I use these utilities in many of my scripts.  Please email comments and suggestions and I will include them in the next version.  Of course full credit will be given to you in the head of the winutils.js script.