Before we introduced a jquery and CSS3 implementation of the cool menu navigation. This is a navigation menu developed by jquery. Suitable for the background of the personal User Center of the portal site. The effect and beauty are very good. Let's
Copy Code code as follows:
function Isnum ()//Judge keypad input number
{
var str= (Window.event.keyCode);
if (str>105 | | str{
if (str!=8)
{
Window.event.returnvalue=false;
Return
}
}
}
function Isnumup ()//To determine the main
Like a table in a desktop program dragging a table header, when the mouse hovers over the header border line, the mouse becomes the shape that represents drag left and right, and then dragging the mouse, a vertical bar appears in the table and the
This function is now widely used, if the page is relatively high, when the scroll bar dragged down to the bottom of the page, the sidebar will appear a fixed following the browser Div box, is the idea is this: first get the div need to follow the
In fact, Ztree official website has a detailed API documentation, all the official online instructions, I just combine the practice of summarizing a few commonly used ztree features.
(The syntax structure of Ztree is based on key-value
Background
I want the perfect picture news rotation effect:
1. Have news picture, have news title, have rotate index
2. The mouse has not moved to the index, the picture automatically switches
3. Move mouse over index, display existing picture,
I. The operation of a compound selector on a checkbox
You need to have the Type checkbox and the "available" element set to "selected"
Method ① using the attribute filter selector [type= ' checkbox '] and [disabled!=disabled]
The range of the consortium
Range is used to represent the user's selection area, which is defined by two boundary positions, and the position is composed of its container and offset, called container and offsets. The following is a simple
Software development is the actual data additions and deletions to check, JavaScript front-end development is no exception. Today I learned the simple use of the jquery framework. It then uses it to implement simple additions and deletions, and then
Copy Code code as follows:
HTML structure to display support line wrapping in the form of a string
function tohtmlstring (HTMLSTR) {
Return Totxt (HTMLSTR). replace (/\\;|\r\n|\n/g, "");
}
HTML structure to the form of a string display
Explain or the example code with annotation form, here make a small directory:
JS code Pre-resolution principle (including three paragraphs);
function correlation (including function argument, call mode with parameter function,
Definitions and usage
The replace () method replaces some characters in a string with some other characters, or replaces a substring that matches a regular expression.
Grammar
Stringobject.replace (regexp/substr,replacement) parameter
A URL, the Uniform Resource Locator, is a common resource identifier URI.
Because a valid URI cannot contain certain characters, such as spaces, you cannot access a valid resource if the URI is not encoded using the corresponding encoding function (
When you load a list, you want to select the first one by default. Top_menu is the UL ID
Through $ ("#top_menu Li:first") can get to the UL under the first Li tag. And then you can use
For example, modify attributes: $ ("#top_menu Li:first"). attr
Here we only discuss the browsing scenarios that support concurrent downloads, which are roughly divided into two categories, one in the order added to the DOM tree and one in the order in which they are downloaded; So if there is a dependency
So, after thinking carefully, write down this article, please heroes to shoot bricks.
Generally known:
Null = = undefined
But:
Null!== undefined
So what's the difference between the two?
Null
This is an object, but is empty. Because it is an object,
Placeholder is one of the attributes of html5, with a slightly different display effect in different browsers (modern browsers that support HTML5):
In Chrome (v31.0.1650.63 m), Firefox (v21.0), 360 security (v6.3 speed mode), when the input column
Both of these parameters are required, and the replacement of the replace () method can be a function rather than a string. In this case, each match calls the function, and the string it returns is used as the replacement text. The first parameter
There are a lot of this and $ (this) introduction on the Web, most of which just sort out the point of this and $ (this), but it has an application place and cannot generalize. When you call a member function in jquery, this refers to the DOM object.
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