
This is version 1.1 of class.overlib 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...


Overview

class.overlib is a class for php. class.overlib gives you an easy way
to create small popup windows by acting as driver or container for
overLib popups. Overlib windows open while placing the mouse over a link
or a custom text and they close when you move the mouse away. This version
not compatible to version 1.0! Sorry!

Changes


Version		Changes
1.1		added overLib (http://www.bosrup.com/web/overlib/) support
		for v3.33 - overLib is from Eric Bosrup
		arguments of over() have been changed, so this version does
		not work with 1.0 scripts!

1.0		IMPROVEMENTS
		release stable version

0.4		BUGFIX: js-function dls() now supports the title argument
                BUGFIX: js-function dts() now cares about suggested width

How to use class.overlib

Create a copy of the class.overlib directory in the directory where
your html files are.

Include class.overlib in your php-Code:
<? require ("class.overlib/class.overlib.php"); ?>

In the body of your file create a Overlib object
<? $ol = new Overlib; ?>

After creating the object, you can modify some values of your overlib
object using the set() method. The full list of keywords can be found
on the index.php demo page in the distribution. The keywords are the
lower case overLib keywords.

To change the background color for example use
<? $ol->set("bgcolor", "#111166"; ?>

The method over() or pover() can now be used to add a overlib popup to a html
object like links or div sections. 
<a href="next.php" <? $ol->pover ("info", "goto next page"); ?>  >Next page</a>

  $ol->over ($text, $title, $status)
  $ol->pover ($text, $title, $status)

text is text body of the popup window
title is the title of the popup window
status is a text for the browsers status bar

The difference between over() and pover():

 pover() prints the result and over() return a string with the result

Example:

<html>
<head><title>class.overlib.php Test</title>
</head>
<body>
<?
	include ("class.overlib/class.overlib.php"); 
	$ol = new Overlib();
	$ol->set("bgcolor", "#111166");
?>
<br><br><br>

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

<br><br><br>
<br><br><br>

This effect can also be used on simple text but this does not work in
netscape.
<div <? $ol->pover ("class.overlib is working again", "Hello!"); ?>>
<font color=blue>[more information]</font></a>

</body>


For more informations on using the many features in overlib have a look
on the index.php in this package. You will find an overview of all attributes
there.

Thanks for bug reports, suggestions or comments to:
 o Lukasz Kowalczyk

