复代码码 代码如下: <머리> 제목 없는 문서 <본문> <br><!-- <br><br>document.body.onload=adddiv; <BR>document.onmousedown=recordobj; <BR>document.ondblclick=dbclick; <BR>document.onmouseup=showselect; <BR>var starobj,isdb=false,allow=true; <br><br>function isallow() <BR>{ <BR>if(allow){ <BR>allow=false; <BR>alert('닫혀 있음'); <BR>} <BR>else{ <BR>allow=true; <BR>alert('열려 있음'); <BR>} <br><br>} <br><br>함수 dbclick() <BR>{ <BR>isdb=true; <BR>} <BR>함수 recordobj() <BR>{ <BR>starobj=event.srcElement; <BR>} <BR>function showselect() { <BR>var str=""; <BR>if(event.srcElement.tagName!="A"&&event.srcElement.tagName!="INPUT"&&event.srcElement==starobj&&!isdb&&allow) <BR>{ <BR>var oText=document.selection.createRange( ); <br><br>if(oText.text.length>0) <br>{ <br>str=oText.text; <br>oText.text="BuB" oText.text "EuE"; <br>} <br><br><br>oText.select(); <br>event.srcElement.innerHTML=event.srcElement.innerHTML.replace("BuB","<u style='FONT-WEIGHT: bold;COLOR: #ff3366'>").replace("EuE", "</u>"); <br><br>} <br><br>searchgoogle(str) <br>isdb=false; <br>} <br><br>function searchgoogle(str) <br>{ <br>var obj=document.getElementById("searchgoogle"); <br>if(str.length>0) <br>{ <br>obj.style.display="block"; <br>obj.style.position="절대"; <br>obj.style.zindex=999; <br>obj.style.posTop=document.body.scrollTop event.y-25; <br>obj.style.posLeft=document.body.scrollLeft event.x 5; <br>obj.style.widht=80; <br>obj.innerHTML="<a target=_blank href=http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=" str " style='BORDER-RIGHT: royalblue thin 단색; 테두리-상단: 로얄블루 얇은 단색; 테두리-왼쪽: 로얄블루 얇은 단색; 색상: #ffffff; BACKGROUND-COLOR : inactivecaption; 텍스트 장식: 없음'>검색하세요!</a>"; <br><br>} <br>else <br>{ <br>obj.style.display="none"; <br>} <br>} <br><br>function adddiv() <br>{ <br>var mobj = document.createElement("div"); <br><br>mobj.id="searchgoogle"; <br><br>document.body.appendChild(mobj); <br>} <br><br>//--> <br> qrasfdasfasfdasfsafasdfsafsafasdfasdfasd