`
piperzero
  • 浏览: 3475684 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论

jquery插件实现弹对画框效果

 
阅读更多
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>对话框</title>
<script language="javascript" type="text/javascript" src="./js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="./js/jquery-ui-1.8.18.custom.min.js"></script>
<link rel="stylesheet" href="./css/ui-lightness/jquery-ui-1.8.18.custom.css" />
<script type="text/javascript">
$(function (){
$("#dialog").dialog({
autoOpen:false,
show:"blind",
hide:"explode"

});
$("#dialog_link").click(function(){
$("#dialog").dialog("open");// open参数 作用 打开对话框
});
});
</script>
</head>

<body>
<a href="#" id="dialog_link"><span>弹出对话框</span></a>
<div id="dialog" title="我的好友">
你好,请问能问你个问题吗??
</div>

</body>
</html>


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics