PHP Classes

File: cellroll_lib_ie.php

Recommend this page to a friend!
  Classes of elmar eigner   cellroll_lib   cellroll_lib_ie.php   Download  
File: cellroll_lib_ie.php
Role: Example script
Content type: text/plain
Description: example usage
Class: cellroll_lib
js-rollovers for table-rows/-cells
Author: By
Last change:
Date: 21 years ago
Size: 1,841 bytes
 

Contents

Class file image Download
<?php
// include the class-file.....
@require_once('cellroll_lib.php');

?>
<!-- following sample html file.... -->
<!-- cellroll_lib by elmar.eigner@open-eye.de -->
<!-- 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>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</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">&nbsp;</td>
</tr>
<tr>
    <td <?php $CR->croll('green','silver'); ?>>MouseOut has initial color</td>
    <td <?php $CR->croll('orange','silver','blue'); ?>>Click!&nbsp;</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>