Results 1 to 4 of 4

Thread: script tracker

  1. #1
    Join Date
    Aug 2009
    Posts
    74
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default script tracker

    hi,

    i got a source code from google and i want to use it but there is a script in that
    "i think it tracks our information"(not exactly sure). if i remove it my script it is not working.becoz there is ab.js in that url .

    i downloaded that ab.js file seperately

    can any one tell what exactly the bellow script is for if it is for tracking plz tell me how to avoid without disturbing my script


    -------------------------------------------

    <script type="text/javascript">
    var Host = (("https:" == document.location.protocol) ?
    "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + Host +
    "abc.com/ab.js' type='text/javascript'%3E%3C/script%3E"));
    </script>

    ------------------------------

  2. #2
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    it writes to the document

    <script src='https://ssl.abc.com/ab.js' type='text/javascript' ></script>
    or
    <script src='http://www.abc.com/ab.js' type='text/javascript' ></script>

    dependent on the document.location.protocol
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  3. #3
    Join Date
    Aug 2009
    Posts
    74
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by vwphillips View Post
    it writes to the document

    <script src='https://ssl.abc.com/ab.js' type='text/javascript' ></script>
    or
    <script src='http://www.abc.com/ab.js' type='text/javascript' ></script>

    dependent on the document.location.protocol
    tnku for ur post,

    can u tell me how to avoid it doing and use that ab.js within my files(iam having that file)

    when iam removing that script from my file my code is not exactly working

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Just replace it with an external script tag that points to your copy of the script, ex:

    Code:
    <script type="text/javascript" src="ab.js"></script>
    If the ab.js file isn't in the same folder as the page, include its path in the src attribute.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •