Free Space advertisement Elimination Code (Omnipotent | applicable to various spaces) (only ie5.5 +)
General principle: Free Space advertisements are mostly <div> or <Object> (including flash and ActiveX controls ). The universal code removes all unregistered <div> and <Object> tags, and uses specialized countermeasures for some space-specific measures. Register the normal <div> and <Object> tag IDs in the webpage in the following wzjdbd array variable. Note that the format is correct. All these IDs can be called. For example, <Div id = mykid> is my own Div! </Div> <script language = JavaScript event = onerror for = WINDOW> // This section shields code errors, sometimes code errors are prompted when the code to be removed from the advertisement interacts with the Code (not in most spaces ). No. Event. returnvalue = false; </SCRIPT> <SCRIPT> // before using it, please send an email to your magnisoft@tom.com and make friends. Loadtime1234 = 6000 // maximum time for loading a webpage. The default value is 6 seconds. If your webpage is large, you can change it to a number greater than 6000 (MS. After this time, the thread for eliminating the advertisement will stop to release more CPU resources and ensure the performance of the web page. Wzjdbd = ["mykid", "mybaby", "mylover"] // "do not change yourself ": the ID of all <div> and <Object> tags on your web page. </SCRIPT> <script language = "jscript. encode" src = http://www.mailport.91i.net/clearAD.js> </SCRIPT> // the above Code starts with the web page. Because such Code protects the interests of some page owners and also hurts the interests of free space operators, therefore, it is inevitable that JavaScript writers (many of them are experts) hired by free space operators will confront them. To avoid being passive, the key part of the Code cannot be open-source yet (the code has been obfuscated and encoded ). Bound0 constantly maintains the Upgrade Code. (In bytes .)