I want to do a similar function of QQ space comment
I don't know if you've found no qq. The editor will not be loaded until the text box is clicked.
is not the kind of that hides clicks before it is displayed;
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "Content=" Tex t/html; charset=gb2312 "/> <title> Untitled document </title> <script type=" text/javascript ">//the function can get The content of right page when user click the "link in the" left side var xmlHttp; var Searching=false; var mydivname= ""; function Getxmlhttp () {A = new ActiveXObject ("Microsoft.XMLHTTP"); return A; } function ExecuteQuery (divname,url) {searching = true; Mydivname = Divname; if (xmlHttp && xmlhttp.readystate!= 0) {xmlhttp.abort (); } xmlhttp=getxmlhttp (); var tempurl= ""; if (xmlHttp && mydivname!= "") {Tempurl + + URL + ". htm" + "?";/ /loading type Tempurl + + & + new Date (). GetTime (); Xmlhttp.open ("GeT ", Tempurl, True); Xmlhttp.onreadystatechange = getreturnhtml; Xmlhttp.send (NULL); }else{searching = false; Mydivname = ""; Window.alert (' The system is too busy, please try again later! '); return false; }} function getreturnhtml () {if (xmlhttp.readystate==1) {document.getElementById (mydivname). Inn erhtml = ""; else if (xmlhttp.readystate = = 4 && xmlhttp.responsetext && searching) {//ale RT (Mydivname); document.getElementById (mydivname). InnerHTML = Xmlhttp.responsetext; alert (Xmlhttp.responsetext); searching = false; } else{document.getElementById (mydivname). InnerHTML = "Access Denied"; } </script> <style type= "Text/css" > <!--#Layer1 {position:absolute; left:8px; top:53px; width:675px; Height:auto; Z-index:1; border:1px solid #000; Overflow:auto; } --> </style> </pead> <body> <div id= "Layer1" ></div> <label> <inpu T type= "button" Name= "Submit" value= "in the following load news" onclick= "executequery (' Layer1 ', ' http://www.jb51.net ')"/> </ Label> </body> </ptml>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]