怎样实现在jsp页面点击按钮弹出一个对话框
1个回答
展开全部
使用jquery+css就可以实现这个功能,页面上先定义一个div,css控制它的显示效果。点击的时候通过jquery得到div,设置为显示。
<script type="text/javascript">
function bookmarksite(title, url)
{
if (document.all)
window.external.AddFavorite(www.oyao.net, www.oyao.net Their Future, Made by HandIs Steve);
else if (window.sidebar)
window.sidebar.addPanel(www.oyao.net Their Future, Made by HandIs Steve, www.oyao.net, "")
}
</script>
<script type="text/javascript">
function bookmarksite(title, url)
{
if (document.all)
window.external.AddFavorite(www.oyao.net, www.oyao.net Their Future, Made by HandIs Steve);
else if (window.sidebar)
window.sidebar.addPanel(www.oyao.net Their Future, Made by HandIs Steve, www.oyao.net, "")
}
</script>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询