jquery点击按钮弹出层可放大居中关闭对话框代码



166 663 222



特效描述:点击按钮弹出层 放大居中 关闭对话框,点击按钮弹出对话框,可以拉伸,移动,关闭的对话框

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/jqpopup.css"/>

2. 引入JS

<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="js/jqDnR.min.js"></script>
<script type="text/javascript" src="js/jquery.jqpopup.min.js"></script>

3. HTML代码

<div id="sampleformdiv" style="display:none" title="1st jQpopup box">
	<div class="annotationName">描述</div>
	<div class="annotation">点击关闭该弹出窗口</div>
</div>
<div id="sampleformdiv1" style="display:none" title="模块选择器">
	<form method="post" id="butt" name="butt" action="">
		<input type="button" value="确定"/>
		<input type="button" value="取消"/>
	</form>
	<div class="sele">
		<select class="u">
			<option value="CMS">CMS</option>
			<option value="General" selected="">General</option>
			<option value="Else">Else</option>
		</select>
		<select class="u">
			<option value="CMS">CMS</option>
			<option value="General" selected="">General</option>
			<option value="Else">Else</option>
		</select>
		<select class="u">
			<option value="CMS">CMS</option>
			<option value="General" selected="">General</option>
			<option value="Else">Else</option>
		</select>
	</div>
	<table border="1" cellpadding="2" cellspacing="2">
		<tr>
			<td></td>
			<td>名称</td>
			<td>标签</td>
			<td>前缀</td>
			<td>...</td>
		</tr>
		<tr>
			<td><input type="radio" value="radio" name="r1" id="r1"></td>
			<td>分类控件</td>
			<td>2</td>
			<td>re</td>
			<td>222</td>
		</tr>
		<tr>
			<td><input type="radio" value="radio" name="r2" id="r2"></td>
			<td>分类控件</td>
			<td>2</td>
			<td>re</td>
			<td>222</td>
		</tr>
		<tr>
			<td><input type="radio" value="radio" name="r3" id="r3"></td>
			<td>分类控件</td>
			<td>2</td>
			<td>re</td>
			<td>222</td>
		</tr>
		<tr>
			<td><input type="radio" value="radio" name="r4" id="r4"></td>
			<td>分类控件</td>
			<td>2</td>
			<td>re</td>
			<td>222</td>
		</tr>
		<tr>
			<td><input type="radio" value="radio" name="r5" id="r5"></td>
			<td>分类控件</td>
			<td>2</td>
			<td>re</td>
			<td>222</td>
		</tr>
	</table>
</div>
<p><input type="button" class="stdbtn" id="open_btn" value="Click 1"/></p><br/>
<p><input type="button" class="stdbtn" id="open_btn1" value="Click 2"/></p><br/>
<script type="text/javascript">
$(document).ready(function(){
	$("#open_btn").click(function(){
		$("#sampleformdiv").jqpopup_open(this.id);
	});
	$("#open_btn1").click(function(){
		$("#sampleformdiv1").jqpopup_open(this.id);
	});
});
</script>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 弹出层拖动 窗口提示框 切换按钮 form表单 提示框/弹出层 单选 注册框 按钮控制 表单提交

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到