The jquery blog still has a 3D map, and Firefox Google IE has been done, and the rest is still ie6.To ensure quick launch, you have to select CSS hackBecause some Div widths are determined based on the screen width Js.Dumb, even CSS hack is not neat.
1 both methods are String object methods.
2 substr (START, length): returns a substring of the specified length starting from the specified position;
Substring (START, end): returns the substring at the specified position in the string object.
Today, Baidu Knows That someone asked how to use JavaScript to disable the page right-click.
Write
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Document. oncontextmenu
=
1. Create an object and add the document
Javascript: var para = Document. createelement ('P'); document. Body. appendelement ('P'); // append the P elementThe lastchild subnode of the body. If you want to insert the newly created P element to an
Script
Type
= "Text/JavaScript"
>
Function Moveend (OBJ ){OBJ. Focus (); VaR Len = obj. value. length; If (Document. Selection ){ VaR Sel = obj. createTextRange ();Sel. movestart ('character ', Len );Sel. Collapse ();Sel. Select ();} Else
gb2312 Unicode Conversion Tool
Unicode Conversion Tool
usage:
enter Chinese text in the text box below and press "convert" to convert it to a Unicode character.
press "Restore" to restore it to simplified Chinese.
Parentelement obtains the parent object in the object hierarchy.
Parentnode obtains the parent object in the document level.
Childnodes obtains the set of HTML elements and textnode objects that are directly descendant of a specified object.
1. Verify the string consisting of 1 to 20 digits: var regular =/^ [0-9] {} $ /;
2.G goes down. I is case insensitive.
VaR DATA = "123123 ";
VaR recat =/123/GI; alert (recat. Test (data); // true
Test: var recat =/CAT/g;
Every time you
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Script Type
=
"
Text/JavaScript
"
Language
=
"
Javascript
"
>
Function
Getdatetime (){
VaR
Vbegindate
=
I. If statement
Example:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
--
Javascript Learning
--
%>
Script
Type
= "Text/JavaScript"
Language
= "JavaScript"
>
/
From nine JavaScript gotchas, the following are nine traps that JavaScript is prone to mistakes. Although it is not a very profound technical problem, please note that it will make your programming easier, that is, make life easier. I will give some
Javascript memory leaks
1. What is memory leakage?
Memory leakage means that the memory allocated to the application cannot be re-allocated, even if the memory is no longer used. Normally, the garbage collector recycles DOM elements and event
When the access pressure increases after a web project is launched, the processing speed is often much slower than that in the test environment. When a user clicks the page control and submits a request for half a day, the user repeatedly clicks the
1. Determine whether the select option contains an item with value = "paravalue"2. add an item to the select option3. delete an item from the select option4. Delete the selected items in the SELECT statement.5. Modify the text of value = "paravalue"
Today I have studied the scroll bar event, which I can see without worry. By the way, I will record it @
For example, to make a floating advertisement effect, the principle is to set the position of a timer 0.1 s detection layer and specify it to
PreviousArticle"DebuggingJavascript/VB ScriptScriptProgram(IEArticle)"This section describes howIEDebug the script program. During routine maintenance of the operating system, we sometimes write some small script programs to simplify system
I often see why Baidu gets 0 for cliengheihgt, where is the difference between clientheight and offsetheight? Why are you always confused when you encounter such problems, the reason is that they do not know their attributes,When creating an HTML
Creating your own JavaScript Form Verification plug-in may be a tedious process involving planning, development, and testing. If noThe necessary knowledge of javascript can lead to setbacks and waste of time.In this articleArticle, I found 10
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.