序号操作分类IE(6.0)FireFox(2.0)Mozilla(1.5)当前浏览器备注1"."访问tag的固有属性OKOKOKOK 2"."访问tag的用户定义属性eg:<inputtype="checkbox"myattr="test">OKNONOOK可以用getAttribute函数替代3obj.getAttribute访问tag的固有属性OKOKOKOK 4obj.getAttribute访问tag的用户定义属性eg:<inputtype="checkbox"myattr="test">OKOKOKOK 5document.all访问document的所有子元...
http://www.jb51.net//article/16319.htm
页面效果如下:代码也贴出来跟大家分享:[html]<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/><title></title...
http://www.jb51.net//article/16313.htm
<display-name>defaultroot</display-name><servlet><servlet-name>debugjsp</servlet-name><description>AddedtocompileJSPswithdebuginfo</description><servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class><init-param><param-name>...
http://www.jb51.net//article/16312.htm
[code]<html><head><title>拼图</title><style>td.numTd{width:20px;height:20px;}div.numDiv{width:100%;height:100%;background-color:#000;color:#FFF;text-align:center;vertical-align:middle;}</style><script>varcurrPos=9;functionmove(event){switch(event.keyCode){case...
http://www.jb51.net//article/16311.htm
效果如图所示:分享代码喽:[html]<html><head><title></title><scriptLANGUAGE="JavaScript"> <!--varglobalLineId_1=1;varendLineId_1=5;varglobalLineId_2=1;varendLineId_2=5;varglobalLineId_3=1;varendLineId_3=5;varcurrTab=1;functionswitchShow(isWrite,lineId,tabId){varinputText=document....
http://www.jb51.net//article/16310.htm
[html]<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/><title>麦鸡的TAB</title><style...
http://www.jb51.net//article/16303.htm
1、在tomcat下针对旧域名做个虚拟主机首页为index.jsp,404错误页面为unfind.jsp首页使用301转向,有利于搜索引擎优化<%response.setStatus(301);response.setHeader("Location","http://***.com");response.setHeader("Connection","close");%>unfind.jsp判断旧页面应该转向的新页面地址,没有则跳到新的页面,这样以前的外链就不受影响了<%@pagelanguage="java"contentType="text/html;charset=u...
http://www.jb51.net//article/16302.htm
functioncheckIdcard(idcard){varErrors=newArray("验证通过!","身份证号码位数不对!","身份证号码出生日期超出范围或含有非法字符!","身份证号码校验错误!","身份证地区非法!");vararea={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北",43:"湖南",44:"广东",45:"广西",46:"海南",50:"...
http://www.jb51.net//article/16296.htm
[code]functionempty(v){switch(typeofv){case'undefined':returntrue;case'string':if(trim(v).length==0)returntrue;break;case'boolean':if(!v)returntrue;break;case'number':if(0===v)returntrue;break;case'object':if(null===v)returntrue;if(undefined!==v.length&&v.length==0)returntrue;for(varkinv){re...
http://www.jb51.net//article/16290.htm
下面是css2selector的语法,当然很多浏览器只是支持其中的一部分,Prototype中的Selector主要支持tag选择器、class选择器和id选择器,还有属性(attribute)选择器,基本上包含我们平时所用的所有类型ThefollowingtablesummarizesCSS2selectorsyntax,详细的可以看http://www.w3.org/TR/REC-CSS2/selector.html:PatternMeaningDescribedinsection*Matchesanyelement.UniversalselectorEMatchesanyEelement...
http://www.jb51.net//article/16284.htm
[html]<html><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"><title>可填可选的下拉框</title></head><body><inputtype="text"style="width:180px;height:20px;margin-right:-5px;margin-top:-1px;border-right:0px"name="txt"><divstyle="position:a...
http://www.jb51.net//article/16279.htm
