1. Get the elements of the parent page in the IFRAME child page:
A>window.parent.document This is the object that gets the parent page document;
B> If you want to get the method in the parent page JS: window.parent.xxxx (); xxxx () is the method;
In JS, we often use the IFRAME to do system framework, in the child page also, the parent page between the value transfer is a problem, the following is JS get the parent form and subform Object JS:1. Get the elements of the parent page in the
mode one, using event bubbling delegate to the parent node of the list to handle the way:
Copy Code code as follows:
var ulobj = document.getElementById ("Myul");
Ulobj.onclick = function (event) {
var TG = Event.target;
var
Chained callChained calls are actually just a syntax trick. It allows you to reuse an initial operation to achieve the purpose of expressing complex operations in small amounts of code. The technology consists of two parts:
A factory that creates
Operation Effect:
=================================================
Part of the code:
=================================================
Of course, you should have this table in your database, otherwise you have no data ... ^_^
Copy Code
Copy Code code as follows:
function Getnowformatdate ()
{
var day = new Date ();
var year = 0;
var Month = 0;
var day = 0;
var currentdate = "";
Initialization time
Year = Day.getyear ()//There is a bug in Firefox that shows 108 in the
By default, JavaScript is loaded synchronously, which is blocked when JavaScript is loaded, and the following elements wait for JavaScript to load before reloading, and for some of the less significant JavaScript, if placed in the header can cause
Ajaxfileupload is a jquery plugin for uploading files asynchronously.
Send a don't know what version of up, later do not have to look everywhere.
Syntax: $.ajaxfileupload ([options])
Options parameter Description:
1, URL upload processing
Practical jquery Paging Effect plug-in jquery.pagination.js, based on the jquery implementation, according to the Pageselectcallback function callback call through AJAX call Dynamic Data, the current method is to generate JSON data to the JS file,
Tooltipster is a lightweight jquery tool tip plugin that can quickly help you generate beautiful tooltips.
1, loading jquery and plug-in files including Tooltipster
After you download tooltipster, move tooltipster.css and jquery.tooltipster.min.js
HTML code
cloud-Habitat Community
Special effects Tutorials Resources Templates Information
JS Code
CSS Code
body,h1,h2,h3,h4,h5,h6,p,ol,ul,li,dl,dt,dd{padding:0;margin:0;}
Li{list-style:none;
jquery form Jqtransform, a very practical jquery plugin, automatically beautify your entire form form, including select Drop-down box, text box, radio, check box, button, of course, do not support the input File file selection box, This can refer to
jquery left and right sidebar navigation menu plugin pageslide, the current more popular navigation menu display form, especially in the mobile phone or touch screen page, the effect is good, support the direction of custom display, menu content can
Practical jquery web elements fixed navigation top plug-in stickup, simple jquery plug-ins, the implementation of Web page elements fixed, such as navigation fixed to keep it always visible in the view, in the One-page page can see the effect, we
This example describes the implementation of the jquery Simple tab switching effect. Share to everyone for your reference. as follows:
select title 1 select title 2 select title 3 select title 4 select title 5 Selection 1 select
If the page is too long and needs to be navigated in the page, we typically set the ID in the target, such as , and then on the current page a link address setting such as: Click to point to the bottom , so click on the link will immediately go to
Always want to do a check-in function, but Baidu did not have their own want, so on the Internet to find the material and then integrate their own before the plug-in layermodel their integration of a, everyone entertainment and entertainment is good!
Write a JS homemade scroll bar, first of all, take a look at the demo (click here) First
There are two demo, the black one on the right, is the more superficial code I started writing:
Copy Code code as follows:
var scrollself=
Copy Code code as follows:
var x, y;
When the demand is relative to the body for the obtained coordinate value, use:
function Positionbody (event) {
event = event| | window.event;
Obtaining the banner value relative to the body
"1, the most Basic JS Pop-up dialog box window code"
This is the most Basic JS pop-up dialog box, in fact, the code on a few words very simple:
Copy Code code as follows:
Because this is a javascripts code, they should be
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