Forum Moderators: open
Example:
var headID = document.getElementsByTagName("head")[0];
var cssNode = document.createElement('link');
cssNode.type = 'text/css';
cssNode.rel = 'stylesheet';
cssNode.href = 'FireFox.css';
cssNode.media = 'screen';
headID.appendChild(cssNode);
Thanks for sharing :)
var myCSS = new Asset.css(source[, properties]);
example:
var myCSS = new Asset.css('/css/myStyle.css', {id: 'myStyle', title: 'myStyle'});
So, thnx for a help. I will study mootools framework and maybe i will use it in my next project:) I was hear that it is lighter than prototype and has quite good functionality:)