The default nine Sudoku picture arrangement effect, when the mouse hovers over the picture, will drop a translucent mask from the top of the picture
At the same time there are some text introduction
How to use:
1, the head of the CSS style into
Sometimes the event is done, and the effect of canceling the event can be handled by some means. For example, bind () (Bind event) and Unbind () (remove events added through the Bind () method) to remove the effect of an event.
For example, one of
This article illustrates how jquery uses the Hide method to hide elements of its own usage and share them for everyone's reference. Specifically as follows:
The following JS code implementation lets the button click to hide itself
this
Using JS to calculate the distance between two points on the earth based on latitude and longitude
Recently used in accordance with the latitude and longitude calculation of the Earth's surface two distance between the formula, and then use JS to
Recently, a lot of broken things, for a long time did not come here to write the whimsical thing. But this morning I thought of a very interesting thing, so it took half an hour to simply think about it, and by the way write a little share.
When
Today, see some people in the group launched a network of all the previous interview questions, I have reproduced some before, just idle, pick a topic to do, practice a hand.
here are the following requirements:
1. Use of native code to achieve,
Today in the use of innertext encountered a compatibility problem, Firefox does not support InnerText method, check the next mdn, found that Firefox has a similar method, called textcontent, it and IE innertext similar, Is the method used to get
1. function declaration Type
Copy Code code as follows:
function foo () {
Code
}
In JS, functions are also objects, function objects are connected to Function.prototype (Function.prototype connected to Object.prototype)
2,
defining a Privileged method
The method defined by the This keyword inside the constructor can be invoked by the instantiated object inheritance.
Copy Code code as follows:
var Student = function (name) {
var _name = name; Private
The example in this article describes the jquery UI plug-in custom Confirm confirmation box method. Share to everyone for your reference. The specific analysis is as follows:
This code customizes a confirm confirmation dialog box effect through the
Copy code code as follows:
/*
Drag-and-drop process:
1, first click on the element you want to drag
2, the element under Click is selected, Move moves
3, when the mouse is bouncing Wait, stop the action
4, click
Bgstretcher (Background stretcher) is a jquery plug-in that allows you to add multiple background images to your Web page, and multiple background images can be automatically switched, while the background image size is adaptive to the size of the
We know that HTML pages are executed on the client side, so that the parameters must be obtained using client script (such as JavaScript), which differs from the server-side script fetching parameters.
The following JS code to get HTML page shape
This is a very powerful content switching plugin, it is based on jquery, it is fully responsive, support mobile devices, support mobile phone touch, keyboard page, it has built-in slide, video playback timer, it has a variety of modes: custom,
This article illustrates the global function usage of jquery plug-ins. Share to everyone for your reference. The specific analysis is as follows:
1, add a new global function
The so-called global functions, in fact, are the methods of the JQuery
First, use to get the selected value to determine the selected
Directly on the code, don't forget to refer to the jquery package
Copy Code code as follows:
jquery radio
Male
Very satisfied
Satisfaction
JS and jquery can get the width of the page elements, height and relative displacement values, so that they can convert or replace each other, and what are the differences in the wording? This article will be introduced in detail for you.
1.Js get
Method One:
$ (' input[type= ' file '] '). On (' Change ', function () {
var reg =/[^\\\/]*[\\\/]+/g;//Match the name and suffix of the file
var name = $ (this). Val (). replace (Reg, ' ");
var postfix =/\. [^\.] +/.exec
Rarely inserts a new style rule, today in order to temporarily resolve the page style problem, need to update a number of page styles, these pages are referred to a public JS, in order to facilitate, directly in this public JS inside the style sheet
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