Asp.net + JS real-time Olympic gold card listing code page 1/2

Source: Internet
Author: User

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.