当前位置:主页 > TAG标签 > javascript实例教程
  • 实现在状态栏中显示滚动数据程序代码 日期:2011-05-24 13:51:42 点击:186 好评:2

    script language=Javascript !-- var x = 0 var speed = 120 var text = 欢迎登陆物流管理系统 var course = 120 var text2 = text function Scroll() { window.status = text2.substring(0, text2.length) if (course text2.length) { setTimeout(Scroll2(), speed) } else { text2 = ...

  • 实现”返回上一页”功能(不刷新页面)[适合用于不操作数据的返回] 日期:2011-05-24 13:50:27 点击:334 好评:2

    private int iCount = 0;//纪录页面请求 if (ViewState[Count] == null) iCount = 0; else iCount = (int)ViewState[Count]; iCount++; ViewState[Count] = iCount; Response.Write(scriptwindow.history.go(- + iCount + )/script);...

  • 实现JS数值自动计算程序代码 日期:2011-05-24 13:49:23 点击:304 好评:2

    前台 数值1:asp:TextBox ID=TextBox1 runat=server/asp:TextBox br / 数值2:asp:TextBox ID=TextBox2 runat=server/asp:TextBox br / 合计:asp:TextBoxID=SumTextBox runat=server/asp:TextBox js function Sum() { var num1=document.getElementById(TextBox1).value; var num2=docu...

  • js数据验证(正则表达式)大全 日期:2011-05-24 13:40:55 点击:341 好评:4

    整数 var num=/^(-|\+)?\d+$/ 大于0的整数 var num=/^\d+$/ 负整数 var num=/^-\d+$/ 数字(包括小数)var num=/^\d+(?=\.{0,1}\d+$|$)/ 正整数 var num=/^[1-9]+[0-9]*]*$/ 电话 var cellphone=/^([\d-+]*)$/; 判断是否为数字 isNaN(num) 由非a-Z或者是A-Z的字字母组成 var zim=/[^a-zA-Z]/g input onblur=if(/[^a-zA-...

  • JS特效围绕鼠标的立体旋转文字代码 日期:2011-05-15 19:41:23 点击:512 好评:2

    html head title网页特效|zhixing123.cn|---围绕鼠标的立体旋转文字/title meta content=text/html; charset=gb2312 http-equiv=Content-Type meta content=Microsoft a href=http://www.ttjcw.net/html/wangyesheji/FrontPage/index.html target=_self class=innerlink...

  • 有点像蜘蛛侠的鼠标特效代码 日期:2011-05-15 19:38:35 点击:191 好评:0

    html head title网页特效|zhixing123.cn|---有点像蜘蛛侠的鼠标/title /headBODY !--将以下代码加入HTML的Body/Body之间-- STYLE .disableHscroll{ width:100%;overflow-x:hidden;overflow-y:scroll; } v\:* { BEHAVIOR: url(#default#VML) } /STYLESCRIPT var defaultcolor=#999999 var lineweighth...

  • js跟随鼠标的棉花糖特效代码 日期:2011-05-15 19:37:08 点击:217 好评:2

    HTMLHEADTITLEJS特效|zhixing123.cn跟随鼠标的棉花糖/TITLE META content=text/html; charset=gb2312 http-equiv=Content-Type SCRIPT language=JavaScript !-- function MM_goToURL() { //v3.0 var I, args=MM_goToURL.arguments; document.MM_returnValue = false; for (i=0; i(args....

  • 经典js特效慢慢爬向鼠标的蚂蚁代码 日期:2011-05-15 19:35:51 点击:166 好评:0

    html head FCK:meta http-equiv=Content-Type content=text/html; charset=gb2312 / title---爬向鼠标的好多蚂蚁/title /head body style type=text/css .ant { height: 16px; position: absolute; visibility: hidden; width: 16px; } /style SCRIPT LANGUAGE=JavaScript var dir = /...

  • js特效鼠标感应图像大小代码 日期:2011-05-15 19:34:16 点击:158 好评:0

    html head FCK:meta http-equiv=Content-Type content=text/html; charset=gb2312 / title鼠标特效鼠标感应图像大小/title /head body script language=JavaScript1.2 function expand() { if (smallslot.width=102) { x=window.setTimeout('expand()', 10) smallslot.width=smallslot.wi...

  • javascript经典特效-让鼠标下场雪代码 日期:2011-05-15 19:32:04 点击:256 好评:4

    html head meta http-equiv=Content-Type content=text/html; charset=gb2312 title网页特效让鼠标下场雪,想不到啊/title /head body STYLE TYPE=text/css !-- BODY{overflow:scroll;overflow-x:hidden;}.s1{position : absolute; font-size : 12pt; color : blue; visibility: hidden;}.s2...

推荐内容