Menu
Say if I had several <a> tags and if you rolled over them, a div would show a color depending on the <a> that was rolled over.
I really don’t wanna use js so I was wondering if php would work better.
links.php page:
<?php
$link = $_GET[‘link’];
switch($link) {
case 1:
//some sort of code that changes css background color
break;
case 2:
//some sort of code that changes css background color
break;
}
?>
HTML PAGE:
<a onmouseover=”links.php?link=1″>red</option>
<a onmouseover=”links.php?link=2″>black</option>
<div class=”displayColor”></div>