CSS JavaScript Dynamic Attacher

联合创作 · 2023-10-02

/*
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
*/
浏览 1
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报