MICROBIANS CHROMELESS WINDOWS 3.5

Installation:

For instructions on installation of this script, visit http://www.dynamicdrive.com/dynamicindex8/chromeless.htm

Function parameter and variable explanations:

The "openIT()" function is a simplified JavaScript programming service that will launch the Chromeless Window.

As in any coding, an “openIT” function looks difficult until you carefully read the functions and visualize how changes to each function result in a corresponding change to a feature of Chromeless Windows.

Parameter explanation

openIT(u,W,H,X,Y,n,b,x,m,r)

u    | html page we want to open in the window.
W    | Width of the window content size.
H    | Height of the window content size.
X    | Horizontal position (null=center).
Y    | Vertical position (null=center).
n    | Window name (handler).
b    | Extra border size
x    | Maximize (true|false).
m    | Minimize to taskbar (true|false).
r    | Resize (true|false).


These paramaters are only for 'openIT' included in the default packaging that make it easy to use the main 'chromeless' function. For other uses or fx you can make your own 'openIT' as your needs.

OPENIT EXAMPLES

<a href="#" onclick="mywindow=openIT('mypage.html',200,200,null,null,'mywindow');return false">Example 1</a>

<a href="#" onclick="mywindow2=openIT('http://google.com',500,500,10,10,'mywindow2',5,true,true,true);return false">Example 2</a>

This would open a Chromeless Window with mypage.html as the subject and 200x200 pixels of content size, in the center of the screen. Please make sure that the page to be opened is in the same folder as the calling page; if (for some reason it is not) provide a complete URL to the page.

Variable explanation

Within the openIT function are definable fields that give Chromeless Window its flexibility, beauty and robustness. Those functions are:

BUTTONS

cU   | gif for close on normal state.
cO   | gif for close on mouseover.
cL   | gif for loading indicator.
mU   | gif for minimize to taskbar on normal state.
mO   | gif for minimize to taskbar on mouseover.
xU   | gif for maximize normal state.
xO   | gif for maximize on mouseover.
rU   | gif for minimize on normal state.
rO   | gif for minimize on mouseover.


TITLE

tH   | title for the title bar in html format.
tW   | title for the task bar of Windows.


COLORS

wB   | Border color.
wBs  | Border color on window drag.
wBG  | Background of the title bar.
WBGs | Background of the title bar on window drag.


COMPATIBILITY

wNS  | Html parameters for Netscape.
fSO  | Html parameters for main content frame.


EXTRA PARAMETERS

brd  | Extra border size.
max  | Maxzimize option (true|false).
min  | Minimize to taskbar option (true|false).
res  | Resizable window (true|false).
tsz  | Height of title bar.

Other FAQs:

Following are some of the most asked questions from actual users of MICROBIANS CHROMELESS WINDOWS.


HOW DO I USE DIFFERENT PAGES IN DIFFERENT WINDOWS?

Use diferent n values for each different window in the function:

openIT(u,W,H,X,Y,n)

So the calls:

mywin1=openIT('p1.html',200,200,null,null,'mywin1')
mywin2=openIT('p2.html',200,200,null,null,'mywin2')

would open two different windows.


HOW TO CHANGE OF PAGE FROM THE OPENER WINDOW

For example if the window was created with:

mywin1=openIT('p1.html',200,200,null,null,'mywin1')

we can change to the p2.html page using:

mywin1.setURL('p2.html').


HOW DO I USE SPECIAL CHARACTER'S CODES IN A TITLE?

For special character’s code like Ń or tilded chars the better way is to use coding such as: &#64; or &Agrave;. To find the particular character coding you desire, please rely upon information about "ISO Latin-1 Character Set".


HOW DO I SCROLL, OR CEASE A SCROLL FUNCTION?

In order to eliminate scroll in the MICROBIANS CHROMELESS WINDOWS compatible browsers, use a style sheet like:

  <style>
    body { overflow:hidden }
  </style>


in the head of every html page or scroll=no in the body tag of the pages where you want to have no scroll.

But if you want to make all pages "no scroll" you can use also the fSO ='scrolling=no noresize' variable of the openIT function. This variable controls rendering of the main frame.

There is a similiar control for non MICROBIANS CHROMELESS WINDOWS compatible browsers with the wNS variable in the openIT function. For example we can add scroll for Netscape with:

var wNS ='scrollbars=1'

inside the openIT fuction.