<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无刷新弹出提示</title>
<script language="javascript" src="http://hi.baidu.com/js/popup.js"></script>
</head>
<body>
<script language="javascript">
function editPhotoCat(url)
{
var pop=new Popup({ contentType:1, isReloadOnClose:false, width:530, height:230 });
pop.setContent("title","编辑相册");
pop.setContent("contentUrl",url);
pop.build();
pop.show();
return false;
}
</script><a href="#" onClick="editPhotoCat('6.htm');return false;">3秒自动关闭窗口</a>
</body>
</html>
<title>无刷新弹出提示</title>
<script language="javascript" src="http://hi.baidu.com/js/popup.js"></script>
</head>
<body>
<script language="javascript">
function editPhotoCat(url)
{
var pop=new Popup({ contentType:1, isReloadOnClose:false, width:530, height:230 });
pop.setContent("title","编辑相册");
pop.setContent("contentUrl",url);
pop.build();
pop.show();
return false;
}
</script><a href="#" onClick="editPhotoCat('6.htm');return false;">3秒自动关闭窗口</a>
</body>
</html>
解决方案 »
- 求助
- 一个很奇怪的问题,关于parseInt的,谁告诉我为什么?
- success 后面跟一个匿名函数干什么,能不能用一个实名函数实现之 success:function()
- Ext.grid.GridPanel 点击换页无效
- javascript向下拉框赋值,并选中
- 高手帮忙看看,js创建table问题
- 强!! 一个很简单的基本语法问题,不知道谁留意过 ----((((急用,在线等))))
- 如何在文本框中输入值控制层在屏幕上的位置?在线等
- 急问如何让当前窗口不允许其他页面刷新
- bootstrap-table的formatter中使用ajax的问题
- 初學者遇到的問題....
- Array的splice方法
<script type="text/javascript">
var i=3;
function close_win(){
self.opener=null;
self.close();
}
function clock(){
i=i-1;
document.title="本窗口将在"+i+"秒后自动关闭!";
if(i>0) setTimeout("clock()",1000);
else close_win();
}
clock();
</script>