Here is my problem:
I have a very simple teaser html site right now with a large background image (www.iambold.org).
The background image is set on the body tag, as well as the background color. I need the body tag to be arbitrarily assigned to a different identifier whenever the page loads.
The reason for this is that each individual identifier will have a different background image and a different background color associated with it.
The last part is that I need a generator to choose only between the identifiers that I set in the css file.
Here is the CSS for the body backgrounds:
body {font-family:'Lato',verdana,arial,sans-serif; font-size:14px; line-height:22px; } body#body_1 {background:#fff url(../images/bg_splash.jpg) center -15px repeat-x;} body#body_2 {background:#353932 url(../images/bg_splash2.jpg) center -15px repeat-x;}
I am familiar with jquery and can pretty well crack codes to do what I need, but I'm not good enough to write my own code for these types of things.
jkilp source share