JavaScriptÅжÏCheckBoxListÖеÄÏîÊÇ·ñÑ¡ÖÐ
/*¼ì²éÊÇ·ñÑ¡Öи´Ñ¡¿ò2010Äê3ÔÂ6ÈÕ10:36:48*/
function checkSelect(id, msg){
var checks = $(id).getElementsByTagName("input");
var flag=false;
if(checks.length!=null){
for(var i=0;i<checks.length;i++){
if(checks[i].type=="checkbox" && checks[i].checked==true){
flag=true;
}
}
}
if(!flag){
return confirm(msg);
}
return true;
}
Ô´´ÎÄÕ£¬×ªÔØ×¢Ã÷£¡
Ïà¹ØÎĵµ£º
ÀûÓÃjsÀ´¶¯Ì¬´´½¨±í¸ñÓÐÁ½ÖÖ¸ñʽ£¬appendChild()ºÍinsertRow¡¢insertCell()¡£Á½ÖÖ·½Ê½Æäʵ²î²»¶à£¬µ«µÚÒ»ÖÖÓпÉÄÜÔÚIEÉÏÓÐÎÊÌ⣬ËùÒÔÍƼö´ó¼ÒʹÓõڶþÖÖÁË£¬Ö±½Ó˵°É¡£
1¡¢inserRow()ºÍinsertCell()º¯Êý
insertRow()º¯Êý¿ÉÒÔ´ø²ÎÊý£¬ÐÎʽÈçÏ£º
insertRow(index)£ºindex´Ó0¿ªÊ¼
Õâ¸öº¯Êý½«ÐÂÐÐÌí¼Óµ½indexµÄÄÇÒ»ÐÐÇ ......
//̽²âͼƬÊÇ·ñ´æÔÚ
function IsExist(url)
{
x = new ActiveXObject("Microsoft.XMLHTTP")
x.open("HEAD",url,false)
x.send()
return x.status==200
}
ÅжÏijһ¸öÍøÂçµØÖ·µÄͼƬÊÇ·ñ´æÔÚ£¬Èç¹û´æÔÚ£¬¾Í»á·µ»Øtrue ,²»´æÔھͷµ»Ø false~~~~ ......
ÈÕÖ¾ÔÎÄ£ºhttp://zzgziyu.blog.sohu.com/109589244.html
<script>
("<html
xmlns:v><style>v\\:*{behavior:url(#default#VML)}</style>")
var
ct1=new ct()
function ct(){
="green,yellow,red,blue,gray,purple".split(",")
&nb ......
ת×Ô£ºhttp://www.cnblogs.com/greki/archive/2009/06/02/1494863.html
ÆäËü·½Ê½£º¹¤³§·½Ê½£¬¹¹Ô캯Êý·½Ê½£¬ÔÐÍ·½Ê½¶¼¸÷Óи÷µÄ´óȱÏÝ£¬ÕâÀï¾Í²»Ò»Ò»½éÉÜÁË£¬ÏëÁ˽âµÄ¿ÉÒÔÈ¥¿´Ò»ÏÂÕâ±¾Öø×÷µÄµÚ3Õ½ڡ£
1. »ìºÏ¹¹Ô캯Êý/ÔÐÍ·½Ê½
function Car(sColor, iDoors, iMpg) {
this .color = sColor;
this ......
<style>
ul,li{margin: 0; padding: 0;width:100%;}
</style>
<script language="javascript" type="text/javascript">
function checkword()
{
var wordvalue=document.getElementById("word").value.toLowerCase();
var alltxt="admin¹ÜÀíÔ±|appleÆ»¹û|allÈ«|big´ó|b ......