IE is a different type of browser, but the solution is quite simple. When using Firefox and Safari, you can use the setArribute method of the element to set the class attribute of the element. IE is a different type in the current browser, but the
Tips for using jquery element selector 1. Starting from $
$ Should be familiar with prototype,
Prototype: var element = $ ('eleid ')
Jquery: var element = $ ('# eleId ')
DOM: var element = document. getElementById ('eleid ')
The above three options
This stuff makes me dizzy. FF, there is no force download problem. Author: xling
First, check the download of the xls file:
// Header ("Cache-Control: public ");
Header ('content-type: application/vnd. ms-excel ');
Header ("Content-Disposition:
The start date of the current week, that is, the date from Sunday to Saturday.
script printWeek (); script [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
Anyone who has some experience knows that Jscript has limited efficiency after all. It is very slow to use regular algorithms to search for data in arrays. For example, in a data array containing 500 strings, we want to find a specified character
No matter what programs we use, we often use js code. We recommend that you add them to your favorites so that you can use the things you often learn when you are new to school ~
When TextStraem is implemented, the code used to identify the file encoding is VBS. However, in JScript, there are no functions such as ASC and binary data cannot be processed, therefore, a special method is required to obtain the encoding
You can press the key on the keyboard to display the keyboard action and the keyCode value.
function init () {document. onkeydown = showKeyDown document. onkeyup = showKeyUp document. onkeypress = showKeyPress} function showKeyDown (evt) {evt =
The JScript8.0VBArray object provides access to the Visual Basic Security array. VarName = new VBArray (safeArray)
Parameters
VarName
Required. Variable name allocated by VBArray.
SafeArray
Required. VBArray value.
Remarks
The safeArray
Mouse control, empty color blocks do not let Blue blocks touch it. It's a good javascript game to see how long it will take. If you want to write a game using js, refer to it, the Code should be written by foreign people by dragging the Red Square
Use js to call flash and remove code for the virtual border effect
The Code is as follows:
Function tmh _ make_ad_fodder (src, width, height){Src = src. replace ("","");Var TEMP_IMAGE = '';Var TEMP_FLASH ='+ 'Codebase = "http://download.macromedia.
3D effects produced by jsvml
rotate left pause rotation right rotation script var q = 40; var r = (q * 3.1415926) /180 var v = new Array () var l = new Array () v [0] = "0,400, 0" v [1] = "100,350, 15 "v [2] =" 200,400, 0 "v [3]
JavaScript Cookies use Cookies. We already know that there is a cookie attribute in the document Object. But what is Cookie? "Some websites store some information on your hard disk with small text files, which are called cookies ." -- MSIE help. In
Common JavaScript form verification set
JavaScript Form Verification age
The JavaScript form verifies the age and determines whether an input value conforms to the age by using a regular expression.
// Check the age
Function isAge (str ){
Var
You can see what JSON is and what JSON is.
JSON (Javascript Object Notation) is a lightweight data exchange format. Easy to read and write. It is also easy to parse and generate machines. It is based on a subset of Javascript Programming Language,
Uninterrupted rolling JS packaging Class, basically all the rolling effects can be achieved, too strong/* MSClass (Class Of Marquee Scroll General uninterrupted rolling JS encapsulation Class) Ver 1.6 *\
Production Time: (Ver 0.5)
Release date:
A simple bug that occurs when the flash method is called by JS conforming to web standards is updated by Microsoft XP. It means that the flash of pages inserted in the traditional webpage creation mode cannot be browsed normally, when the page is
The compatibility of dom and xml node access in javascript recently solved the problem of browser compatibility. With the help of our predecessors, I made some progress and wrote some code below, I think it will be more useful
The Code is as
Javascript implements the binary search method. Generally, binary code is used in int ..... in js, a-z may be used more flexibly, or pinyin may be used... or ......
However, it is worth pondering whether the following process is worthwhile to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service