Recent Topics

1 Oct 01, 2006 10:55    

I have a menu that loads includes such as arcdire, msgform, recent comments, about etc etc.

How do I give each "include" a unique ID so I can set an active state on the related Menu?

Cheers

2 Oct 01, 2006 13:11

How about :-

<style type="text/css">
#disp_<?php echo $disp; ?>{
/*
your "active" css goes here
*/
}
</style>

......

<ul id="menu">
<li id="disp_comments"><a href=".....">....</a></li>
<li id="disp_msgform"><a href=".....">....</a></li>
<li id="disp_arcdir"><a href=".....">....</a></li>

...
</ul>

¥

3 Oct 01, 2006 13:28

Thanks, I'll give it a spin...
Look's logical :)

4 Oct 01, 2006 15:30

Perfect... had to frig around with some existing CSS, but other than that, you have done it again.


Form is loading...