![]() |
Alright, I'm in charge of designing my church's website. And each of the religious seasons has a specific color. For each season I have an appropriate CSS file (Blue.css, Green.css etc). Anyway, how could I implement this with PHP. I'm assuming I'd need a to use the date module, but how would I tell it to use which CSS script according to the date? Any help is appreciated. Thanks :D
|
well with psuedo code. what you would do is
Check Date; if data is > then say Dec 1st then print xmass.css and soo on :) if someone hasnt helped out better thent hat by the time i get home i will look up exactly how to do this :) |
Here goes nothing:
:
<?PHPofcourse none of this code is tested and is just ment to get you going in the right direction, so i don't know if there are errors in it or what. good luck. |
oh, and you'd also have to run this code inside your header where you want to declair your css
|
Thanks, I'll definatly start with that. I'll post the final content then.
|
your welcome. post a link to the site too!
|
The site is http://www.lavansv-bakersv.org It's not completed yet, so half of the main links don't go anywhere yet, and there are a few places that arent't updated yet. Don't complain about the sloppy coding :-D (using frames for a layout, the pastor wanted it). I didn't write the other CSS scripts yet. I'll get those going in about a week here, I'll post back when I have everything up to par. Feedback and suggestions are welcomed :D
|
Looks good, however i feel sorry for you because you have to use frames. why not use tables and some nifty iframes? It could use a little more color and some nice gradients to make the menu and rest of the page pop out at the user. I know it's just in the begining faze, so i am sure that it'll just keep getting better and better looking.
Good work so far though. |
Yeah, I need to run alternate layout ideas past my pastor. Iframes are nice, but I've seen some odd things happen with them accross some alternate browsers. But then again, most the people in this small town of Pennsylvania have never heard of Mozilla and use either IE or AOL. I'll definatly consider your ideas though.
|
IFrames are the devil!
|
| All times are GMT -5. The time now is 12:58 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC