In the last chapter I introduced the masking page to add a section of the area Edit module, this chapter will introduce the parent page to show the mask layer, pop-up Translucent state dialog. dialog is the child page that pops up, Div.
The effect
jquery to achieve the perfect center of the pop-up layer effect
Copy Code code as follows:
Showdiv ($ ("#pop"));
function Showdiv (obj) {
$ (obj). Show ();
Center (obj);
$ (window). Scroll (function () {
Center (obj);
});
$ (window).
"Window.location.href", "location.href" is this page to jump
"Parent.location.href" is a page jump from the previous layer
"Top.location.href" is the outermost page jump
An example is provided:
If A,b,c,d is Jsp,d is C iframe,c is B iframe,b
What's constructor?
Simply understood, constructor refers to the object's constructor. Take a look at the following example:
Copy Code code as follows:
function Foo () {};
var foo = new Foo ();
alert (foo.constructor);//foo
1. Check to see if php_pdo.dll exists in the PHP extension library (when you call MSSQL, you also need php_pdo_mssql.dll; Php_pdo_mysql.dll when calling MySQL).
2. Open the PHP.ini configuration file and add:
Specifying an extension
In the PHP5.0 version, the definition rules for the 4.0 version of the constructor are also compatible. If 4.0 constructors and __construct () functions are defined at the same time, the __construct () function takes precedence.
In order for the
Let's look at a picture first:
Explain:
Core (ECMAScript): Defines all objects, attributes, and methods of a scripting language
Document Object Model (DOM): HTML and XML application interfaces
Browser object Model (BOM): Access to the browser
This should be the last part of the series, if not unexpectedly.
The third part of the effect has basically satisfied most of the needs. Therefore, this part of the bill can only be added to the sub-item. Don't say much nonsense, or continue to blog.
How to convert the following two-dimensional array into a one-dimensional array.
Copy Code code as follows:
$msg = Array (
Array
' id ' => ' 45 ',
' Name ' => ' Jack '
),
Array
' id ' => ' 34 ',
' Name ' => ' Mary '
)
True, the reason is right, but what I am going to say today is another reason.We know that PHP to determine whether a file is loaded, it is necessary to get the opened_path of this file, meaning that, for example:
Copy Code code as follows:
The use of upload classes is simple, if it is the first time to use the upload feature friends need to be aware of the HTML submission Form properties in the form to add enctype properties, such as:
Copy Code code as follows:
Document.cookie= "userid=828";If you want to store more than one name/value pair at a time, you can use a semicolon plus a space (; ) separated, for example:Document.cookie= "userid=828; Username=hulk ";You cannot use semicolons (;), commas (,),
Copy Code code as follows:
by Ppchen
var a = ten, b = 2;
A = a + B;
b = a-b;
A = A-b;
Copy Code code as follows:
by Mr Sima
var a = 10000,b=245
A = A^b;
b = b^a;
A = a ^b;
Copy Code code as follows:
by
The function on the network already has this function, is realizes with the pure JS. However, it was found in the project that this function was not compatible with Firefox, and I rewrote this method.
Copy Code code as follows:
In fact, said disable is not completely disabled, the back key in the browser defaults to click the Back button, as long as the normal text input can also be used, in other cases the BACKSPACE key is banned. See jquery Implementation code:
Copy
Topic:Squares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings in his ' Toilet series ' (where he had to use his toilet paper to draw on, for all O F His paper is filled with squares and
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