当前位置:编程学习 > C#/ASP.NET >>

ASP,NET中怎么像人人网和QQ空间一样,点击收藏弹出一个对话框来输入收藏理由;求助

ASP,NET中怎么像人人网和QQ空间一样,点击收藏弹出一个对话框来输入收藏理由;求助 弹出框 --------------------编程问答-------------------- baidu google jquery dialog --------------------编程问答-------------------- div里放好你想放的东西



然后js控制显示隐藏 --------------------编程问答-------------------- 隐藏div或者做个弹出也可以的么 --------------------编程问答-------------------- art.dialog  插件来帮助你实现弹出的ui  然后用ajax来实现 --------------------编程问答-------------------- jquery dialog比较好用,加载google的JS就可以。。。 --------------------编程问答-------------------- 比较粗糙。。随便看看吧


<!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=gb2312" />
<title>无标题文档</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script src="http://code.jquery.com/ui/1.10.1/jquery-ui.js" ></script>

<script>
$(function(){
$("#div1").dialog({
autoOpen:false,
width:100,
buttons:[
{
text:"确定",
click:function(){
//ajax
alert("您收藏了");
}
},
{
text:"取消",
click:function(){
$(this).dialog("close");
}
}
]
});


$("#a1").click(function(){
$("#div1").dialog("open");
});
})
</script>
</head>

<body>
<a href="#" id="a1">收藏</a>

<div id="div1" class="dialog">
收藏理由:<input type="text" />
</div>
</body>
</html>
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,