Pages: 12

  2008-08-17 23:54:22

ymm0t
» FTalkGeek
FTalk Level: zero
1020
0
1969-12-31

Credits: :arrow: JavaScriptKit :arrow: Me Preview: [url=http://www.friendster.com/jinchuu9]My Profile[/url] This is just another kind of injection to inject css and js..... [color=red]100% WORKING

Credits: :arrow: JavaScriptKit :arrow: Me Preview: [url=http://www.friendster.com/jinchuu9]My Profile[/url] This is just another kind of injection to inject css and js..... [color=red]100% WORKING[/color] Okay... Here's the script: [spoiler][quote]function loadjscssfile(filename, filetype){ if (filetype=="js"){ //if filename is a external JavaScript file var fileref=document.createElement('script') fileref.setAttribute("type","text/javascript") fileref.setAttribute("src", filename) } else if (filetype=="css"){ //if filename is an external CSS file var fileref=document.createElement("link") fileref.setAttribute("rel", "stylesheet") fileref.setAttribute("type", "text/css") fileref.setAttribute("href", filename) } if (typeof fileref!="undefined") document.getElementsByTagName("head")[0].appendChild(fileref) } loadjscssfile("[b]YOUR JS FILE[/b]", "js") //dynamically load and add this .js file loadjscssfile("[b]YOUR CSS FILE[/b]", "css") ////dynamically load and add this .css file[/quote] [/spoiler] Just change the [b]bold [/b] text into the location of our js file. If you wanna inject more js or css file, just add:[quote]loadjscssfile("[b]YOUR CSS FILE[/b]", "css") ////dynamically load and add this .css file loadjscssfile("[b]YOUR JS FILE[/b]", "js") //dynamically load and add this .js file[/quote] You can add as many as u like =D If u wanna know does this code work pefectli or not...... just go to my profile. I've given the ink above

Pages: 12

Board footer

© 2025 F Talk

Current time is 11:39

[ 12 queries - 0.010 second ]
Privacy Policy