PHP Classes

File: cellroll_lib_ie.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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: 13 years ago
Size: 1,841 bytes


Class file image Download
// include the class-file.....

<!-- following sample html file.... -->
<!-- cellroll_lib by -->
<!-- all rights reserved! -->
<!-- you can use it for free, if you don't delete this Copyrights! -->

<!-- init cellroller between head for most correct js output -->
= new Cellroll();

<style type="text/css">
  td { font-family:Arial,Sans-Serif;font-size:11px; }
<body bgcolor="#EEEEEE">

<table width="400" border="0" cellpadding="1" cellspacing="1" bgcolor='silver'>
    <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

<tr <?php $CR->croll('#AED6A3','#A5AFB8','brown'); ?>>
    <td>fast and easy rollovers for rows</td>
    <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>
    <td colspan="4">&nbsp;</td>
    <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>