PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Carlos Falo Hervás   rollover   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: a little usage example
Class: rollover
Basic rollover images
Author: By
Last change:
Date: 21 years ago
Size: 869 bytes


Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<?// NOTES:
  // This class directly suposses your images reside in a directory called images
  // directly pending from your site root directory (/images) you can easily
  // change it in the source code for the class
  // This examples creates a rollover image in a layer named "Layer1"
include ("clases/rollover.php") ; ?>
<? $testbutton
= new rollover("./","Layer1","testbutton","testbutton.gif","testbutton_selected.gif","test button","test_link.htm") ; ?>
  <script language="javascript" src="./JS/images.js"></script>
  <script language="javascript">
  <? $testbutton->preload() ;?>

<div name="Layer1" style="position:absolute;top:100px;left:200px">
<? $testbutton->image() ; ?>