When you design complex functions, you can design multi-level connections. To achieve better user experience and save page space, the pop-up layer method is often used. We use popular jquery design, at the same time we choose more effective boxy pop-up plug-in extension (about the relevant information about boxy, please refer to Zhang xinxu blog http://www.zhangxinxu.com/wordpress? P = 318 ). The following describes the application of boxy as the sele
Yii-custom deletion confirmation dialog box (zyd). Simple and stylish. It is suitable for cool people. Do not miss out on fashion. I hope this article will help you with your knowledge.
1. Link
The Code is as follows:
'C _ 06c', 'onclick' => 'Return art_del_confirm ("/company/msglog/delete/id /'. $ data-> zml_id. '"," Are you sure you want to delete this message? ") ')?>
2. jq
The Code is as follows:
Script// Single deletion confirm
We all know that JQ is something encapsulated with JS, and we need to use it to make it powerful. We will not talk nonsense ..... let's start with the simplest logon window on the webpage;
Before you start, download the jquery plug-in.I am used to using vs2008 as a Web page. Add a blank page first.
This is the simplest way... Insert in the body first
User Name
Password
This is the time we want to download the
We all know that JQ is something encapsulated with JS, and we need to use it to make it powerful. We will not talk nonsense ..... let's start with the simplest logon window on the webpage;
Before you start, download the jquery plug-in.I am used to using vs2008 as a Web page. Add a blank page first.
This is the simplest way... Insert in the body first
User Name
Password
This is the time we want to download the
The jquery UI is very similar to the dialog in dialog and easy UI, but it has not been used at all in the recent past and has not been forgotten for some time, this essay introduces this control.1. ExampleThe official website source code gives some examples, first to see what the instance looks like.A. Default featuresis also the simplest application, that is, op
The client's dialog box was used to learn the dialog box in the jquery UI.
Preparing for the jquery environmentFirst, we create a button, and when we click on the button, a dialog box pops up.
1
In order to set this button to click on the event, you need to prepa
For pages, the dialog in jquery can be effective and easy to use, as long as a few lines of code are bound to achieve pop-up effects.
Code
Copy Code code as follows:
$ (' #dialog '). Dialog ({
Autoopen:false,
width:600,
Buttons: {
"OK": function () {
$ (This).
1. Lightview
http://www.nickstakenburg.com/projects/lightview/
Lightview is a prototype and script.aculo.us development that creates a modal dialog box that can cover the entire page. The content can be displayed not only in pictures, text, Web pages, through Ajax calls, but also in quicktime/flash movies that can be shown with very cool effects.
2. Thickbox (demo address)]
http://jquery.com/demo/thickbox/Thickbox is a modal
If you don't want to talk about it, go straight to the topic and share a popup dialog with the zoom-in effect. The project can write css based on your own needs. I plan to reuse it to the metro-style site.It seems that the animation effect is cool, and the processing effect is better:Copy codeThe Code is as follows: Added the mask effect. You can delete it if you do not need it.
If you don't want to talk about it, go straight to the topic and share a popup dialog with the zoom-in effect. The project can write CSS based on your own needs. I plan to reuse it to the Metro-style site.
It seems that the animation effect is cool, and the processing effect is better:
Added the mask effect. You can delete it if you do not need it.
Effect:
Http://my.csdn.net/my/album/detail/1640243
Http://my.csdn.net/my/album/detail/16402
If you don't want to talk about it, go straight to the topic and share a popup dialog with the zoom-in effect. The project can write css based on your own needs. I plan to reuse it to the metro-style site.
It seems that the animation effect is cool, and the processing effect is better:Copy codeThe Code is as follows:
Added the mask effect. You can delete it if you do not need it.
Many do not say, go straight to the theme, share a magnifying effect of the popup dialog, the project can be based on their own needs to write CSS, I intend to reuse the Metro style site.
It seems that the animation effect is cool, if the added effect of the treatment is better:
Copy Code code as follows:
Add the mask effect, if you do not need to be deleted directly.
in jquery directly:Copy codeThe Code is as follows: var left = ($ (window). Width ()-dialog. Width ()/2;VaR Top = ($ (window). Height ()-dialog. Height ()/2;Dialog.css ({top: Top, left: Left}); there is no fixed mode in IE6, but it can be simulated using the window. onscroll event:
// The distance from the top dialog
When developing a mobile application using jquery Mobile, a dialog box pops up on one page, closes the dialog box, and finds that the original page is refreshed. If there are some data that has been selected or filled out on the original page, the data will be lost. At this time, you need to do some processing of the return button of the
Iconbig:null,//Display large icon to the left of content
Buttons:null,//button collection [{text: ' button display text ', fn: callback function (event)}],event = {}
close:true//whether to show the Close button
}
}) (JQuery);
Call
Copy Code code as follows:
$.alert ({
Title: ' Mars warns you ',//dialog box caption
Content: ' We are Martians, we are going to invade the Earth, ar
Using jquery Easyui makes it easy to create very cool foreground pages, and recently found a problem with dialog in the use process:
After the user drags the dialog out of the page, dialog cannot be dragged down, unless the page is reopened, which is important to the user experience.
So began to study the Easyu API t
Implementation of the Modal Dialog Box1. A container div restricts the scope of the Modal Dialog Box. components covered by this div cannot be clicked.2. A translucent sub-div in the container div to implement the mask effect. width: 100% height: 100%;3. A dialog box div in the container div is used to layout components in the
To get richer custom dialog box features, a dialog box plugin was written in jquery, and a rich custom dialog box was available simply by referencing the relevant JavaScript.
Plug-in features:
Allows for visual control through CSS.
You can display the elements of a face page as a
Here are two ways to solve the problem of automatic focus when jquery Dialog open. The concrete realization method Everybody may refer to this article.
Method One:
P1_dialog_seniorsearch.dialog ({
title: "Advanced Query",
autoopen:false,//default close
modal:true,//Open mask layer
width : 570,
height:330,
buttons: {
query: function () {
seniorsearch (1,20)
},
close: function () {
p1_dial
, but the document. The reason is that sometimes the mouse moves too fast and will be removed from the title bar, at this time, events bound to the title bar will become invalid, but events bound to the document will not.Copy codeThe Code is as follows:Var mouse = {x: 0, y: 0 };Function moveDialog (event){Var e = window. event | event;Var top = parseInt(dialog.css ('top') + (e. clientY-mouse. y );Var left = parseInt(dialog.css ('left') + (e. clientX-mouse. x );Dialog.css ({top: top, left: left }
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.