1 WAYS TO COMPILE UR CSS AND JS CODES ;) Sat Nov 29, 2008 8:01 am
alaz05
Retired Administrator
QUESTION: Lare you guys tired mixing and adding up all your ready-to-paste codes into your ABOUT ME BOX or WHO I'D LIKE MEET BOX?
simple, use this way to COMPILE YOUR .CSS AND .JS FILE IN ONE FILE.
there are some STEPS and INFORMATION for yuu to know that could help yuu for it.
1. YOUR OWN FILE HOSTING.
if yuu dont have one yet. choose any from the list. (;
` www.fileave.com
` www.stormpages.com
` www.fileden.com
` www.geocities.yahoo.com
` www.000webhost.com
i dont trust ripway anymurr that's why i didnt put it in the list XDD.
2. YOUR OWN BRAIN AND UNDERSTANDING FOR SOME INFO BOUT .CSS AND .JS FILES.
3. YOUR KNOWLEDGE TO READ THIS! haha..
1)
~ this is good for people who used to ahve multiply onload function.
~ this is also guaranteed to resolve onload conflict.
~ e.g.: page with dual onload codes.
2)
~ rootFolder = name of main folder wher u upload ur css and js
~ kindly, use one folder name for all of ur files
~ css and js part= name of ur file ... u dont need to put the complete url, if u need more slot for js just add
~ e.g.:myscripts[3] = 'extra.js'
if u got none or juz one js remove the excess or better yet just leave the js part blank
~e.g.: myscripts[2] = ' '
arrange the myscript according to ur liking ..
decide w/c script u want to load first. and insert it into [
3)
~ it has also same explanations and infos above (;
4)
~ yuu can save this as.TXT and use the LINKER.
~ yuur final step. yay!
hmmp alaz alaz
simple, use this way to COMPILE YOUR .CSS AND .JS FILE IN ONE FILE.
there are some STEPS and INFORMATION for yuu to know that could help yuu for it.
1. YOUR OWN FILE HOSTING.
if yuu dont have one yet. choose any from the list. (;
` www.fileave.com
` www.stormpages.com
` www.fileden.com
` www.geocities.yahoo.com
` www.000webhost.com
i dont trust ripway anymurr that's why i didnt put it in the list XDD.
2. YOUR OWN BRAIN AND UNDERSTANDING FOR SOME INFO BOUT .CSS AND .JS FILES.
3. YOUR KNOWLEDGE TO READ THIS! haha..
1)
~ this is good for people who used to ahve multiply onload function.
~ this is also guaranteed to resolve onload conflict.
~ e.g.: page with dual onload codes.
- Spoiler:
- var css = document.createElement("link");
css.type = "text/css";
css.rel = "stylesheet";css.href = "CSS HERE";
css.media = "screen, print";document.getElementsByTagName("head")[0].appendChild(css);
scriptFolder = 'ROOT FOLDER URL HERE'
scripts = new Array()
scripts[0] = 'YOURJS#1.js'
scripts[1] = 'YOURJS#1.js'
scripts[2] = 'YOURJS#1.js'
scripts[3] = 'YOURJS#1.js'
scripts[4] = 'YOURJS#1.js'
scripts[5] = 'YOURJS#1.js'
for(x in scripts){
myscripts = document.createElement('script')
myscripts.src = scriptFolder+scripts[x]
document.getElementsByTagName('head')[0].appendChild(myscripts)}
2)
~ rootFolder = name of main folder wher u upload ur css and js
~ kindly, use one folder name for all of ur files
~ css and js part= name of ur file ... u dont need to put the complete url, if u need more slot for js just add
~ e.g.:myscripts[3] = 'extra.js'
if u got none or juz one js remove the excess or better yet just leave the js part blank
~e.g.: myscripts[2] = ' '
arrange the myscript according to ur liking ..
decide w/c script u want to load first. and insert it into [
- Spoiler:
- rootFolder = 'http://www.myhost.com/myfolder/myfiles/'
mycss = document.createElement('link')
mycss.rel='styleSheet'
mycss.href=rootFolder+'css.css'
navBg.appendChild(mycss)
var sCount
var myscripts = new Array()
myscripts[0] = 'myEnterPage.js'
myscripts[1] = 'myTracker.js'
myscripts[2] = 'myWhateverDohicky.js'
for(sCount in myscripts){
a=document.createElement('script')
a.src=rootFolder+myscripts[sCount]
navBg.appendChild(a)
}
3)
~ it has also same explanations and infos above (;
- Spoiler:
- rootFolder ='fileLibrary/'
var myscripts = new Array()
myscripts[0] = 'YOURJS#1.js'
myscripts[1] = 'YOURJS#1.js'
myscripts[2] = 'YOURJS#1.js'
myscripts[3] = 'YOURJS#1.js'
myscripts[4] = 'YOURJS#1.js'
for(x in myscripts){
scriptFile = document.createElement('script')
scriptFile.src= rootFolder+myscripts[x]
document.getElementsByTagName('head')[0].appendChild(scriptFile)
}
var mycss = new Array()
mycss[0] = 'YOURCSS#1.css'
mycss[2] = 'YOURCSS#1.css'
mycss[3] = 'YOURCSS#1.css'
for(x in mycss){
cssFile = document.createElement('link')
cssFile.rel = 'stylesheet'
cssFile.href = rootFolder+mycss[x]
document.getElementsByTagName('head')[0].appendChild(cssFile)
}
4)
~ yuu can save this as.TXT and use the LINKER.
~ yuur final step. yay!
- Spoiler:
- var script = document.createElement("script");
script.type = "text/javascript";script.src = "YOUR COMPLETE JS HERE";
document.getElementsByTagName("head")[0].appendChild(script);
var css = document.createElement("link");
css.type = "text/css";
css.rel = "stylesheet";css.href = "YOUR COMPLETE CSS HERE";
css.media = "screen, print";document.getElementsByTagName("head")[0].appendChild(css);
hmmp alaz alaz