Login   Register  
PHP Classes
elePHPant
Icontem

File: inc_ex2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Peter Klauer  >  rollover2  >  inc_ex2.php  >  Download  
File: inc_ex2.php
Role: Example script
Content type: text/plain
Description: example 2 include file
Class: rollover2
Generate javascript rollover buttons
Author: By
Last change:
Date: 2002-05-11 15:46
Size: 1,194 bytes
 

Contents

Class file image Download
<?php
#
# example 2 include file
#
$ro = new rollover2// defining global $ro

$ro->addimage'example2''example2_bas.jpg''example2_sel.jpg''example2_dow.jpg'
    
'This is a more complicated Example''example2.php' );
    
$ro->addimage'seite1''seite1_bas.jpg''seite1_sel.jpg''seite1_dow.jpg''This is page 1',
    
'page1.php' );
$ro->addimage'seite2''seite2_bas.jpg''seite2_sel.jpg''seite2_dow.jpg''This is page 2',
    
'page2.php' );
    
$ro->addimage'ingoknito''ingoknito_bas.jpg''ingoknito_sel.jpg'''
    
'www.ingoknito.de','http://www.ingoknito.de','_blank' );

$ro->addimage'knito''knito_bas.jpg''knito_sel.jpg''',
    
'www.knito.de','http://www.knito.de','_blank' );

function 
startmenu_table()
{
    global 
$ro;
    
    echo 
'<table summary=""><tr valign=top><td>';
    
    
$ro->image('example2');
    echo 
'<br>';

    
$ro->image('seite1');
    echo 
'<br>';

    
$ro->image('seite2');
    echo 
'<br>';

    
$ro->image('knito');
    echo 
'<br>';

    
$ro->image('ingoknito');
    echo 
'<br>';
    
    echo 
'</td><td>';
}

function 
stopmenu_table()
{
    echo 
'</td></tr></table>';
}

?>