先看看HTML代码:<textarea name="description" onkeyup="checkLength(this);"></textarea><br /><small>文字最大长度: 250. 还剩: <span id="chLeft">250</span>.</small>可以看出onkeyup是当用户离开键盘后触发的事件,传递的参数是this(也就是当前所在的文档区域)然后结合JS代码看一下:<script ...
http://www.jb51.net//article/15052.htm
于是把我的收集整理后发出来给大家共享一下。说明: 收集整理: 随风 @bbs.bathome.cn 2008-04-15 第一个代码 作者:Will Sort 出自:cn-dos 第二、三、四、个代码 作者:namejm 出自:cn-dos 第五个为 bat 结合 vbs 代码,作者及出处都不详。其中第一及...
http://www.jb51.net//article/14985.htm
<!--/*-------------------------------------------------------------------------------Description:一个用于定时重启或关闭计算机的小工具,适用于Windows 2K/XP/2003Author:十一狼Email:112183883@163.comQQ:112183883WebSite:http://www.w3cg.net/-------------------------------------------------------------------------------*/-...
http://www.jb51.net//article/14914.htm
ChassisTypes 属性可以告诉您,您使用的是笔记本电脑、台式计算机还是其他类型的计算机。哦,输入。以下脚本可以让您知道您使用的是哪种类型的计算机:[code]strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")&nb...
http://www.jb51.net//article/14875.htm
Dim returnSet R = CreateObject("WScript.Shell")return=MsgBox ("你确定要重起计算机吗?",vbokcancel+vbexclamation,"注意!")If return=vbok ThenR.run("Shutdown.exe -r -t 0")End if...
http://www.jb51.net//article/14814.htm
function CountStr(str1,str2) dim tmp,i,j if str1="" or isnull(str1) then j=0  ...
http://www.jb51.net//article/14448.htm
[html]<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t...
http://www.jb51.net//article/14302.htm
Function strnum(patrn, strng) Dim regEx, Match, Matches,xx xx=0 Set regEx = New RegExp regEx.Pattern = patrn regEx.IgnoreCase = True ...
http://www.jb51.net//article/13692.htm
<% '计算分页的几种方法 '// iRecordCount为要计算的页面总数 '// iRecordCount为记录集数 '// iPageSize为每页记录数 '// 一: If iRecordCount...
http://www.jb51.net//article/13667.htm
[html]<b begin=0;me.end id=me dur=0.1m t onbegin=if(t<4)alert('一个六秒'+(!t?'开始':'又过去')+'了!');t++ style=behavior=url(#default#time2)>Time</b>[/html]...
http://www.jb51.net//article/13651.htm
端口:0 服务:Reserved 说明:通常用于分析操作系统。这一方法能够工作是因为在一些系统中“0”是无效端口,当你试图使用通常的闭合端口连接它时将产生不同的结果。一种典型的扫描,使用IP地址为0.0.0.0,设置ACK位并在以太网层广播。端口:1 服务:tcpmux 说明:这显示有人在寻找SGI Irix机器。Irix是实现tcpmux的主要提供者,默认情况下tcpmux在这种系统中被打开。Irix机器在发布是含有几个默认的无密码的帐户,如:IP、GUEST UUCP、NUUCP、DEMOS 、TUTOR、DIAG、OU...
http://www.jb51.net//article/13224.htm
