jquery css3点击图标按钮动画弹出表单代码



199 792 265



特效描述:点击图标按钮 动画弹出表单,jquery弹出表单,动画表单,点击按钮弹出表单代码

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/Quttons.css">
<link rel="stylesheet" href="css/main.css">

2. 引入JS

<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="js/velocity.js"></script>
<script type="text/javascript" src="js/velocity.ui.js"></script>
<script type="text/javascript" src="js/Quttons.js"></script>

3. HTML代码

<div class="buttonCollection">
	<div class="qutton" id="qutton_upload">
		<div class="qutton_dialog" id="uploadDialog">
			<h2>上传</h2>
			<div class="urlField">
				<input type="text" id="fileUrl" placeholder="文件地址">
			</div>
			<div id="button_basic_upload">选择文件</div>
		</div>
	</div>
	<div class="qutton" id="qutton_delete">
		<div class="qutton_dialog" id="deleteDialog">
			<h2>确定?</h2>
			<div id="button_basic_confirm_delete">确定删除</div>
		</div>
	</div>
	<div class="qutton" id="qutton_comment">
		<div class="qutton_dialog" id="commentDialog">
			<textarea name="comment" id="commentInput" placeholder="你的评论..."></textarea>
			<div id="button_basic_submit_comment">发送</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function() {
	var quttonUpload = Qutton.getInstance($('#qutton_upload'));
	quttonUpload.init({
		icon: 'images/icon_upload.png',
		backgroundColor: '#917466'
	});
	var quttonDelete = Qutton.getInstance($('#qutton_delete'));
	quttonDelete.init({
		icon: 'images/icon_delete.png',
		backgroundColor: "#eb1220"
	});
	var quttonComment = Qutton.getInstance($('#qutton_comment'));
	quttonComment.init({
		icon: 'images/icon_comment.png',
		backgroundColor: "#41aaf1"
	});
});
</script>



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


热门标签: 弹出层拖动 窗口提示框 切换按钮 form表单 文件上传 提示框/弹出层 表单提交

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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