Enables CSS modification that uses a 'global' stylesheet, rather than inline CSS. This is particularly handy for modifying CSS styles that you want to remain persistent until a page is refreshed again.
Use the 'globalcss' function in the same way as the jQuery 'css' function. Eg:
Use the globalsetylesheet.print() function to return a string of the global stylesheet
This plugin creates a stylesheet and appends it to the head of the page. The document.styleSheets object is used to reference the new stylesheet, and add styles to it. References to new styles are cached in an associative array, which uses the CSS selector query as the key, to help with performance (rather than searching through the document.styleSheets object).
This plugin requires jquery 1.3.1 or above, unless I figure out how to access the jQuery.selector variable in older versions.
I havn't done much cross-browser testing yet. Feel free to test it out and let me know of issues that arise.
Thanks to hunlock.com for a blogÂ that helped me understand how use the document.styleSheets object.