jquery.bgiframe.min.js
2010-06-20 22:47
375 查看
/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* $LastChangedDate: 2007-06-19 20:25:28 -0500 (Tue, 19 Jun 2007) $
* $Rev: 2111 $
*
* Version 2.1
*/
(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&parseInt($.browser.version)<=6){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=/'0/');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+/'px/')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+/'px/')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+/'px/')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+/'px/')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};if(!$.browser.version)$.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[//: ]([/d.]+)/)[1];})(jQuery);
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* $LastChangedDate: 2007-06-19 20:25:28 -0500 (Tue, 19 Jun 2007) $
* $Rev: 2111 $
*
* Version 2.1
*/
(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&parseInt($.browser.version)<=6){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=/'0/');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+/'px/')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+/'px/')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+/'px/')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+/'px/')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};if(!$.browser.version)$.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[//: ]([/d.]+)/)[1];})(jQuery);
相关文章推荐
- 解决了jquery.bgiframe.min.js的一个bug
- jquery.validate.min.js
- ueditor.all.min.js报错,jquery.min.js报错,等等一些js文件报错
- jQuery移动设备上支持滑动事件(jquery.touchSwipe.min.js)
- jquery.nicescroll.min.js滚动条使用方法
- 请求jquery.min.js的时候,log显示浏览器还请求了jquery.min.map,该请求导致服务端报错
- Qrcode生成二维码(普通篇)之jquery.qrcode.min.js
- jquery.fixedtableheader.min.js固定表头功能
- jquery-ui.min.js的draggable()拖拽功能
- google jQuery引用文件直接引用地址http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
- chosen.jquery.min.js select2.js 弊端
- bootstrap.min.js:6 Uncaught Error: Bootstrap's JavaScript requires jQuery
- ueditor.all.min.js报错,jquery.min.js报错,等等一些js文件报错
- jQury下的自动补全及插件jquery.autocomplete.min.js的使用
- jquery.qrcode.min.js(支持中文转化二维码)
- jquery dataTables.min.js API
- jquery.min.js一引入到工程中显示红叉
- jquery 1.6-min.js 中判断checkbox是否被选中的问题
- Unexpected token < in jquery.min.js 32.
- jquery-1.x.x.min.js 在Myeclipse 报错