js 滚动加载iframe框中内容
2013-08-16 15:02
405 查看
var isIE6 = !!window.ActiveXObject&&!window.XMLHttpRequest; //滚动加载 var scrollLoad =function(){ $("#content iframe[_src]").each(function(){ var t = $(this); if( t.offset().top<= $(document).scrollTop() + $(window).height() ) { t.attr( "src",t.attr("_src") ).removeAttr("_src"); } });//each E } scrollLoad(); $(window).scroll(function(){ if(isIE6){ btb.css("top", $(document).scrollTop()+30) } //scrollLoad(); });
<iframe allowTransparency="true" scrolling="no" _src="demo/iframe/2.0-focus-iframe.html?&fade&true" frameborder="0"></iframe>
相关文章推荐
- js 滚动加载iframe框中内容
- 当滚动条滚动到页面底部自动加载增加内容的js代码
- 当滚动条滚动到页面底部自动加载增加内容的js代码
- JS控制iFrame切换加载不同网页内容
- 怎么让iframe加载内容速度更快,用target而不是用js更改iframe的src
- js滚动页面加载内容
- js滚动加载内容
- 链接A通过js加载内容到iframe,链接不显示地址问题,target的用法
- 当滚动条滚动到页面底部自动加载增加内容的js代码
- chrome 13.0 的执行速度过快,结果导致iframe 里面的内容没有加载js先执行了!
- jQuery实现页面滚动时动态加载内容的方法
- js滚动加载
- JS按钮控制内容左右滚动
- js加载读取内容及显示与隐藏div示例
- jquery 仿微博实现内容自动向下滚动加载
- vue.js加载新的内容(实例代码)
- jQuery实现的瀑布流效果, 向下滚动即时加载内容
- js页面滚动到底部时自动加载下一页数据
- 页面滚动图片等元素动态加载插件jquery.scrollLoading.js
- vue.js中滚动条加载更多数据