This is version 1.11 of class.overlib demo for php (http://www.php.net)
written 1999, 2000, 2001 Patrick Hess (hess@dland.de)
This software is distributed under GPL.
overLib is from Eric Bosrup (http://www.bosrup.com/web/overlib)

This class is just a driver/container, so most of this wonderful
work is done by Eric Bosrup! Keep this in mind...

This is a class.overlib demonstration with a link Move your mouse over the link.

<?
    include("class.overlib/class.overlib.php"); 
    $ol = new Overlib();
?>

This is a class.overlib demonstration with a 
<a href="#" <? $ol->pover ("class.overlib is working"); ?>>link</a>
Move your mouse over the link.



The pover() method works like the over() method with one exception: pover() prints out the js data, over() returns a string with this informations. The needed parameters for both methods are the text. Optional to both methods are the caption and a status text. Try this:

move mouse over this link

<?
    $res = $ol->over("class.overlib is working", "Warning");
?>



If a status text is supplied as third argument, this text will be shown in the browsers status bar:

move mouse over this link

<?
    $res = $ol->over("class.overlib is working", "", "Warning: class.overlib is working");
?>


With the set() method you can change the design of the create popups. As example, to change the font of the popup:
move mouse over this link

<?
    $ol->set("textfont","courier");
    $res = $ol->over("class.overlib is working");
?>


Here is list of variables that can be used to changed the popups - note: you can use the lower case name of the original overLib commands here. Example: the textfont would be TEXTFONT in overLib.

attributeparameter typevalue in demovalues
pathstringclass.overlib/ path to the javascript files
sticky booltrue If set true, the popup is sticky
align integer2 popup alignment: 1 = left, 2 = center, 3 = right of mouse pointer
valign integer1 vertical popup alignment: 1 = above, 2 = below mouse pointer, NOTE: height must be set for this to work!
fgcolor string#ffffff foreground color
bgcolor string#ff0000 background color
textcolor string#ff0000 text color
capcolor string#ff0000 caption color
closecolor string#ff0000 close text color, NOTE: this text only appears in sticky popups with caption
textfont stringcourier text font name
captionfont stringcourier caption font name
closefont stringcourier close text font name, NOTE: this text only appears in sticky popups with caption
textfont integer3 text font size
captionsize integer3 caption font size
closesize integer3 close text font size, NOTE: this text only appears in sticky popups with caption
width integer400 width of the popup
height integer200 height of the popup
border integer5 width of the popup border
offsetx integer150 x offset between popup and mouse
offsety integer-150 y offset between popup and mouse
fgbackground stringbg.gif image for background, overrides fgcolor
bgbackground stringbg.gif image for background, overrides bgcolor
closetext string X substitution for the close text 'Close'
noclose booltrue do not show a close text in sticky popups
autostatus booltrue show popup text in status bar
autostatuscap booltrue show popup caption text in status bar
capicon stringicon.gif show image in front of caption text
snapx integer5 snaps the popup to an even position in a horizontal grid
snapy integer5 snaps the popup to an even position in a vertical grid
background stringbg.gif set background image
padxl integer100 pads background picture left with whitespace
padxr integer100 pads background picture right with whitespace
padyt integer10 pads background picture top with whitespace
padyb integer10 pads background picture bottom with whitespace
fullhtml booltrue full control over the popup design
timeout integer1000 wait for x ms then close the popup
delay integer1000 wait for x ms then open the popup
hauto booltrue determine if the popup should be to the left or right of the mouse
vauto booltrue determine if the popup should be to the above or below of the mouse


That's all for today!
 BTW: I like the example from the overLib webpage ...