CopyCode The Code is as follows: <script language = "JavaScript" type = "text/JavaScript">
// Test the browser type //
VaR browser = new object ();
Browser. ua = Window. Navigator. useragent. tolowercase ();
Browser. Ie =/MSIE/. Test (browser. ua );
Browser. Moz =/Gecko/. Test (browser. ua );
/****************/
// ------------------ Load a file -------------//
VaR jsloader = {
Load: function (Surl, fcallback)
{
VaR _ script = Document. createelement ("script ");
_ Script. setattribute ("type", "text/JavaScript ");
_ Script. setattribute ("src", Surl );
Document. getelementsbytagname ("head") [0]. appendchild (_ script );
If (browser. ie)
{
_ Script. onreadystatechange = function ()
{
If (this. readystate = "loaded" | this. readystate = "complete ")
{
Fcallback ();
}
};
}
Else if (browser. Moz)
{
_ Script. onload = function ()
{
Fcallback ();
};
}
Else
{
Fcallback ();
}
}
};
VaR arrdata = new array ();
VaR odomain = "http://js.2008.qq.com/medal ";
Jsloader. Load (odomain + "jp_zongbang.js", function (){
For (VAR I = 0; I <arrdata ["jp_zongbang"]. jplist. length; I ++ ){
Document. Write (arrdata ["jp_zongbang"]. jplist [I] + "<br> ");
}
})
</SCRIPT>
method. This method was found in the JS Code of QQ. It can be implemented. However, after using it for a long time, it may not work and may be discovered by QQ, take some measures!
many people say that they can use online Code directly, basically in the
format, at the beginning, I was planning to use this, but soon I realized it would not work, because our boss meant to make the following styles:
you cannot customize the style if you use it. If you want me to manually enter the style, then it is even more impossible for me to stare at the computer 24 hours a day? There is no way to use thieves, but thieves need to use a lot of regular expressions, which is really a headache. In the end, there is no way to use js to help solve the problem.
it's good to steal the news source of the thief and steal it from Baidu:
you can see it! This is the news source I want to use. Analyze the code of the page. The key parts are as follows: