CSS JavaScript Dynamic Attacher
/*
Dynamically Load Javascript and Cascading Style Sheets
--------------------------------------------------------------
Purpose:
I personally use this because if my clients
are not going to take advantage of Javascript
there is no point in using CSS, so this will
remove all CSS that is loaded with Javascript
when Javascript is disabled.
Use this however you like, thats just why I use it.
--------------------------------------------------------------
The way this is setup you can load from,
PHP, ASP, ETC. File extension doesn't matter.
but you must define what it is only works for
css and js.
Example of use:
$cssjsattach("test.css", "css");
$cssjsattach("test.js", "js");
$cssjsattach("test.php", "js");
$cssjsattach("test.php", "css");
--------------------------------------------------------------
Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html
--------------------------------------------------------------
For more information visit:
http://plugins.jquery.com/project/cssjsattach
*/
评论