CSS changes across IFRAMES
I am useing Paul Sowden's StyleSwitcher script(http://www.alistapart.com/stories/alternate/). But the problem is my site has an IFRAME in the middle that I load my different content pages into. I can't figure out how to make the style switch filter through to all that pages inside of that frame. If you respond to this please do it in as much detail and simple terms as possible, I am a Rookie after all.
>I can't figure out how to make the style switch filter through to all that >pages inside of that frame
what do you mean filter through, if you want css to affect the pages you load in the iframe the css has to be contained within the page loaded or linked to it.
yeah ... that's what i was wondering. The script also uses a cookie ... so maybe there is a way to make the pages that load into that frame pick up the cookie currently being used ... I don't know ... maybe ... eh ... need help. I've had those ideas ... just don't know hwo to do them thanks for the response.
well thing is you've got quite a few different things to piece together to get this to work, the first thing i would ask is; is the page you load in the iframe one of your pages or a page from another site?
if the page is yours it should be easy enough, and you could do it by say passing a variable in the url to the page, then all the page has to do is load the style sheet according to the variable, this will mean that if you change style the iframe page will reload (ie it won't change instantly like in the url you posted) which is the way i would do it, the page changing instantly could do weird things to the page and/or not render correctly, its more sure by reloading the page fresh.