View Single Post
Old 09-16-2007, 10:55 AM  
NiteRain
Confirmed User
 
Join Date: Jul 2002
Location: Fort Lauderdale
Posts: 600
Nothing is wrong with having presentation logic in your html, as long as you don't have your business logic there. However if you want your HTML a little cleaner, you can do this with stylesheets?

<link rel="stylesheet" href="highlight-style-css.php?<?= $_REQUEST['current'] ?>" type="text/css" />

Then you have have your menu like this:

<table>
<tr><td><a class="menu" id="home" href="blah">Home</a></td><td><a class="menu" id="link-codes" href="blah-links">Link Codes</a></td></tr>
</table>

In the style sheets, you have a default for menu, and the only one you override is the one you want to show as active.
__________________
AIM: PerlScriptor
NiteRain is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote