用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需刷新才能執行]...