好看的php提示弹窗,漂亮的jquery提示效果(仿腾讯弹出层)
body {background: #ffffff; color: #444;}
a{color: #09d; text-decoration: none;border: 0;background-color: transparent;}
body,div,q,iframe,form,h5{margin: 0;padding: 0;}
img,fieldset { border: none 0; }
body,td,textarea {word-break: break-all;word-wrap: break-word; line-height:1.5;}
body,input,textarea,select,button { margin: 0; font-size: 12px; font-family: Tahoma, SimSun, sans-serif;}
div,p,table,th,td { font-size:1em; font-family:inherit; line-height:inherit;}
h5{ font-size:12px;}
function zOpenD(){
var diag = new Dialog("Diag1");
diag.Width = 900;
diag.Height = 400;
diag.Title = "彈出窗口示例";
diag.URL = "http://www.html.org.cn/";
diag.ShowMessageRow = true;
diag.MessageTitle = "彈出窗口示例";
diag.Message = "在這兒你可以對這個窗口的內容或功能作一些說明";
diag.OKEvent = zAlert;//點擊確定后調用的方法
diag.show();
}
function zOpen(){
var diag = new Dialog("Diag2");
diag.Width = 900;
diag.Height = 400;
diag.Title = "彈出窗口示例";
diag.URL = "http://www.html.org.cn/";
diag.OKEvent = zAlert;//點擊確定后調用的方法
diag.show();
}
function zOpenInner(){
var diag = new Dialog("Diag3");
diag.Width = 300;
diag.Height = 100;
diag.Title = "彈出窗口示例";
diag.innerHTML='
直接輸出html,使用dialog.innerHTML。'diag.OKEvent = function(){diag.close();};//點擊確定后調用的方法
diag.show();
}
function zOpenEle(){
var diag = new Dialog("Diag4");
diag.Width = 300;
diag.Height = 100;
diag.Title = "彈出窗口示例";
diag.innerElementId="forlogin"
diag.OKEvent = function(){$E.getTopLevelWindow().$("username").value||alert("用戶名不能為空");$E.getTopLevelWindow().$("userpwd").value||alert("密碼不能為空")};//點擊確定后調用的方法
diag.show();
}
function zAlert(){
Dialog.alert("你點擊了一個按鈕");
}
function zConfirm(){
Dialog.confirm('警告:?',function(){Dialog.alert("");});
}
| 用戶登陸 | |
| 用戶名 | |
| 密 碼 | |
效果圖:
總結
以上是生活随笔為你收集整理的好看的php提示弹窗,漂亮的jquery提示效果(仿腾讯弹出层)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: matlab中基于cdma的锁相环,答辩
- 下一篇: ios 给网页传值_iOS学习——页面的