<?php
Function my_function($open)
{
as before
return $class
}
get value for $open (swicth of $show case "page1" $open = 1 etc)
$class = my_fucntion($open)
?>
<tr>
<td class="<?=$class[1]?>"><a href="link.php?show=page1">page1</a></td>
</tr>
<tr>
<td class="<?=$class[2]?>"><a href="link.php?show=page2">page2</a></td>
</tr>
<tr>
<td class="<?=$class[3]?>"><a href="link.php?show=page3">page3</a></td>
</tr>
you will obviously need to set up a style sheet to deterine what happens when bgon and bgoff are echod in the class="<?=$class[x];?>" statement - for help on stylesheets
http://www.devshed.com/Client_Side/Style_Sheets
ian
www.axcessten.com
www.neiljmac.com