Real-time countdown of webpages, accurate to seconds. Similar to the principle of Countdown to days, you can refer to the next useful js countdown! Real-time countdown of webpages, accurate to seconds, is the same as the principle of days countdown.
Native javascript seamless scrolling currently supports vertical and horizontal scrolling. The following is a good example. You can refer to the currently supported vertical and horizontal scrolling.
Http://lgyweb.com/marScroll/
The following
Recently, we often use the tab, So we wrote a simple tab, written in pure css + js with style. You can refer to the tabs that are frequently used recently, so I wrote a simple one. If you want to use them later, copy one directly and change it
This article mainly introduces how to obtain cookies through JS settings. If you need cookies, you can refer to the JavaScript authoritative guide and the materials collected on the Internet during project development, two Methods for setting and
Directly call window. print (), but after printing, the font is always reduced to 1, and then directly target & quot; _ blank & quot; to print it normally, the following code implements a small function of printing web pages today and directly calls
This article mainly introduces how to solve the jquery plug-in conflict. If you need a friend, please refer to it. I hope to help you with the following example, the jquery and jquery plug-ins lightbox are used for image floating amplification, so
This article mainly introduces examples of js Implementation of date cascade effect. If you need a friend, please refer to it and hope to help you.
The Code is as follows:
Select Year Select month Select day
This article mainly introduces the sample code for js to judge the Constellation Based on the date. If you need it, you can refer to it and hope to help you.
The Code is as follows:
Function xingzuo (){Var start = 1901, date = document.
During project development, arrays often contain a lot of repeated content, that is, dirty data removal operations. This article focuses on several methods of array deduplication. For more information, see.
1.According to the principle that keys in
Responding to a bunch of similar events, but each event has different parameters. In this case, you can use JavaScript to bind events to the for loop. Below is a good example, you can refer to the following: Sometimes we have to respond to a bunch
This article mainly introduces how javascript automatically adds links to text url addresses. If you need them, you can refer to the implementation of automatic adding of URL addresses as follows: Detection and replacement.
Detection
"Detection" is
In js, the most common method for getting the decimal point and the two decimal points is the rounding function. I have previously introduced this common function in js, which is useful here, next, let's take a look at some methods to get the float
This article mainly introduces how JavaScript can control the style name writing. If you need it, you can refer to the CSS syntax (Case Insensitive) JavaScript syntax (case sensitive)
Border
Border-bottom borderBottom
Border-bottom-color
The requirement is a string. If you want to delete the last character of the string, such as "1, 2, 3, 4, 5,", how can you use javascript to delete the last? The following three methods are provided:
1. Substring is used most, which is also used
This article focuses on window. openernull; window. close (), only supports IE6 does not support IE7, IE8 solution is introduced, need friends can come to refer to, hope to help you window. opener = null; window. close (). Only IE6 does not support
This article introduces the map method implemented by js. The example is as follows.
The Code is as follows:
/**** Description: map method implemented by js.* @ Returns {Map}*/Function Map (){Var struct = function (key, value ){This. key =
This article mainly introduces JavaScript web page positioning in detail. For more information, see document. body. clientWidth.
Visible area height: document. body. clientHeight
Visible area width of the webpage: document. body. offsetWidth
The introduction of JS file IE6 reports an error or a lack of objects. Many friends may have encountered this problem because of file encoding, the following describes a good solution to the problem of "Introducing the JS file IE6 error ".
Problem
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.