lingling Posted February 18, 2007 Share Posted February 18, 2007 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 More sharing options...
tuky Posted February 18, 2007 Share Posted February 18, 2007 It annoys me on my work PC. How do I turn the (de)bugger off? Everypage gets held up until I click yes or no. Link to comment Share on other sites More sharing options...
lingling Posted February 19, 2007 Author Share Posted February 19, 2007 It annoys me on my work PC.How do I turn the (de)bugger off? Everypage gets held up until I click yes or no. internet options / advanced / browsing / disable script debugging Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now