External Javascript compilation
+4
XED
MhingMhengXD
Null
Marz
8 posters
Page 1 of 1
External Javascript compilation
Before You can apply all the tricks given here,, be sure that you already know how to compile your JS incloudling your CSS..
If you want to fuction your CSS as JS external follow the given CSS INJECTION codes.
If you want to insert multiple external JAVASCRIPT follow the given JS INJECTION codes.
as what you've seen, you can insert multiple JS as many as you can..
so this is now your MAIN EXTERNAL JS
save as MAIN.JS
You can also base the given example below:
mymainscript.js
RED= url of your JS
CYAN= url of your CSS
hope it helps..^_^
NEXT PART
______________________________________________________
Udated: 11/14/09(with file hosting site tutorial)
For best file hosting site, I will recommend you http://www.badwaresite.www
1.register(sign-up) first
2.creating SUBFOLDER
In your Ripway, click on My Files, and create a new subfolder by rename the Folder Name as mycodes or as what you want.
Then open your new subfolder....(that was empty) continue next step
3.creating or uploading your CSS layout.
If you already have CSS layout save in your PC, just click upload files and upload your CSS layout or create a text files then post your CSS layout script and save as name.css
Then get the url of your CSS for you to inject on your external JS script
how to get the url of your CSS
4. creating or uploading your JS files.
create new text files
that's all, you have now your external JS script with CSS injection inside.
looking for credits.? you can have it.!!
haunted24 Ftalker
If you want to fuction your CSS as JS external follow the given CSS INJECTION codes.
save as name.js
// CSS INJECTION
var css = document.createElement("LINK");
css.type = "text/css";
css.rel = "stylesheet";css.href = "URL OF YOUR CSS";
css.media = "screen, print";document.getElementsByTagName("head")[0].appendChild(css);
If you want to insert multiple external JAVASCRIPT follow the given JS INJECTION codes.
save as name.js
//JS INJECTION
var scripts = new Array()
scripts[0] = 'URL OF YOUR JS'
scripts[1] = 'URL OF YOUR JS'
scripts[2] = 'URL OF YOUR JS'
for(x in scripts){
myscripts = document.createElement('script')
myscripts.src = scripts[x]
document.getElementsByTagName('head')[0].appendChild(myscripts);
}
as what you've seen, you can insert multiple JS as many as you can..
so this is now your MAIN EXTERNAL JS
// CSS INJECTION
var css = document.createElement("LINK");
css.type = "text/css";
css.rel = "stylesheet";css.href = "URL OF YOUR CSS";
css.media = "screen, print";document.getElementsByTagName("head")[0].appendChild(css);
//JS INJECTION
var scripts = new Array()
scripts[0] = 'URL OF YOUR JS'
scripts[1] = 'URL OF YOUR JS'
scripts[2] = 'URL OF YOUR JS'
for(x in scripts){
myscripts = document.createElement('script')
myscripts.src = scripts[x]
document.getElementsByTagName('head')[0].appendChild(myscripts);
}
save as MAIN.JS
You can also base the given example below:
mymainscript.js
// CSS INJECTION
var css = document.createElement("LINK");
css.type = "text/css";
css.rel = "stylesheet";css.href = "myBGscript.css";
css.media = "screen, print";document.getElementsByTagName("head")[0].appendChild(css);
//JS INJECTION
var scripts = new Array()
scripts[0] = 'floatingimage.js'
scripts[1] = 'loadingtrick.js'
scripts[2] = 'welcometrick.js'
for(x in scripts){
myscripts = document.createElement('script')
myscripts.src = scripts[x]
document.getElementsByTagName('head')[0].appendChild(myscripts);
}
**YOU CAN ALSO PUT SOME JS CODES BELOW**
RED= url of your JS
CYAN= url of your CSS
hope it helps..^_^
NEXT PART
______________________________________________________
Udated: 11/14/09(with file hosting site tutorial)
For best file hosting site, I will recommend you http://www.badwaresite.www
1.register(sign-up) first
2.creating SUBFOLDER
In your Ripway, click on My Files, and create a new subfolder by rename the Folder Name as mycodes or as what you want.
- Spoiler:
Then open your new subfolder....(that was empty) continue next step
3.creating or uploading your CSS layout.
If you already have CSS layout save in your PC, just click upload files and upload your CSS layout or create a text files then post your CSS layout script and save as name.css
- Spoiler:
- Spoiler:
Then get the url of your CSS for you to inject on your external JS script
how to get the url of your CSS
- Spoiler:
4. creating or uploading your JS files.
create new text files
- Spoiler:
that's all, you have now your external JS script with CSS injection inside.
looking for credits.? you can have it.!!
haunted24 Ftalker
Last edited by marz on Mon Nov 16, 2009 12:25 am; edited 5 times in total
Marz- DPC Whiz
-
Posts : 2030
Joined date : 2009-10-17
Location : .
Cash : 242450391
Re: External Javascript compilation
from fs-talk ryt?
Null- DPC Guest
-
Posts : 625
Age : 33
Joined date : 2009-10-29
Location : Regina Parquez's Heart
Cash : 26684
Re: External Javascript compilation
*M* wrote:from fs-talk ryt?
Ryt..!! old FsTalk member me^_^
Marz- DPC Whiz
-
Posts : 2030
Joined date : 2009-10-17
Location : .
Cash : 242450391
Re: External Javascript compilation
haunted24 wrote:*M* wrote:from fs-talk ryt?
Ryt..!! old FsTalk member me^_^
..im ayt..well thanks for sharing...
di kase ako xado magaling sa css ..html at js lang ako... wakekeke
turoan mo ako soon aa :X
Null- DPC Guest
-
Posts : 625
Age : 33
Joined date : 2009-10-29
Location : Regina Parquez's Heart
Cash : 26684
Re: External Javascript compilation
tnx for this sir.
XED- Global Moderator
-
Posts : 6137
Age : 113
Joined date : 2009-10-22
Location : sa bag mo :]]
Cash : 31062
Re: External Javascript compilation
ayun me nakapost na pla ganito
btw thnx for this.para maintindihan naren nang iba ^_^
(galing rin ako fs talk XD)
btw thnx for this.para maintindihan naren nang iba ^_^
(galing rin ako fs talk XD)
Re: External Javascript compilation
thanks for this tutorial...^^
FS Talker here too.. xD
keep sharin'...
FS Talker here too.. xD
keep sharin'...
jhennyz- DPC Addict
-
Posts : 148
Age : 31
Joined date : 2010-03-04
Location : ~NOWHERETOFiND~
Cash : 26496
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|