8 Star 14 Fork 8

o保温杯o / shopnc_cps

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
addgoods.html 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
o保温杯o 提交于 2015-04-25 14:40 . 增加悬浮菜单
<html>
<head>
<script type="text/javascript" src="http://shopnc/data/resource/js/jquery.js"></script>
<script type="text/javascript">
var onoff=0,times=0;
var t;
function refresh_frame()
{
t=setInterval("actionA()",200);
}
function actionA()
{
if(times>parseInt(document.getElementById("times").value))
{
clearInterval(t);
//alert("out");
$("#showtimes").text(times+"_out");
}
times++;
$("#showtimes").text(times);
//document.getElementById("frameA").document.location.reload();
//frameA.document.location.reload();
//frameA.document.location.reload();
//window.frames['frameA'].location.reload();
//$("#frameA").reload();
document.getElementById('frameA').contentWindow.location.reload(true);
}
function stop_frame()
{
clearInterval(t);
}
</script>
</head>
<body>
<div style="height:50px;">
<input id="clickme" value="go" name="clickme" onClick="refresh_frame();" type="button"/>
<input id="stopme" value="stop" name="clickme" onClick="stop_frame();" type="button"/>
<input type="text" id="times" value="0" />
<span id="showtimes"></span>
</div>
<iframe id="frameA" width="100%" height="500" src="http://shopnc/shop/index.php?act=store_goods_add"/>
</body>
</html>
PHP
1
https://gitee.com/mylife/shopnc_cps.git
git@gitee.com:mylife/shopnc_cps.git
mylife
shopnc_cps
shopnc_cps
master

搜索帮助