Powerful WEB development assistant FireBug (FirefoxPlugin)
Download: firebug1.0-beta.zip
What should I do? It's just a word ~ NND: the figure above is in the Ispect state. It is captured when the mouse moves. This is much more convenient than
Javascript reference object method 51js
==================
Reference Method on the same page:
1. Use id:
Link1.href
2. Use name:
Document. all. link1.href
3. Use sourseIndex:
Document. all (4). href // note that there are HTML, HEAD, TITLE,
Use js to get the object where the mouse is located
get the object where the mouse is located script table1 table2 table3 table4 table5 table6 : [Ctrl + A select all Note: If you need to introduce
You need to know some tips in JS (DHTML) that haven't updated the log these days. This article is just a bit of my own experience. I would like to give you some tips. If you have any questions, please leave a message below.
I. Equality Operators
Compatible with the knowledge required by Mozilla. I think I should take this item out first. I hope this will help you. I also thought about what to write. If there are any omissions, please note that I will add them.
Lists the differences between
Javascript has been using objects and arrays in javascript for more than three years, but it still has some details, such as objects and arrays, some basic operations are always used. This is a bad habit for me to learn-lazy. Many things only know
Test the compatibility of keyCode, which, and charCode in Keyboard Events
Test Results:
In IE:
> Supports keyCode.
> Which and charCode are not supported. Their values are undefined.
In Firefox:
> Supports keyCode. Except for function keys, other
Prototype1.5 related knowledge and others' notes have never had time to read prototype. Now it is ready and has been updated to 1.5 pre1, this is another shortcut to improve your JS capabilities.
1. What is Prototype?
Maybe you haven't used it.
The code in the cloud web advertisement prompts an error.
The Code is as follows:
Script var NowFrame = 1;Var MaxFrame =;Var bStart = 0;Function fnToggle (){Var next = NowFrame + 1;If (next = MaxFrame + 1){NowFrame = MaxFrame;Next = 1;}If (bStart
About javascript's "static Class & quot; (the following questions are only raised for javascript. Please note that if you have any questions, just laugh)
1. What is static or pseudo-static?
2. What is the syntax for writing static classes in
To achieve dynamic interaction between Web page information through JavaScript scripts, you must have more complex knowledge about Form and Frames.
I. Basic Form knowledge
The form object allows the designer to interact with client users using
Using TextRange to obtain the cursor position in the input box TextRange is an object used to represent text in HTML elements. Although we do not usually use this object, it is provided in IE4.0. However, the call methods provided by TextRange are
Example: Write as friendly Javascript code as possible when searching the Search Engine's robot, text/html has the highest degree of friendliness (except text/xml at present), while text/javascript is unfriendly. If robot wants to judge DHTML code,
Several nice functions in js $ ()
The Code is as follows:
Function map (a, f) {f ();}Function getRand (a, B){If (){B = B? B: 0;Return Math. floor (Math. random () * a + B );} Else{A = new Date ();Return d. getTime ();}}Function $ (a) {document.
Ad display judgment
Detection advertisement display judgment function seen from Sina
The Code is as follows:
ScriptPagepubtime = "2006-08-31 ";// Ad display judgmentFunction checkPubTime (){// Year, month, and dayDateTime = new Array
Document. all or document. getElementsByName?
The Code is as follows:
(Wuhen Note: document. all is a unique attribute of ie, not a World Wide Web Standard)When there are multiple widgets with the same name on the page, what do you do first?
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