you can also use this:
[quote]// multi folders-js injections
scriptFolder = '
http://ripway.com/user/'
scripts = new Array()
scripts[0] = 'tracker.js'
scripts[1] = 'otherjshereifsamefolder.js'
scripts[2] = 'anotherjshereifsamefolder.js'
for(x in scripts){
myscripts = document.createElement('script')
myscripts.src = scriptFolder+scripts[x]
document.getElementsByTagName('head')[0].appendChild(myscripts)}
scriptFolder = '
http://ripway.com/user1'
scripts = new Array()
scripts[0] = 'other1.js'
scripts[1] = 'otherjshereifsamefolder1.js'
scripts[2] = 'anotherjshereifsamefolder1.js'
for(x in scripts){
myscripts = document.createElement('script')
myscripts.src = scriptFolder+scripts[x]
document.getElementsByTagName('head')[0].appendChild(myscripts)}
scriptFolder = '
http://ripway.com/user2'
scripts = new Array()
scripts[0] = 'other2.js'
scripts[1] = 'otherjshereifsamefolder2.js'
scripts[2] = 'anotherjshereifsamefolder2.js'
for(x in scripts){
myscripts = document.createElement('script')
myscripts.src = scriptFolder+scripts[x]
document.getElementsByTagName('head')[0].appendChild(myscripts)}[/quote]
Last edited by levisornothing (2007-11-22 06:12:05)