I recently studied the "rhinoceros book 6th". After reading the ElementContentasHTML section, I want to start writing something to record 1. innerHTML
Everyone must be familiar with this, read and write, and modify the element content quickly and
Compile js on the page of iframe to create a div for expanding and shrinking the animation effect in the parent window (without changing the iframe parent window code)
The Code is as follows:
String query = request. getParameter ("query
I originally wanted to use json format, but either there are duplicates or nesting, so I use the object nested array tips:
The concat and push methods of arrays.
The main differences between the two are:
Concat is a connected array and does not
Because we cannot obtain the size of the entire page and the size of the current page in any way, the only way to create a loading progress bar is to simulate it. So how can we simulate it? Because we cannot obtain the size of the entire page and
In the DOM operation, createElement is used to create a new node, while createDocumentFragment is used to create a document fragment. Most of the files that can be searched on the Internet use createDocumentFragment mainly because it is not allowed
Image downgrading is generally used for product display. As a front-end, some common effects on the Internet must be implemented. You cannot do it because the company is not ready to use it.
The Code is as follows:
Image speed reduction
Do not fix the length of each scroll. You can directly obtain the image width as the scroll length. In this way, when there are many places on your website that need this effect, a function can solve it.
The Code is as follows:
Function
JS is just a language that supports object-oriented programming. Through OO, we can make our code organization more humane. However, unlike traditional programming languages, the base and class have no class concept and no member access modifier.
I wrote a small effect for my friend. After clicking the label, the label will change color and add a cross image. Then, click the label to restore the image to its original state. For details, click the result description below: prevent events from
When we add mouseover and mouseout to a dom, that is, the jquery hover event. If the dom has a child element, the mouseout event is triggered when you move the cursor over the child element, however, in actual situations, we do not want to trigger
JQueryload method usage collection. For more information about jquery, see. The complete format for calling the load method is: load (url, [data], [callback]), where
Url: the address of the file to be imported.
Data: an optional parameter. Because
The JQueryClone template is used to display product information. You can modify the td in the template to determine how many items are displayed in each row. The product information is simulated using JSON data.
If you click the same product
For more information about Prototype Template, see. Anyone who has used Prototype knows that there is a class called Template. The usage example is as follows:
The Code is as follows:
Var str = '# {what} may have gone, but there is a time of #
The JS Code in the head will be read before the page is loaded. The JS Code in the body will be read after the whole page is loaded. What is the difference? Let's take a look at an example:
A list of level-2 cascade dynamic drop-down lists with
JQuery crawls the RSS on the blog homepage and directly saves the code to a text document. You can view the result by changing the suffix to html:
Implementation Code:
The Code is as follows:
Untitled document
Title
Time
Js to obtain the implementation code of the browser's visible area size. For more information, see. Test example:
The Code is as follows:
Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
You need to display a lot of images in the list. The image height and width are the same. You need to align style = "vertical-align: bottom;" at the bottom, online Search is implemented using js, and a code is found. The test fails. The main reason
Js function code that obtains the size of the scroll bar. For more information, see. This is a simple record.
Create a nested node, let the outer node generate a scroll bar, and then use offsetWidth-clientWidth to obtain the scroll bar width. To
Today, we will go to ASP. NET using jQuery. the Jcrop plug-in allows you to select images. If you want to select which part of the beauty you have the right to decide, I can't care about it. In general, the principle is very simple. The general
For details about how to use jQuery1.6, refer. MakeArray: function (array, results) {// convert an object similar to an array into a real JavaScript array. Results is an optional parameter.
Var ret = results | []; // results is the array for storing
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