A simple example of jquery's implementation of the pop-up layer mask effect
This article describes a simple example of how jquery implements the pop-up layer mask effect. For more information, see.
The Code is as follows:
<Input type = "button" value = "Advanced Search" id = "click_test4"/> ";
Var content4 = "<center> Advanced Search </center> <form action ='' method = 'post' id = 'formusersupersearch'>"
+ "Username: <input type = 'text' name = 'username' id = 'username'>"
+ "<Br/> email: <input type = 'text' id = 'email '/>"
+ "<Br/> unit: <input type = 'text' id = 'unit '/>"
+ "<Br/> tel: <input type = 'text' id = 'tel'/>"
+ "<Br/> mobile phone: <input type = 'text' id = 'mobile'/>"
+ "<Br/> <input type = 'button 'onclick = 'usersupersearche () 'value = 'cancel'/> <input type = 'click' onClick = 'usersupersearch () 'value = 'OK'/>"
+ "</Form> ";
T $ ('click _ test4'). onclick = function (){
// Among them, click_test4 is the above button id
// Content4 indicates the content above the div to be displayed.
TINY. box. show (content4, 0,350,250, 0 );
};