oh, excuse me... I've tryed and it is like you say ๐
Only one thing: if I want to unlink the name of current page, can I'do?
This is a working example:
menu.php included:
<table>
<tr>
<td <?php thecolor("page1.php"); ?>href="page1.php">go page1</a></td>
</tr>
<tr>
<td <?php thecolor("page2.php"); ?>href="page2.php">go page2</a></td>
</tr>
<tr>
<td <?php thecolor("page3.php"); ?>href="page3.php">go page3</a></td>
</tr>
</table>
this in all the page (1, 2 etc...)
<?php
function thecolor($fl1) {
$fl2 = basename(__FILE__);
if($fl1==$fl2)
echo "bgcolor=\"#C1C1C1\"><a class=\"menu2\" ";
else echo "bgcolor=\"#A3D6FF\"><a class=\"menu\" ";
}
@include("menu.php");
?>
the menu & menu2 class are different in link color (blu/black)
It's possible to unlink the current page? thanx ๐