PDA

View Full Version : Javascript Editing CSS on one document



Jeff Wheeler
January 31st, 2004, 05:18 PM
Ok, I am not sure if this is possible, but what I am trying to do is make the javascript tell some things to be visible if the page is being viewed with one css doc and different things visible with a different css doc. I have a link to the code below.

Well, a link to it anyway. (http://bombingpixels.com/default_source_code.asp)

How can I set the body tag code stuff to only happen in the green css document? By the way, this is at Bombingpixels.com (http://bombingpixels.com)

Jeff Wheeler
January 31st, 2004, 07:12 PM
please somebody help

it seems so many people always look at my posts but never answer, is there a reason to this, is it just that nobody knows the answer?

λ
February 1st, 2004, 06:55 AM
well it's quite simple.. you don't even need to use JS.

You can just do a CSS display:none; on elements you want hidden... ;)

Jeff Wheeler
February 1st, 2004, 11:01 AM
um, well. I don't know if I typed this very well above but here I go.

I am using a css switcher so that the user can choose which css doc to use. The homepage however messes with the css to tell it to make the two column divs visible and the larger one column one invisible. Hey, I just figured it out, I just have to make the background left and background right div's layer on top of the first css doc, now you can check out the second one.

What do you think of the other css doc?

Thanks,
Jeff