Add in the HTML pages VBScript code
Related Tags:
SCRIPT Element for VBScript code will be added to the html pages.
<SCRIPT> Marker
VBScript code written in the pairs <SCRIPT> tags. For example, the following code for a test date of the transfer process:
<SCRIPT LANGUAGE="VBScript"> <! - Function CanDeliver (Dt) CanDeliver = (CDate (Dt) - Now ())> 2 End Function -> </ SCRIPT> Code are part of the beginning and end <SCRIPT> marker. LANGUAGE attributes for the designated use scripting language. The browser can use a variety of scripting language, it is necessary to specify the scripting language used. CanDeliver attention was embedded in the Notes function marking (<!-- and - ") in. This can not be identified to avoid <SCRIPT> marked browser will be displayed on the pages in the code.
Because of the example above is a generic function (not dependent on any form controls), could be included in the pages HEAD:
<HTML> <HEAD> <TITLE>Ordering</ TITLE> <SCRIPT LANGUAGE="VBScript"> <! - Function CanDeliver (Dt) CanDeliver = (CDate (Dt) - Now ())> 2 End Function -> </ SCRIPT> </ HEAD> <BODY> ...
SCRIPT block HTML pages can appear in any place (BODY head or in part). However, the best of all the general goal of script code on the HEAD section, in order to enable all placed on script code. This will ensure that the code in the body of the call before all script code has been read and decode.
These Rules a notable exception, in the form provided in the form of internal code to respond to objects in the incident. For example, the following examples in the form of embedded script code in response to a button click in the form events:
<HTML> <HEAD> <TITLE>Test button events</ TITLE> </ HEAD> <BODY> <FORM NAME="Form1"> <INPUT TYPE="Button" NAME="Button1" VALUE="click"> <SCRIPT FOR="Button1" EVENT="onClick" LANGUAGE="VBScript"> MsgBox "buttonisclick!" </ SCRIPT> </ FORM> </ BODY> </ HTML>
Most script code in the Sub or Function process, only to call it other code enforcement. However, VBScript code can be placed on the process, the block of SCRIPT. Such codes only in the implementation of HTML pages loading time. This can be loaded on the Web page or initialize data dynamically change the appearance of pages.
- Css code explain
- CSS code-switching function tab
- CSS code abbreviation skills zz
- Clever css debug code
- HTML and CSS pages prepared by the beautiful formal code
- CSS code attributes Encyclopaedia (HTML)
- CSS code abbreviation skills
- Js code and code folding effect css
- CSS simple picture-Daolian code
- CSS style definition of the rolling code
- Some commonly used CSS code
- The magic code - CSS filter trip
- Common CSS code
- Optimizing your CSS code
- Summary: A CSS code reference map
- CSS code-writing techniques commonly used
- CSS control ul code base
- How to Optimize your CSS code?
- CSS code structure of: the div and span!
- Css common code




