I think what you want is something similar to tabs. While one is selected the rest are not and vice versa.
You would apply the script like so(may need modification):
PHP Code:
<?php $id = $_GET['id']; ?>
<style>.selected{background-color:#CECECE;}</style> <strong class="<?=($id==1?'selected':'')?>">Test 1</strong><br /> <strong class="<?=($id==2?'selected':'')?>">Test 2</strong><br /> <strong class="<?=($id==3?'selected':'')?>">Test 3</strong><br />
So you would then point your browser to something like "thisfile.php?id=1" and Test 1 would have a grey background color.
__________________
Go Kirby! <(" . "<) (^" . "^) (>" . ")> Talkupation!
Last edited by microcolt; 03-01-2010 at 02:08 AM..
Reason: Forgot the links to show :D
|