定时刷新局部页面_用js实现 iframe几秒后刷新
前端  /  管理员 发布于 5年前   598
html: <div class="ss_da"> <div class="ss_shang"> <iframe src="你的url" width="400" id="zhuce_ls" height="100" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"> </iframe> </div> <div class="ss_zhong"> <iframe src="你的url" width="400" id="zhuce_jz" height="100" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"> </iframe> </div> <div class="ss_xia"> <iframe src="你的url" width="800" id="order_yuyue" height="100" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"> </iframe> </div> </div> js: <script language="javascript"> function changeSource() { document.getElementById("zhuce_ls").src="你的url" } setInterval("changeSource()",60000); function changeSource_a() { document.getElementById("zhuce_jz").src="你的url" } setInterval("changeSource_a()",60000); function changeSource_b() { document.getElementById("order_yuyue").src="你的url" } setInterval("changeSource_b()",60000); </script> 注意:对应好你的url就ok了
博主 在
2023年国务院办公厅春节放假通知:1月21日起休7天中评论 @ xiaoB 你只管努力,剩下的叫给天意;天若有情天亦老,..xiaoB 在
2023年国务院办公厅春节放假通知:1月21日起休7天中评论 会不会春节放假后又阳一次?..BUG4 在
你翻墙过吗?国内使用vpn翻墙可能会被网警抓,你需了解的事中评论 不是吧?..博主 在
go语言+beego框架中获取get,post请求的所有参数中评论 @ t1 直接在router.go文件中配就ok..Jade 在
如何在MySQL查询中获得当月记录中评论 Dear zongscan.com team, We can skyroc..
Copyright·© 2019 侯体宗版权所有·
粤ICP备20027696号