JavaScriptÔõÑùд¹È¸èÊ×Ò³µÄ¡°¸ü¶à¡±
http://www.google.cn/
ÖеÄÄǸö¸ü¶àÓÃJavaScriptÔõôʵÏÖ?²»ÒªÓÃjQ.
HTML code:
<script type="text/javascript">
function showMenu(e) {
document.getElementById("subMenu").style.display = "block";
//·ÀֹʼþðÅÝ
if (e && e.stopPropagation)
e.stopPropagation();
else
window.event.cancelBubble = true;
return false;
}
document.onclick = function() {
if (document.getElementById("subMenu").style.display = "block") {
document.getElementById("subMenu").style.display = "none";
}
}
</script>
<a href="javascript:void(0);" onclick="showMenu(event)">¸ü¶à</a>
<div id="subMenu" style="position: absolute; display: none; border: 1px solid #ccc;">
<p>
<a href="#" onclick="alert(1)">menu1</a></p>
<p>
menu2</p>
</div>
·Ç³£¸Ðл£¬ÄÜ˵˵//·ÀֹðÅÝʼþµÄ×÷ÓÃÂð£¿
ʵÔÚÊÇ̫ǿÁË£¬Ð»Ð»£¡
²»·ÅÖÃðÅݵϰ¡£µã»÷¸ü¶à£¬ÏÈÕ¹¿ª£¬ÓÖÒòΪdocument.onclick¶ø¹Ø±ÕÁË¡£
1¥ǿ°¡¡£¡£Õæ¿ì
¶¥
Ïà¹ØÎÊ´ð£º
function check(){
if(document.form1.LXRMC.value=="" || document.form1.DZ.value=="" || document.form1.LXRMC.value==""
|| document.form1. ......
ÇëÎÊÔÚ¶Ô»°¿òÀïÄÚǶä¯ÀÀÆ÷¿Ø¼þ£¬´ïµ½¸úÍøÒ³½»»¥
Ïëͨ¹ýJavaScriptµ÷ÓÃC++º¯Êý ÐèÒªÍê³É Äö²½Ö裿
Çë°´²½Öè˵Ã÷¡£
C++½«º¯Êý·Åµ½ÄÄÀï ¹© JavaScript ²éѯ²¢µ÷ÓÃÄØ£¿
ËäÈ»Óд ......
ÎÒÐèҪдһ¶Î´úÂëÀ´¶ÁȡijÎļþ¼ÐϵÄÎļþ£¬Ö»ÐèÒª¶ÁÈ¡µ½Îļþ¼ÐÏÂËùÓÐÎļþÃû¾ÍºÃÁË£¡£¡£¡
Çó´úÂëÏÈ£¡£¡ÎÒ¶¼²»»á£¬ËùÒÔÒª´úÂëÁË¡£
¿Í»§¶ËµÄÎļþ£¬²»ÄÜÕâô×ö¡£
ÈçÃÏ×ÓËù˵£¬ÔÚ¿Í»§¶ËµÄJavaScriptÖÐÔËÐÐÎļþ ......
¶¨ÒåÒÔÏÂJavascript·½·¨
JScript code:
function onSubmit(actType)
{
form.type.value = actType;
}
ÓÐÒÔϰ´Å¥£¬µ÷ÓøÃJavaScript·½·¨
HTML code:
<html: button oncli ......
ÎÒ°ÑRADIOBUTTONLISTǶÌ×ÔÚGRIDVIEWÖÐ
ʵÏÖµ±µã»÷GRIDVIEWÍ·ÖеÄRADIOBUTTONLISTµÄijһÏîʱ
ϱßÐÐÖеÄRADIOBUTTONLIST Ò²ËæÖ®±ä»¯
·Ö²»¶à¡£¡£Ð»Ð»ÁË
ä¯ÀÀÆ÷»¹Ã÷åÛÓεġ£¡£Ð»Ð»ÁË
ÒýÓÃ
......