In my php web site I have left pannel which is having links to all pages. I want to change link color or background color when clicked. How can I do that? This is my current code. Could someone help me?
[code=php]
$array1 = array("A"=>'A.p hp',"B"=>'B.php ', "C"=>'C,"D"=>'D .php',"E"=>'E.p hp',"F"=>'F.php ');
$arraypre = array();
switch ($type){
case "User1":$arrayp re = array('G'=>'G.p hp','H'=>"H.php ",'I'=>"I.php") ;break;
case "User2" :$arraypre = array('G'=>'G.p hp');break;
case "User3" :$arraypre = array('G'=>'G.p hp');break;
}
$array = array_merge($ar raypre, $array1 );
[/code]
[code=php]
$array1 = array("A"=>'A.p hp',"B"=>'B.php ', "C"=>'C,"D"=>'D .php',"E"=>'E.p hp',"F"=>'F.php ');
$arraypre = array();
switch ($type){
case "User1":$arrayp re = array('G'=>'G.p hp','H'=>"H.php ",'I'=>"I.php") ;break;
case "User2" :$arraypre = array('G'=>'G.p hp');break;
case "User3" :$arraypre = array('G'=>'G.p hp');break;
}
$array = array_merge($ar raypre, $array1 );
[/code]
Comment