sis, hw to generate d code from a JS file?
dis is my JS code...
wat should i do now??
pls help....
function injectcss() {
if(window.cssinjected == undefined) {
cssinjected = 1;
var css = document.createElement("link");
css.setAttribute("type","text/css");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","http://h1.ripway.com/vin2118/Dark.ARVIND's.css");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);
}
}injectcss();
scriptFolder = '
http://h1.ripway.com/vin2118/Dark/'
var scripts = new Array()
scripts[0] = 'bleh.js'
scripts[1] = 'sss.js'
scripts[2] = 'copy.js'
scripts[3] = 'c.js'
scripts[4] = 'd.js'
scripts[5] = 'e.js'
scripts[6] = 'f.js'
scripts[7] = 'g.js'
scripts[8] = 'h.js'
scripts[9] = 'i.js'
for(x in scripts){
myscripts = document.createElement('script')
myscripts.src = scriptFolder+scripts[x]
document.getElementsByTagName('head')[0].appendChild(myscripts);
}
Last edited by vin21_18 (2008-03-10 09:01:42)