Jump to content

Script Error


lingling

Recommended Posts

This won't affect the majority of users who run with the script debugging features switched off, but for the minority who do there is a script on every forum page that causes an exception.

You may want to change it so it builds up the entire string and then writes it to the document in a single document.write rather than writing it piece by piece in multiple steps. This is the one I am talking about:

<script language='JavaScript' type='text/javascript'>

<!--

if (!document.phpAds_used) document.phpAds_used = ',';

phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

document.write ("<" + "script language='JavaScript' type='text/javascript' src='");

document.write ("http://media.thaivisa.com/adjs.php?n=" + phpAds_random);

document.write ("&what=zone:1&block=1");

document.write ("&exclude=" + document.phpAds_used);

if (document.referrer)

document.write ("&referer=" + escape(document.referrer));

document.write ("'><" + "/script>");

//-->

</script>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.










×
×
  • Create New...