Dynamic Profile Codes
Would you like to react to this message? Create an account in a few clicks or log in to continue.

External Javascript compilation

+4
XED
MhingMhengXD
Null
Marz
8 posters

Go down

External Javascript compilation Empty External Javascript compilation

Post by Marz Thu Oct 29, 2009 4:01 am

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.


// 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);
save as name.js

If you want to insert multiple external JAVASCRIPT follow the given JS INJECTION codes.



//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 name.js

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:
save as myCSSlayout.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
Spoiler:


4. creating or uploading your JS files.
create new text files
Spoiler:
save as name.js

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
Marz
DPC Whiz

Male
Posts : 2030
Joined date : 2009-10-17
Location : .
Cash : 242450391

Back to top Go down

External Javascript compilation Empty Re: External Javascript compilation

Post by Null Thu Oct 29, 2009 5:25 am

from fs-talk ryt? ncmnt
Null
Null
DPC Guest
DPC Guest

Male
Posts : 625
Age : 33
Joined date : 2009-10-29
Location : Regina Parquez's Heart
Cash : 26684

Back to top Go down

External Javascript compilation Empty Re: External Javascript compilation

Post by Marz Thu Oct 29, 2009 6:34 am

*M* wrote:from fs-talk ryt? ncmnt

Ryt..!! old FsTalk member me^_^
Marz
Marz
DPC Whiz

Male
Posts : 2030
Joined date : 2009-10-17
Location : .
Cash : 242450391

Back to top Go down

External Javascript compilation Empty Re: External Javascript compilation

Post by Null Thu Oct 29, 2009 5:00 pm

haunted24 wrote:
*M* wrote:from fs-talk ryt? ncmnt

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
Null
DPC Guest
DPC Guest

Male
Posts : 625
Age : 33
Joined date : 2009-10-29
Location : Regina Parquez's Heart
Cash : 26684

Back to top Go down

External Javascript compilation Empty Re: External Javascript compilation

Post by MhingMhengXD Thu Oct 29, 2009 5:26 pm

Wink nice one :]
wew ... thnx.thnx thnx
MhingMhengXD
MhingMhengXD
DPC Elite

Female
Posts : 4895
Age : 28
Joined date : 2009-10-17
Location : sa tabi mo:3
Cash : 27402

http://friendster.com/purteenxd

Back to top Go down

External Javascript compilation Empty Re: External Javascript compilation

Post by XED Sat Nov 14, 2009 7:07 pm

tnx for this sir.
XED
XED
Global Moderator
 Global Moderator

Male
Posts : 6137
Age : 113
Joined date : 2009-10-22
Location : sa bag mo :]]
Cash : 31062

Back to top Go down

External Javascript compilation Empty Re: External Javascript compilation

Post by CHii ExDee Sun Nov 15, 2009 5:31 am

ayun me nakapost na pla ganito External Javascript compilation 286191
btw thnx for this.para maintindihan naren nang iba ^_^

(galing rin ako fs talk XD)
CHii ExDee
CHii ExDee
DPC Super Member

Female
Posts : 6695
Age : 29
Joined date : 2009-10-17
Location : Philippines...
Cash : 31147

https://www.facebook.com/PattChii14

Back to top Go down

External Javascript compilation Empty Re: External Javascript compilation

Post by lovebang01 Mon Nov 16, 2009 9:08 pm

salamat
lovebang01
lovebang01
DPC Addict

Male
Posts : 166
Age : 31
Joined date : 2009-10-26
Location : Bacolod City
Cash : 26693

http://friendster.com/admerbakud

Back to top Go down

External Javascript compilation Empty Re: External Javascript compilation

Post by HAZEL Tue Nov 17, 2009 5:39 pm

thanks po.
HAZEL
HAZEL
DPC Elite

Female
Posts : 3699
Age : 27
Joined date : 2009-10-26
Location : DAVAO
Cash : 33455

http://neesayzel.multiply.com/

Back to top Go down

External Javascript compilation Empty Re: External Javascript compilation

Post by jhennyz Sat Mar 06, 2010 8:38 pm

thanks for this tutorial...^^

FS Talker here too.. xD


keep sharin'... External Javascript compilation 286191
jhennyz
jhennyz
DPC Addict

Female
Posts : 148
Age : 31
Joined date : 2010-03-04
Location : ~NOWHERETOFiND~
Cash : 26496

Back to top Go down

External Javascript compilation Empty Re: External Javascript compilation

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum