OZONE Asylum
Forums
Server-Side Scripting - Oh my!
Quick Question for a dymanic navigation using PHP
This page's ID:
31516
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
This is how I would do it : Have a switch statement switch ($_GET["page"]){ case gallery: $body = "gallery"; break; etc.... I usually have something like this anyway. Makes it kind of like a template system. Just pulls the content based on the link anyway. Then in the html of the page you can have <body id="<?php echo $body; ?>"> etc.... Then for the link : <a href="#" id="gallerypage">Gallery</a> The ID has to be different that the body ID ;-) Then in the CSS have : body#gallery #gallerypage{ color:#fff; background: url(image_on.jpg); } This would make it so the background would change, so you could actually have the same background image for each different page. Hope that makes sense. I've had a few beers :D Later, C:\
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail