www.ingoknito.de > Introducing rollover2.phpback
Version Info
2003-01-24
In function i_am_this_url() the global var $PHP_SELF was changed to $REQUEST_URI. This makes "in page menus" possible where the same page is called with different parameter values. The idea was not from me, but after two crashes in a row there was all mail correspondence lost, so I can not name the name here.
2002-10-11
Added support for image maps. When using this class at work, I needed image map support.
2002-07-19 Changed readme.txt where the faulty example $ro->$imagedir = './pics/'; will generate a non working skript if followed.
Thanks to Kevin Payne for reporting this error.
2002-05-22 Three bugs corrected: 3 forgotten $this->es.
The bugs were in preload() and image().
Thanks to Cecilio Albero
2002-05-20 Define global var $rollover2_class_loaded to stop errors when reloaded multiple times. This is PHP3 compatible behaviour.
2002-05-11 Downimg added. This image is shown, when the linked page is the active page. No rollover effekt with this page, simple <img> only. Parameter shifting: downimg is insertet as the 4th parameter in addimage(). Parameters $alt, $link, $target and $layer are shifted to the right.
2002-05-09 Initial Version.
Download
There are 8 files in the package. Two files are needed: rollover2.php and images.js. The rest are demo files and the readme.txt file. Maybe you want to download the images too.

rollover2.php The rollover2 class file.
images.js The javascript file which is needed to do the swapping.
readme.txt Some informations about using this class.
example.php This file shows how the class is to be used.
example2.php This file shows an example with 3rd state buttons.
inc_ex2.php This is the include file for example2.php, page1.php and page2.php
page1.php This is part of example2
page2.php This is part of example2


Download rollover2.php here: [rollover2.zip 2007-03-30 23:47 7803 bytes (8 kb)]

Here are the images which were used to create the rollover effect. Put them into a folder named "images", which is in the same place as the example files and the rollover2.php class file.

Download the images here: [images.zip 2007-03-30 23:46 33935 bytes (33 kb)]

Here is a link to the psp image which was used to generate all of the buttons. You need a Paint Shop Pro compatible program to edit this image. It was made using PSP v5.03. Paint Shop Pro is discussed on the "Editoren" page of www.knito.de.

Download the psp image here: [knopf.psp 2007-03-30 23:47 63921 bytes (62 kb)]

Valid HTML 4.01! Check this page.

Paint Shop Pro 7