用JavaScript检查大写键(Caps Lock)是否打开的脚本
在用户遇到需要输入密码的页面时候,密码中是否有大写字母?大写键(Caps Lock)是否打开?如果能给用户以提示,岂不是更好?
下面的示例代码给出了方法,必要的说明代码当中都有注释。 问中知识点:event.keyCode 和 event.shiftKe...
在用户遇到需要输入密码的页面时候,密码中是否有大写字母?大写键(Caps Lock)是否打开?如果能给用户以提示,岂不是更好?
下面的示例代码给出了方法,必要的说明代码当中都有注释。 问中知识点:event.keyCode 和 event.shiftKe...
JavaScript的核心之一ECMAScript的语言特性和Java、C、Perl都有许多相似之处,其中不少特性都是从这些语言借鉴而来,同时它们之间也存在许多差异。下面列举一些ECMAScript的基本特性。
--和Java一样,ECMAScript区分...
Description
Demonstration script that displays the various colors -- and their related color index -- available when programmatically controlling Microsoft Excel. Script Code 复制代码 代码如下:set...
很漂亮,比较适合女性一类比较温馨的网站 漂亮的下拉框 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]...
一、用htc实现。 eye.htc <public:attach event="onfocus" onevent="example()" /><script language="javascript">function example(){this.blur();}</script>
<style> a {behavior:url(eye.htc)} </style>
二...
Demonstration script that adds a picture (C:/Scripts/Logo.jog) to a Microsoft Word document复制代码 代码如下:Set objWord = CreateObject("Word.Application") objWord.Visible = True Set objDoc = objWord....
Demonstration script that retrieves service data from a computer and then displays that data in a formatted table in Microsoft Word. 复制代码 代码如下:Set objWord = CreateObject("Word.Application") o...
Demonstration script that displays formatted data in a Microsoft Word document. 复制代码 代码如下:Set objWord = CreateObject("Word.Application")
objWord.Visible = True Set objDoc = objWord.Documents...
Demonstration script that retrieves service information from a computer and then displays that information in tabular format in Microsoft Word.复制代码 代码如下:Set objWord = CreateObject("Word.Applic...
Demonstration script that retrieves network adapter data from a computer, displays that data in a Microsoft Word document, and then saves the document as C:/Scripts/Word/Testdoc.doc. 复制代码 代码如...
Demonstration script that creates and displays a new Microsoft Word document.复制代码 代码如下:Set objWord = CreateObject("Word.Application") objWord.Visible = True Set objDoc = objWord.Documents.Add(...
Demonstration script that uses Microsoft Word to locate all the .mp3 files stored on drive C of the local computer复制代码 代码如下:Set objWord = CreateObject("Word.Application") Set objDoc = objWord....
Demonstration script that opens and prints and existing Microsoft Word document. 复制代码 代码如下:Set objWord = CreateObject("Word.Application") Set objDoc = objWord.Documents.Open("c:/scripts/invent...
Create a SQL Server database.复制代码 代码如下:DB_SIZE_IN_MEGABYTES = 5 strDBServerName = "."
Set objSQLServer = CreateObject("SQLDMO.SQLServer") objSQLServer.LoginSecure = True objSQLServer.Connect...
Converts time in seconds to hours, minutes, and seconds复制代码 代码如下:intTotalSecs = 15438 intHours = intTotalSecs / 3600 intMinutes = (intTotalSecs Mod 3600) / 60 intSeconds = intTotalSecs Mod 60...
Sample script that displays all of the users in a given SQL Server DB.
Supported Platforms
SQL Server 2000 Yes
Script Code
复制代码 代码如下:strDBServerName = "." strDBName = "ScriptingGuysT...
Sample script that deletes a SQL Server database.
Supported Platforms
SQL Server 2000 Yes
Script Code
复制代码 代码如下:strDBServerName = "." strDBToDelete = "ScriptingGuysTestDB"
S...
New Document ul{ list-style:none; } a{ padding-left:1.5em;font-size:12px;height:23px;line-height:23px;color:gray;text-decoration:none; } a:li...
/** * 取得鼠标坐标 * @return Position */ function getMouseLocation(){ if(ns4||ns6){ mouseX = e.pageX; mouseY = e.pageY; } else{ mouseX = event.x + document.body.scrollLeft; mouseY = event.y...
Demonstration script that allows you to enter a file name in a File Save dialog box, and then saves a sample text file (consisting entirely of the current date) under that file name.
Supported Plat...
Demonstration script that displays a File Open dialog box (open to the folder C:/Scripts), and then echoes back the name of the selected file. Supported Platforms
Windows Server 2003 No
Windows...
List the Stored Procedures in a SQL Server database.
Supported Platforms
SQL Server 2000 Yes
Script Code
strDBServerName = "." strDBName = "Northwind"
Set objSQLServer = CreateObject("SQLDM...
Returns a list of software that was installed on a computer using Windows Installer. This information is then written to a text file. This script requires both Windows PowerShell and the corresponding...
Display SQL Server Login Mode.
Supported Platforms
SQL Server 2000 Yes
Script Code
SQLDMOSecurity_Integrated = 1 SQLDMOSecurity_Mixed = 2 SQLDMOSecurity_Normal = 0 SQLDMOSecu...
SCA Ad Image Process [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]...