With the rise of third-party browsers represented by Firefox, our website cannot be just ie any more.
Code Browsers other than IE often fail to run normally or encounter errors. So here we will introduce how to improve our JS so that it can be more
Speaking of JS object-oriented, we have to mention prototype, the JS built-in attribute (Note: Prototype is not prototype here. JS), which can dynamically add certain attributes to an object. What I want to do now is try to makeCodeTo achieve public,
Function:
The table that reads the database content. the Data Reading method is ajax, And the paging method is also. the code is not well written. haha. for reference by some ajax learners. if there is any problem, please follow up and correct it. I
This article describes the JS Access Dom node method. Share to everyone for your reference, specific as follows:
Find and Access nodes
There are a number of ways you can find the elements you want to manipulate:
By using the getElementById () and
Use the js regular expression to verify the mobile phone number, email address, and zip code. If you want to verify your mobile phone number, you can refer to it for reference. (11 digits are entered at the beginning of "13" and "158,159)
The Code
The setCapture function is used to send subsequent mouse events to this object. releaseCapture is used to return the mouse events, which are handled by documents, windows, and objects. This ensures that the drag process will not be disturbed by
Even though it's time to use long string, dull, and different branch code to handle different browsers, occasionally, it is necessary to make some simple differentiation and target detection to ensure that a piece of code can run properly on the
This article mainly discusses two modules used to build real-time cross-source communication: Cross-document message communication (CrossDocumentMessaging) and XMLHttpRequestLevel2. Through these two modules, we can build Web applications for secure
Test environment: IE6, ie9, FirefoxJquery reference address:1. IFRAME frameworkPage example: The parent page contains two child frameworks: ifr1 ifr21) parent page calls child pagesA. The parent page obtains the text box in the ifr1 framework and
JavaScript DOM events (notes), javascriptdom
Chapter 3 event stream
1-1. Event bubbling: events are initially received by the most specific elements (the node with the deepest nesting level in the document;Then, the node (document) is uploaded to
In this article
Article The author introduces the differences between 7 JavaScript codes in IE and Firefox.
1. CSS "float" Value
The most basic syntax for accessing a given CSS value is: object. style. property, replace the value with a
I. Question proposal
Due to the overall layout and design needs, we often create master pages to achieve the uniformity of the entire website. Recently, due to the need for uniformity, I applied all the pages of the original project to the master
Verification of mobile phone numbers (starting with 13 and starting with 158,159, 11 digits in total)Copy codeThe Code is as follows:Var re;Var ss = document. getElementById ('textbox3 '). value;Re =/^ (13 [0-9] {9}) | (15 [89] [0-9] {8}) $/If (re.
In this article, the author introduces the differences between 7 JavaScript codes in IE and Firefox.1. CSS "float" Value The most basic syntax for accessing a given CSS value is: object. style. property, replace the value with a connector using the
I did nothing yesterday. I wrote a digital puzzle game in JS to entertain myself. Unfortunately, the reverse order number problem has not been solved, and sometimes it cannot be solved. Sorry.
The Code is as follows:
Puzzles ScriptVar currPos =
During registration, the number of days of the month changes with the change of the month. This small function is used in many places!
the number of days of a month changes with the month
PHP code
[Php] // onchange eventFor ($ I = 1; $ I {Echo "
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
//
VaR Reg =/^ (\ D +) | ([A-Z] +) $/g filters out one or more numbers from the beginning to the end, or one or more 26 letters
//
VaR
Php + js + mysql-like webQQ-& amp; lt; 3 & amp; gt; month days change with month. During registration, the number of days of the month changes with the change of the month. this small function is used in many places! The number of days in May
I have read the online trial part of this book. I used JavaScript to rewrite the C # source code in this book.
Chapter 1 source code rewriting in section 1.1:Code
Code highlighting produced by Actipro CodeHighlighter
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.