AjaxCSSJS is a class for loading JavaScript and CSS files on-demand. (load dynamically)
Download AjaxCSSJSExample1:
new AjaxCSSJS('layout.css', 'css');
Example2:
new AjaxCSSJS('js/ajaxtab.js', 'js');
Example3:
new AjaxCSSJS('js/ajaxtab.js', 'js',
function() {alert('loaded')}
)
Example4 [New feature: remove()]
var style;
addCss = function() {
style = new AjaxCSSJS('css/style1.css', 'css');
}
removeCss = function() {
style.remove();
}
No comments:
Post a Comment