Baidu online tablet code

Source: Internet
Author: User
<! Doctype HTML>
<HTML>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> Baidu online tablet code-PHP self-learning Network </title>
<Style>
# SX {color: # 00c; text-Decoration: underline; cursor: pointer ;}
</Style>
</Head>
<Body>
<Form name = "F" Action = "S">
<Input type = "text" name = "WD" id = "kW" maxlength = "100">
<Input type = "Submit" value = "" id = "Su">
<Span id = "SX"> handwriting </span>
</Form>
<SCRIPT>
VaR W = Window, D = Document, n = navigator, K = D. F. WD
If (W. attachevent ){
W. attachevent ("onLoad", function () {K. Focus ();})
} Else {
W. addeventlistener ('load', function () {K. Focus ()}, true)
};
VaR HW = {};
HW. I = D. getelementbyid ("SX ");
VaR IL = false;
If (/MSIE (\ D + \. \ D)/I. Test (N. useragent )){
HW. I. setattribute ("unselectable", "on ")
} Else {
VaR SL = K. value. length;
K. selectionstart = SL;
K. selectionend = SL
}
HW. I. onclick = function (B ){
VaR B = B | W. event;
B. stoppropagation? B. stoppropagation (): (B. cancelbubble = true );
If (D. Selection & D. activeelement. ID & D. activeelement. ID = "kW "){
HW. hasf = 1
} Else {
If (! D. Selection ){
HW. hasf = 1
}
}
If (! Il ){
VaR A = D. createelement ("script ");
A. setattribute ("src", "http://www.baidu.com/hw/hwInput.js ");
D. getelementsbytagname ("head") [0]. appendchild ();
IL = true;
}
};
</SCRIPT>
</Body>
</Html>

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.