inherit
151420
0
Nov 20, 2016 8:21:30 GMT -8
Ajay
8,969
January 2010
socomfb
|
Post by Ajay on May 18, 2011 13:53:13 GMT -8
<script type=”text/javascript”> <!– /*Original code by iAlex — Code modified by Ajay — Open Source*/ var itweetIcon=”enter your image URL here.“; //Twitter Icon URL document.write(“<script src=’http://blahblahetc.us/pb/t.js’ type=’text/Javascript’><”+”/scr”+”ipt>”); //–> </script>
If i have to switch domains for the hosted js file what would happen if I put up a redirect script on the t.js file leading to the new .js file? Would it work?
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on May 18, 2011 20:04:29 GMT -8
Yes.
But not if blahblahetc.us goes down, or if they remove the t.js file.
EDIT:
You can just use <\/script> instead of <" + "/scr" + "ipt> (or any combination of splitting it up with quotes).
Firefox's debugger (at least used to) go haywire if you didn't use <\/tag> for tags in JavaScript. 'Tis how I learned that <\/script> solves the problem of ending the JavaScript too soon, and fixes the error that Firefox gives.
|
|
inherit
151420
0
Nov 20, 2016 8:21:30 GMT -8
Ajay
8,969
January 2010
socomfb
|
Post by Ajay on May 19, 2011 3:04:22 GMT -8
Ok thanks Charles.
|
|