<?php
 
// include the class-file..... 
 
@require_once('cellroll_lib.php');
 
 
?>
 
<!-- following sample html file.... -->
 
<!-- cellroll_lib by [email protected] -->
 
<!-- all rights reserved! -->
 
<!-- you can use it for free, if you don't delete this Copyrights! -->
 
<html>
 
<head>
 
    <title>Cellroll_lib</title>
 
 
 
 
<!-- init cellroller between head for most correct js output -->
 
<?php  
 
$CR = new Cellroll();
 
?>
 
 
 
 
 
<style type="text/css">
 
<!--
 
  td  { font-family:Arial,Sans-Serif;font-size:11px; }
 
-->
 
</style>
 
</head>
 
<body bgcolor="#EEEEEE">
 
 
<table width="400" border="0" cellpadding="1" cellspacing="1" bgcolor='silver'>
 
<tr>
 
    <td colspan="4" style="width:400px;font-size:18px;" <?php 
 
// call croll(OnMouseOver-color,OnMouseOut-color,OnMouseDown-Color) within a <tr> or <td>
 
// you don't have to define all params.
 
// see also the following calls
 
 
$CR->croll('orange','#EEEEEE');
 
 
 
?>>cellroll_lib</td>
 
</tr>
 
<tr <?php $CR->croll('#AED6A3','#A5AFB8','brown'); ?>>
 
    <td>fast and easy rollovers for rows</td>
 
    <td> </td>
 
    <td> </td>
 
    <td> </td>
 
</tr>
 
<tr>
 
    <td <?php $CR->croll('#AED6A3','#A5AFB8','blue'); ?>>or cells</td>
 
    <td <?php $CR->croll('#AED6A3','#A5AFB8','white'); ?>>Mouseover,</td>
 
    <td <?php $CR->croll('#AED6A3','#A5AFB8','green'); ?>>MouseOut or</td>
 
    <td <?php $CR->croll('#AED6A3','#A5AFB8','red'); ?>>MouseDown</td>
 
</tr>
 
<tr>
 
    <td colspan="4"> </td>
 
</tr>
 
<tr>
 
    <td <?php $CR->croll('green','silver'); ?>>MouseOut has initial color</td>
 
    <td <?php $CR->croll('orange','silver','blue'); ?>>Click! </td>
 
    <td <?php $CR->croll(NULL,'silver','blue'); ?>>Just set color for Mouseout and Mousedown</td>
 
    <td <?php $CR->croll('yellow',NULL,'silver'); ?>>Just set color for Mouseover,Mousdown</td>
 
</tr>
 
</table>
 
 
 
 
</body>
 
</html>
 
 |