PDA

View Full Version : Need help with CSS/XHTML code



thebeev
11-27-2006, 21:24
Just wondering if there are any experienced webpage designers around here that could help me out with what I'm trying to do...

For my blog section, I have multiple categories "F16 cockpit project" "Aviation" etc...

I was wondering if there is a way I can change my banner picture to reflect the category. Like if you click on the F16 cockpit project section, have a banner that shows a F16 cockpit. If you go to the aviation category it has a pic of an airplane. I'm pretty much just modifying an existing template that is using CSS and XHTML. If anyone could help me out I would greatly appreciate it. Even if you could point me in the right direction I can fumble my way through. :bigsmile:

Cobra
11-27-2006, 22:17
for a start you have posted it in the wrong section ....

:lol

i'll move it for you.

thebeev
11-28-2006, 00:09
Ooops my bad, wasn't sure if that would be considered "PC" related:red:

Fate
11-29-2006, 05:29
I assume you want the picture changed when you reload the page? You can't do it with just CSS/XHTML, but if you combine a server-side language such as PHP (you may even be able to do it in Javascript) then you can do it.

thebeev
11-29-2006, 09:14
Pretty much, basically the picture will change when loading a different category page. Thanks for the response Fate, appreciate it. I'll have to check out PHP and Javascript stuff.

Fate
12-01-2006, 09:24
Not 100% sure how you'd do it with Javascript, but with PHP, you'd need to make the stylesheet inline (ie in your webpage file, not in a seperate file) and use PHP to dynamically modify the image location. Well, that's one way to do it.