JavaScript»ñȡѡÖÐÏî
<script type="text/javascript">
function show(){
var ListUtil=new Object();
var ListUtil.getSelectedIndexes=function (oListbox){
var arrIndexes=new Array;
for(var i=0;i <oListbox.length;i++){
if(oListbox.options[i].selected){
arrIndexes.push[i];
}
}
return arrIndexes;
};
var oListbox=document.getElementById("selAge");
var arrIndexes=ListUtil.getSelectedIndexes(oListbox);
alert("There are"+arrIndexes.length+"option selected."+"The options have the indexes"+arrIndexes+".");
}
</script>
</head>
<body onload="show()">
<select name="selAge" id="selAge" size="3" multiple="multiple">
<option value="1" >18-21 </option>
<option value="2" selected="selected">22-25 </option>
<option value="3" selected="selected">26-29 </option>
<option value="4">30-35 </option>
<option value="5">Over 35 </option>
</select>
</body>Õâ¶Î´úÂëÔõô±¨´ímissing:before statementºÍshow
is not defined
Ïà¹ØÎÊ´ð£º
ÈçÌ⣬лл
1.ÓÃactiveX
2.Ó÷þÎñÆ÷.´«µÝÃüÁî¸ø·þÎñÆ÷,·þÎñÆ÷À´ÔËÐÐ
javascript²»¿ÉÒÔÂð
jsÊǿͻ§¶ËÖ´Ðеģ¬È¨ÏÞÓÐÏÞ£¬¿ÉÒԵϰ£¬²¡¶¾ÂúÌì·ÉÀ²
Êǰ¡£¬Èç¹û¿ÉÒԵϰ£¬ÄÇ JavaScript Ö´ÐÐÒ»¸ö format c: ......
ºǫ́£º
protected void form_ini2(string id)
{
//´¦Àí´úÂë
}
ǰ̨£º
<script language="javascript">
function DbClickEvent(a ......
ÊÖÍ·ÓÐÒ»¸öÍøÕ¾£¬ÍêÈ«ÊÇÓÃjavascriptºÍhtmlдµÄ£¬Ö»ÓÐÒ»¸ö default.htmlÒ³Ãæ£¬È»ºó×ó²àÓÐÏÂÀ²Ëµ¥£¬ÖмäÏÔʾÄÚÈÝ£¬ÏÖÔÚµÄÎÊÌâÊÇÏ£ÍûÔÚnews²Ëµ¥µã»÷ºóÏÔʾµÄ¶«Î÷Äܹ»·ÖÒ³£¬µ«ÊÇ·ÖÒ³¼¼ÊõÊÇÒª¸Ä±äurlµÄ£¬ÕâÑùµÄ»°Õû¸öÒ³ ......
ÓÃjavascript½«Êý¾Ýµ¼³öµ½Îı¾Îļþ(txt)ÖÐ..
Ê×ÏȼÙÉèÒѾÓÐÁËÐèҪдÈëµÄÎı¾ÄÚÈÝ var txtContent ="ÐèҪдÈëµÄÄÚÈÝ";
ÏÖÔÚÐèÒªÓÃjavascript½«ÄÚÈÝдÈëtxtÎļþ(Õâ¸ötxtÎļþ²»´æÔÚ,ÐèÒª´´½¨)ÖÐ,È»ºóдºÃÖ ......
<html>
<head>
<title></title>
</head>
<body>
<font color="#0000FF"><b>ÇëÔÚÎı¾¿ò1ÖÐÊäÈëÎÄ×Ö£º</b>
<form>
<input ......