Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2001-04-23 04:37
Size: 869 bytes
 

Contents

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") ; ?>
<html>
<head>
    <title>Pruebas</title>
  <script language="javascript" src="./JS/images.js"></script>
  <script language="javascript">
  <? $testbutton->preload() ;?>
  </script>
</head>

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