PHP Classes

File: test_flip_link.php

Recommend this page to a friend!
  Classes of Peter Klauer   flip_link   test_flip_link.php   Download  
File: test_flip_link.php
Role: Unit test script
Content type: text/plain
Description: Demo
Class: flip_link
DHTML text link flipper
Author: By
Last change: Works with IE, Opera and Mozilla.
Changed the line containing "for IE only".
Date: 19 years ago
Size: 1,528 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title>www.ingoknito.de: Test flip_link</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
a.white:active, a.white:link, a.white:visited { font-family: Verdana,Geneva,Helvetica; text-decoration: underline; color : #293d60; }
a.white:hover { font-family: Verdana,Geneva,Helvetica; text-decoration: none; color : #293d60; background-color: #ffff00 }
</style></head><body style="font-family:arial,sans-serif" bgcolor=white text=black link=navy vlink="maroon"><a href="http://www.ingoknito.de" style="font-family:Comic Sans MS, sans-serif;font-size:17pt;">www.ingoknito.de</a><br><br>This is a flip_link class demo file<BR>
Flip_link is a php script to generate text-only DHTML links.
<BR>
<BR>
The new version of flip_link is tested with Opera 7.54, IE 6.0 and Mozilla 1.72

<BR><BR>
<BR>


<?php

include 'inc_flip_link.php';

$fl = new flip_link;
$fl->put_link();

echo
"<br>\n\n";

$fl->title='This link has a title';
$fl->text ='A link with a title';
$fl->put_link();

echo
"<br>\n\n";

$fl->text='A changed flip text with class';
$fl->flip='GO to www.ingoknito.de!';
$fl->class='white';
$fl->put_link();

echo
"<br>\n\n";

$fl->text='no class, but style';
$fl->class='';
$fl->style='text-decoration:none;font-family:monospace;font-size:12px';
$fl->put_link();

echo
"<br>\n\n";
$fl->text='i have my own id';
$fl->put_link('own_id');
?>

</body></html>