One-layer locating-php Tutorial

Source: Internet
Author: User
Tags blank page
One layer is used to locate the problem and one background page. the inner blank page is displayed in an iframe. Now on the content page, add a floating layer (displaying the effect of waiting ). As a result, the layer only covers the content of the content page framework. I want to show how to overwrite the entire page (that is, the floating layer can overwrite content outside the framework. I want to write CSScode # load {padding: 10px; width: 600px; height: 30 to help locate a layer
A background page,
The inner blank page is displayed in an iframe.

Now on the content page, add a floating layer (displaying the effect of waiting ).

As a result, the layer only covers the content of the content page framework.

What I want to show is: overwrite the entire page (that is, the floating layer can overwrite content outside the framework ),

What should I do.

I want to write it like this.

CSS code
  #load{padding:10px; width:600px;height:300px; display:block;  position: absolute; top:50%; left:50%; margin-left:-300px; margin-top:-150px;}




JS is written in this way.

$ ("# Load" ).css ("display", "block ");
$ ("# Img_load") [0]. src = '/data/images/img_load.gif ';




------ Solution --------------------
Jquery uses p to pop up the plug-in directly. set the plug-in pop-up ratio... but I forgot the plug-in name.
------ Solution --------------------
JqModal
------ Solution --------------------
O (Partition _ tables) O haha ~, I have just worked on this project to give you some experience:

JQuery IFRAME

DOM method:

IFRAME under the parent window operation: window. frames ["iframeName" 2.16.doc ument

Or directly write frames ["iframeName" 2.16.doc ument

IFRAME operation parent window: paipaiparent.doc ument

Directly write parent.doc ument



Jquery method:

In the parent window, operate the elements in IFRAME: $ (window. frames ["iframeName" ].doc ument). find (": text ");

In the IFRAME field, select all input boxes in the parent window: optional (w.w.parent.doc ument). find (": text ");



Use find to find what you want.

To find the iframe of the same level, you can use $ (parent. frames ["iframeName"]). find ("xxxxxx ")



A careful friend can understand it. The principle is actually very simple, that is, converting $ (DOM object) into jquery object.

Example:
HTML code
  
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.