想用html和JS写一个简单的窗口弹出,但是点了按钮没有反映,求大神帮忙解决

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



Windowout * {font-size:12px; font-family:"宋体",Arial; font-weight:normal; color:#0066FF;} var oPopup = window.createPopup; function prepareHelp(){ document.styleSheets[0].rules[0].style.cursor = "help"; } function do_onclick(){ if(document.styleSheets[0].rules[0].style.cursor != "help";){ alert("我被鼠标单击了~"); } else{ var oBody = oPopup.document.body; oBody.style.backgroundColor = "lightyellow"; oBody.style.border = "solid black 1px"; oBody.innerHTML = "aaaaaa"; oPopup.show(event.x+15,event.y+15,180,85,document,body); document.styleSheets[0].rules[0].style.cursor = ""; } }






<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<br> .windowout{<br> font-size:12px;<br> font-family:&quot;宋体&quot;,Arial;<br> font-weight:normal;<br> color:#0066FF;<br> } <br>
<pre><code> var oPopup = window.createPopup; function prepareHelp(){ document.styleSheets[0].rules[0].style.cursor = &quot;help&quot;; } function dosome(){ if(document.styleSheets[0].rules[0].style.cursor != &quot;help&quot;){ alert(&quot;我被鼠标单击了~&quot;); } else{ var oBody = oPopup.document.body; oBody.style.backgroundColor = &quot;lightyellow&quot;; oBody.style.border = &quot;solid black 1px&quot;; oBody.innerHTML = &quot;aaaaaa&quot;; oPopup.show(event.x+15,event.y+15,180,85,document,body); document.styleSheets[0].rules[0].style.cursor = &quot;&quot;; } } </code></pre> <p>




你可以试试上面的这段html

图片说明

图片说明