Generate a QR code image from a string. If you want to include a QR code, you can add a small log in the middle of the generated QR code. The specific implementation is as follows, interested friends can refer to a string (can be Chinese, transcode
We need to use the setInterval or setTimeOut Function to implement regular page Jump in js. Of course, we can also use the page meta implementation. The following code is implemented using js.
Example 1:
The Code is as follows:
The metro effect is certainly not unfamiliar to everyone. The following describes how to implement it in jquery. Don't miss it for new users. 1.The labels refer to this reference to use metrojs.css, jquery. js, and metro. js. The Code demo is as
Js processes common operations such as insert, modify, delete, and string comparison in json format. The following are five examples, interested friends can learn about common operations such as js processing of json format insertion, modification,
Automatically wrap English characters and truncate strings using js scripts. This method is applicable to ie6, ie7, and firefox. If you cannot use CSS control to force wrap, you can try
The Code is as follows:
Continuous English characters in
This article introduces the example code of adding the mouse intermediate function mousewheel in Jquery. For more information, see
The Code is as follows:
(Function ($ ){Var types = ['dommousescroll ', 'mousewheel'];$. Event. special. mousewheel =
If you want to display the currency data in a certain form on the page, you must first format it. The following describes the specific formatting code. If you are interested, refer
The Code is as follows:
Function formatCurrency (num ){Var sign =
Js closes the browser window without a prompt box. Supports Internet Explorer 6 +, Firefox, Google, and other browsers. The following example describes the specific implementation methods in detail. If you are interested, refer
Close the browser
The code in this js file implements the [input automatic search prompt] function. For example, if you enter some characters in the search box of Baidu or google, some prompts will be displayed in the following pull list form, improving the user
What should I do to maximize the pop-up window regardless of the browser settings? The following describes how to change the browser window size from the default size to our own settings. When a new window is opened, some users want to maximize the
There are a variety of methods to read URL parameters, but they are similar. The following describes how to use jquery to read URL parameters. If you are interested, you can practice it.
The Code is as follows:
$ (Document). ready (function (){
Array definition and sort method are quite common in use. The following describes the definition of Array and the sort method. The example Array is equivalent to the ArrayList in java.
Definition method:
1: Use new Array (5
) Create Array
Jquery allows you to change the color of a table in turn. Click the selected row and move the mouse over the color change. The Demo code is provided. If you like Jquery, you can use Jquery to change the color of a table. Click the selected row, the
JavaScript has only one numeric type Number, and all numbers in Javascript are represented in IEEE-754 standard format. The precision of floating point numbers is not unique to JavaScript, because some decimal places indicate that the digits are
When the text box gets the focus, a floating layer is displayed below the text box. Click the text box to hide the floating layer. The following describes how to solve the problem between the text box and the hidden layer when you click the mouse,
The following describes how to use js to implement snowflake falling. If you need it, you can refer to the snowflake floating effect written in html5 canvas and js today. Share:
The Code is as follows:
ScriptFunction start (){Var array = new
When the image size is small, the actual size is displayed. When the image size exceeds the div size, the image automatically adapts to the div size. The following is an example, I hope it will help you to place an image in the fixed-size p. When
Hiding a modal window is a good solution. It is used to process interface elements that are not special and necessary to appear on a webpage. Let's share with you how to use the jQuery plug-in leanModal to create a Regular Modal window.
Hiding modal
I recently wrote a JavaScript framework and found that many of the details are not enough. So I began to focus on some tips for JavaScript to improve efficiency. I would like to share with you here, if you are interested, you can refer to the
This article lists some DOM element attributes and methods used to process and traverse XML documents and W3CDOM attributes and methods used to dynamically create content. If you have any requirements, refer to them, we hope to help you with the DOM
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.