Re: [css-d] Where CSS, XHTML and Javascript meet

2006-08-23 Thread Tim Gossett
You might use client-side scripting to apply a random stylesheet. Look into JQuery [1]... it's a pleasure to use. As a rule, I always make sure that my pages are presentable sans JS and CSS, and then use JS and CSS to style it from there. Tim [1] http://www.jquery.com ___

Re: [css-d] Where CSS, XHTML and Javascript meet

2006-08-21 Thread francky
Tim Wolf wrote: >I realize this is a bit of a scripting issue, but I'm seeking a solution from >the CSS community as it regards a fundamental style change and a desire to >validate in XHTML. > >I am trying to create a page with a body background image that will randomly >change when the page is

Re: [css-d] Where CSS, XHTML and Javascript meet

2006-08-21 Thread scott . swabey
Tim Wolf wrote: > I realize this is a bit of a scripting issue, but I'm seeking a solution from > the CSS community as it regards a fundamental style change and a desire to > validate in XHTML. > > I am trying to create a page with a body background image that will randomly > change when the pa

Re: [css-d] Where CSS, XHTML and Javascript meet

2006-08-21 Thread Dave Goodchild
You're right, a bit off-topic, as is my answer. You could use php, ie have more contro, as it's server-side ie the php array $classes = array('class1', 'class2', 'class3'); ?> the xhtml with php dynamics then in the css, for example body .class1 { background: url(/images/class1.jpg); } body

[css-d] Where CSS, XHTML and Javascript meet

2006-08-21 Thread Tim Wolf
I realize this is a bit of a scripting issue, but I'm seeking a solution from the CSS community as it regards a fundamental style change and a desire to validate in XHTML. I am trying to create a page with a body background image that will randomly change when the page is reloaded. After seekin