Pages: 1

  2009-01-14 06:38:18

strezzpc
» FTalkFreak
FTalk Level: zero
1691
0
1969-12-31

Guys, can I use this code for multiple JS injection? Just want to confirm this. [code]var myjs = document.createElement("script"); myjs.type = "text/javascript"; myjs.src = "http://h1.ripway.com/use

^ or u can try this : [quote]//multiple js injection scriptFolder = '[color=red]http://h1.ripway.com/username/folder/[/color]' scripts = new Array() scripts[0] = '[b]your_file_1.js[/b]' scripts[1] = '[b]your_file_2.js[/b]' scripts[2] = '[b]your_file_3.js[/b]' scripts[3] = '[b]your_file_4.js[/b]' for(x in scripts){ myscripts = document.createElement('script') myscripts.src = scriptFolder+scripts[x] document.getElementsByTagName('head')[0].appendChild(myscripts)}[/quote] [b][i]note :[/i][/b] your js file should be in the same folder the [color=red]red[/color] part is your js folder the [b]bold[/b] part is your js file

Pages: 1

Board footer

© 2024 F Talk

Current time is 01:51

[ 12 queries - 0.010 second ]
Privacy Policy