I have this script.
But instead of adding line for line with the CSS code I would like it to read a file called mystyle.css with all the nessesery css.Code:function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } addGlobalStyle('#column_left { background-color: #e4dab6; }');
It MUST be done with JS. How can this be done? Can anyone explane this for me?