addNewStyleSheetByFullCSS | JavaScriptSource

addNewStyleSheetByFullCSS

JavaScriptSource Staff Sep 25, 2006

General

Have you ever wanted to add a style sheet to your document using the full CSS without having to use addRules and insertRules? While this method is a bit "non-standard", it's a pretty nifty approach that can be expanded upon.


I am styling!

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: addStyleSheet.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(2 comments)

Awesome.[br /][br /]Added to my greasemonkey script, now I can modify the CSS on any page with ease.[br /][br /]Oh Yeah!

Jimmy Aug 27, 2007

this is good

akil Jan 29, 2007