JS自动格式化输入的数字/千位分隔符
- 15860
- 2009/12/22 14:07:41
以下为详细代码 <script> functioncc(s){ if(/[^0-9\.]/.test(s))return"invalidvalue"; s=s.replace(/^(\d*)$/,"$1."); s=(s+"00").replace(/(\d*\.\d\阅读全文
购物网上图片放大效果
- 15823
- 2009/12/22 14:07:41
以下为详细代码 <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <htmlxmlns="阅读全文
后台编辑源码里有行号
- 15908
- 2009/12/22 14:07:39
以下为详细代码 <tablecellpadding="0"cellspacing="1"class="table_form"> <tr> <tdwidth="486"> <textareaid='txt_ln'rows='30'cols=阅读全文
代码绝对精简的仿lightbox效果弹出层
- 16191
- 2009/12/22 14:07:38
以下为详细代码 <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <htmlxmlns="阅读全文
iframe框架自适应高度代码
- 23842
- 2009/12/22 14:07:34
页面代码: 程序代码<divstyle="border:1pxsolid#7e99c6"id="frameBox"><iframeid="frameWin"src="01.html"name="opWin"style="width:100%;height:100%"framebo阅读全文
网上购物车购物数量加减效果
- 19103
- 2009/12/22 14:07:34
以下为详细代码 网上购物车购物数量加减效果 <script> function$(e){ returndocument.getElementById(e); } functionabdc(){ varsl=$('shuliang').value; sl=pa阅读全文
仿taobao效果拼音字母检索功能
- 7033
- 2009/12/22 14:07:34
以下为详细代码 <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-loose.dtd"> <htmlxmlns="http://阅读全文
深山行者留言系统V2.3
- 11388
- 2009/9/26 20:31:14
更新地址:http://www.qwbm.com/book/200992620522434.html 深山行者留言系统V2.3更新内容 //////////////////////2009-9-27/////////////////////////////// 1.留言本增加置顶功阅读全文
radio单选按钮组选择详细
- 25118
- 2009/9/26 10:02:24
以下为详细代码 <title>radio单选按钮组选择详细</title> <SCRIPTLANGUAGE="JavaScript"defer> functioncheck(){ varr=newArray(); varobj=documen阅读全文
CSS+ul 实现的柱状图
- 7467
- 2009/9/21 8:36:45
以下为详细代码 <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <htmlxmlns阅读全文
optgroup 标签
- 15070
- 2009/9/19 8:49:25
optgroup标签作用:标签可以给select中的option进行分组,这在下拉项目很多的时候很有用,配合label标签给每组命名。你也可以像淘宝那样给每组用css定义不同的颜色。 以下为详细代码 <select> <optgrouplabel="自驾游">&阅读全文
设置两个未知高度的DIV保持等高
- 8153
- 2009/9/18 17:22:27
<scripttype="text/javascript">varmainCon=document.getElementById("mainr").scrollHeightvarsidebar=document.getElementById("mainl").scrollHeightla阅读全文
JavaScript max() 方法
- 8736
- 2009/9/18 17:16:47
定义和用法 max()方法可返回两个指定的数中带有较大的值的那个数。 语法Math.max(x...) 参数 描述 x 0或多个值。在ECMASCriptv3之前,该方法只有两个参数。 返回值 参数中最大的值。如果没有参数,则返回-Infinity。如果有某个参数阅读全文
DIV+CSS做的透明菜单兼容IE、FF等
- 20500
- 2009/9/18 17:13:53
.menucli{display:block;line-height:32px;position:relative;float:left;}/*关键部分*/ 以下为详细代码 <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//E阅读全文
javascri获取页面实际高度
- 9161
- 2009/9/12 9:29:21
以下为详细代码 <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <htmlxmlns="阅读全文
超级实用且不花哨的js代码大全( 7 )
- 6765
- 2009/9/4 8:31:08
弹窗代码汇总【0、超完美弹窗代码】功能:5小时弹一次+背后弹出+自动适应不同分辩率+准全屏显示 代码:<script>functionopenwin(){window.open(http://www.6882.com,"pop1","width="+(window.screen.wid阅读全文
超级实用且不花哨的js代码大全( 5 )
- 6904
- 2009/9/4 8:29:52
//判断键值 <html><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"><head><scriptlanguage="javascript">varie=naviga阅读全文
超级实用且不花哨的js代码大全( 4 )
- 8456
- 2009/9/4 8:29:02
//组件是否安装 isComponentInstalled("{6B053A4B-A7EC-4D3D-4567-B8FF8A1A5739}","componentID")) //检查网页是否存在 functionCheckURL(URL){varxmlhttp=newActiveXObje阅读全文
超级实用且不花哨的js代码大全( 3 )
- 8264
- 2009/9/4 8:25:26
//无模式的提示框functionmodelessAlert(Msg){window.showModelessDialog("javascript:alert(\""+escape(Msg)+"\");window.close();","","status:no;resizable:no;help:阅读全文
超级实用且不花哨的js代码大全( 2 )
- 9758
- 2009/9/4 8:24:11
高级应用(一) 页面跳转: window.location.href('地址') window.open('地址','_self')打开新窗口: window.open('地址','_blank') 只显示地址栏:window.open('地址','title','location=1,h阅读全文