Search the web
Sign In
New User? Sign Up
JS-Jive · The premiere Yahoo! Javascript Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Can I use js to include a stylesheet?   Message List  
Reply | Forward Message #21087 of 21091 |
Re: Can I use js to include a stylesheet?

On Thu, Jan 1, 2009 at 9:33 PM, Dean Hamack <lists@...> wrote:
> So how do I add the class to the body tag with js?

The method you're interested in is `addClassName()` -- google for
docs/examples. :-)

HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@...



Fri Jan 2, 2009 6:54 am

laughingandj...
Offline Offline
Send Email Send Email

Forward
Message #21087 of 21091 |
Expand Messages Author Sort by Date

This is probably a dumb question, but I'm a js dummie, so forgive me. The idea is I want to have a stylesheet for all users (both with and without js), and...
Dean Hamack
tactics2337
Offline Send Email
Dec 31, 2008
11:48 pm

... document.write is (IMO) clumsy and ugly, and doesn't work in a true XHTML page. Forget you ever heard of it :-) Alternatives: 1) directly manipulate the...
Hassan Schroeder
laughingandj...
Offline Send Email
Jan 1, 2009
6:19 am

Thanks Hassan. I think I like option number two. So how do I add the class to the body tag with js?...
Dean Hamack
tactics2337
Offline Send Email
Jan 2, 2009
5:33 am

... The method you're interested in is `addClassName()` -- google for docs/examples. :-) HTH, -- Hassan Schroeder ------------------------...
Hassan Schroeder
laughingandj...
Offline Send Email
Jan 2, 2009
6:54 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help