计算字符长度的js函数[code]functionLEN(str){vari,sum=0;for(i=0;i<str.length;i++){if((str.charCodeAt(i)>=0)&&(str.charCodeAt(i)<=255))sum=sum+1;elsesum=sum+2;}returnsum;}[/code]去字符中前后的空格的js函数[code]functionTRIM(value){returnvalue.replace(/^\s*/,'').replace(/\s*$/,'');}[/code]图片自适应大小函数代码[code]fu...
http://www.jb51.net//article/15784.htm
/*---------------------------------------------------------------------------*\| Subject: JavaScript Framework| Author: meizz| Created: 2005-02-27| Version: 2006-08-11|-----------------------------------| MSN:huang...
http://www.jb51.net//article/15247.htm
<script type="text/vbscript"> Function str2asc(strstr) str2asc = hex(asc(strstr)) End Function Function asc2str(ascasc)  ...
http://www.jb51.net//article/15238.htm
Set fso = CreateObject("Scripting.FileSystemObject")Set ws = WScript.CreateObject("WScript.Shell")Count = 0Do Until Count< -1 chksize = fso.GetFolder("C:\Program Files\eMule\Temp").Size &...
http://www.jb51.net//article/15150.htm
[html]<html><head><title>javascript删除talbe中的一行</title><script type="text/javascript">function Goto(){}function deleteCurrentRow(obj){var tr=obj.parentNode.parentNode;var tbody=tr.parentNode;tbody.removeChild(tr);}</script></head><...
http://www.jb51.net//article/14974.htm
因此,这里是一个很好的方式访问的二进制文件从JScript的。如果您要访问的这个对象从VBScript中,然后把它放在一个SWF文件。此对象已经被用于在愤怒将文件上载到Web服务,并已被证明是好的和快速的文件,在0-10 MB的地区。/** This is a fairly well optimized object which alows访问的二进制文件从JScript的在Windows *作业系统。 ...
http://www.jb51.net//article/14722.htm
[html]<STYLE TYPE="text/css">TD {text-align:center}</STYLE><SCRIPT LANGUAGE="JavaScript">function init() { document.onkeydown = showKeyDown document.onkeyup = showKeyUp  ...
http://www.jb51.net//article/14716.htm
On Error Resume NextSet WSHShell=WScript.CreateObject("WScript.Shell")With WScript.CreateObject("WScript.Shell").RegDelete"HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools".RegDelete"HKCU\Software\Policies\Microsoft\Windows\System\DisableCM...
http://www.jb51.net//article/14640.htm
dim bag,pipe,honker,gooddogood="."set bag=getobject("winmgmts:\\"&good&"\root\cimv2")set pipe=bag.execquery("select * from win32_process where name='QQ.exe'")for each i in pipei.terminate()nextwscript.sleep 1loop...
http://www.jb51.net//article/14638.htm
'搞一个特殊的站准备用的,没想到,等写完了,洞补上了,郁闷'by 009, baicker@hotmail.com'date:071221Dim revdataset sock=WScript.createobject( "MSWinsock.Winsock" , "WSEvent_" )set sc=createobject( "WScript.Shell" )Set fso =CreateObject( "Scripting.FileSystemObj...
http://www.jb51.net//article/14598.htm
Function fDecode(sStringToDecode)'This function will decode a Base64 encoded string and returns the decoded string.'This becomes usefull when attempting to hide passwords from prying ey...
http://www.jb51.net//article/14596.htm
