dmora
How do i make HTML load random CSS options?
Like if i wanted to change the color of the outlines and <h#>'s etc.
Like if i wanted to change the color of the outlines and <h#>'s etc.
its alot easier using what i posted above than using javascript, which can be disabled by the ones looking at your site, php cant be disabled
actually the code to do this in php is a lot smaller and less complicated than javascript, and i dont know JS
plus with php and css you can make sure different color schemes dont conflict with each other, using random colors with javascript, you may get a pile of poo for colors, instead of certain schemes.
The PHP is all executed on the server; all it will do is choose a CSS sheet when the client requests to see the page, and then the page and the chosen CSS file will get sent out to the client.but is the overhead of the extra php processing really worth such a trivial gain?
I guess if you're more concerned with bandwidth than cpu usage, go the PHP route.
The PHP is all executed on the server; all it will do is choose a CSS sheet when the client requests to see the page, and then the page and the chosen CSS file will get sent out to the client.