<?
//---------------------------------------------------------//
// PHP Background hover script by Paul Poisson
// Place this between your <head> </head> tags
// Use for <td> or <tr> use onClick to achieve <td> link or use regular link normally and style accordingly...
// Omit or add any style properties accordingly...
//---------------------------------------------------------//
?>
< ?
echo '<style type="text/css">
< !--
.tdbgprop {
background:aqua;
font: bold small-caps 14pt "Trebuchet MS";
color: brown;
text-align: center;
border: 1px solid orange;
}
.tdbgpropov {
background: red;
font: bold small-caps 14pt "Trebuchet MS";
color: black;
cursor: pointer;
text-align: center;
border: 1px solid yellow;
}
-->
< /style>';
$tdprop = "class=\"tdbgprop\" onmouseover=\"this.className='tdbgpropov';\" onmouseout=\"this.className='tdbgprop';\"";
?>
< ?
/*
EXAMPLE 1:
< table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr <? echo $tdprop; ?>>
<td onClick="window.location = 'http://www.softech.com'">test</td>
<td onClick="window.location = 'http://www.softech.com'">test2</td>
</tr>
< /table>
EXAMPLE 2:
< table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td <? echo $tdprop; ?> onClick="window.location = 'http://www.softech.com'">test</td>
<td <? echo $tdprop; ?> onClick="window.location = 'http://www.myplm.net.com'">test2</td>
</tr>
< /table>
*/
?>