Jquery judges Javascript in IE6 Browser

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.

Differences between substring () and substr () methods in Javascript

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.

Browser-compatible JavaScript code for disabling right-click

  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 =  

Comparison of common JavaScript and jquery Methods

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

Javascript sets the focus position of the text box content (compatible with IE Firefox Chrome)-from the network

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

Javascript: gb2312 to Unicode-Form

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.

Javascript parentnode, parentelement, childnodes, children

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.

Javascript Regular Expression Learning

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

Get date interval in Javascript

Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Script Type = " Text/JavaScript " Language = " Javascript " > Function Getdatetime (){ VaR Vbegindate =

Javascript learning-If statement

I. If statement Example: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> -- Javascript Learning -- %> Script Type = "Text/JavaScript" Language = "JavaScript" > /

Nine traps of 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 leakage

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

Javascript prohibit right-click menu, copy, and select

Function key (){If (event. shiftkey ){Window. Close ();}// Disable shiftIf (event. altkey ){Window. Close ();}// Disable altIf (event. ctrlkey ){Window. Close ();}// Disable CtrlReturn false ;}Document. onkeydown = key;   Function nocontextmenu (

Avoidrepeatsubmit-avoid repeated requests from the client through JavaScript

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

Javascript key codes

Key Key code Backspace 8 Tab 9 Enter 13 Shift 16 CTRL 17 ALT 18 Pause/break 19 Caps Lock 20

Operate the Select Control in JavaScript (ADD, modify, delete, select, clear, and determine existence)

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"

Javascript follows the scroll bar to learn onscroll events

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

Debug the Javascript/VB script program (wscript)

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

Summary of page and block HEIGHT attributes in Javascript

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

Powerful JavaScript Form Verification plug-in

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

Total Pages: 5378 1 .... 1977 1978 1979 1980 1981 .... 5378 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.