jQuery插件-轻量弹出层-UIDialog
来源:互联网 发布:三星s8网络制式 编辑:程序博客网 时间:2024/05/21 11:20
id :null, // 需要赋值的ID
callOnOpen :null, // 弹出后调用方法
callOnClose:null, // 关闭后调用方法
eventType :null, // 事件类型 click,blur, change, dblclick, error, focus, load, mousedown, mouseout,mouseup
idContent :null, //需要添加的id
width :'auto', // 宽
height :'auto', // 高
title :'消息', // 标题
content :'测试内容' // 内容
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"xml:lang="en">
<head>
<meta http-equiv="Content-Type"content="text/html;charset=UTF-8"/>
<title>test</title>
<script type="text/javascript"src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<style type="text/css">
*{ margin:0; padding:0;}
body{font:12px/2 arial; background:#ccc;}
a{color:#0029c4;text-decoration:none;}
a:hover{color:#c00;}
.wrap{ border:2px solid #aaa; background:#fff; padding:20px;}
.ui-dialog{position:fixed;min-width:150px;background:#fff;overflow:hidden;z-index:99999;border:5pxsolid #767576;}
.ui-dialogh1{*margin-top:-3px;position:relative;text-indent:1em;padding:3px0;font-size:14px;font-weight:normal;background:#efefef;border-bottom:1pxsolid #ccc;-moz-user-select:none;-webkit-user-select:none;}
.ui-dialog h1.ui-close{position:absolute;right:10px;cursor:pointer;text-indent:0;}
.ui-dialog-body{ padding:10px;}
.ui-title{ border-bottom:1px solid #ccc; background:#f0f0f0;}
.ui-mask{position:absolute;left:0;top:0;z-index:77777;background:#000;filter:alpha(opacity=50);opacity:0.5;}
*html{background:url(*) fixed;}
*html body{margin:0;height:100%;}
.wrap{ width:500px; margin:40px auto;}
</style>
</head>
<body>
<div class="wrap">
<h2>特点:接口丰富、轻便、弹出层上层、单击遮罩层关闭。</h2>
<ol>
<li>
<h1>测试 $.fn.UIDialog调用,并弹出层上层</h1>
<ahref="javascript:void(0)">测试a链接1</a>
<table class="tab"style="display:none;">
<tr>
<th>用户名:</th>
callOnOpen :null,
callOnClose:null,
eventType
idContent
width
height
title
content
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml"xml:lang="en">
<head>
</head>
<body>
<div class="wrap">