├── bower.json ├── test ├── SilverlightBalls │ ├── css │ │ └── style.css │ ├── assets │ │ └── ball_n.xaml │ ├── js │ │ ├── wpfe.ball.js │ │ ├── ball.js │ │ └── Silverlight.js │ └── wpfe.htm └── test.html ├── ChangeLog.markdown ├── bgiframe.jquery.json ├── package.json ├── LICENSE.txt ├── jquery.bgiframe.js └── README.markdown /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-bgiframe", 3 | "version": "3.0.1", 4 | "main": "./jquery.bgiframe.js", 5 | "ignore": [ 6 | ".*", 7 | "*.txt", 8 | "*.markdown", 9 | "*.json", 10 | "test" 11 | ], 12 | "dependencies": { 13 | "jquery": ">=1.2.6" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /test/SilverlightBalls/css/style.css: -------------------------------------------------------------------------------- 1 | body {font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 80%; color: #333333; margin:0;} 2 | .host {border: thin black solid; width: 500px; height: 300px;} 3 | h2 {color: black; border-bottom: thin #999999 solid; padding-bottom: 15px;} 4 | img { behavior: url(assets/iepngfix.htc); } 5 | div {position: relative; overflow: hidden;} 6 | /*#wpfeHost {display: none;} 7 | #flashHost {display: none;}*/ 8 | #dhtml_fps {width: 50px; padding: 5px; z-index: 1000;} 9 | #dhtml_ball_0 {z-index: 0;} 10 | span {cursor: hand; padding: 8px; margin: 2px; background-color: #ddddff; vertical-align:middle; display: block; float: left;} 11 | 12 | #subject { 13 | position: absolute; 14 | width: 52px; 15 | height: 52px; 16 | top: 124px; 17 | left: 224px; 18 | } 19 | #demoControls { 20 | margin-top: 10px; 21 | margin-bottom: 20px; 22 | } -------------------------------------------------------------------------------- /ChangeLog.markdown: -------------------------------------------------------------------------------- 1 | # bgiframe Change Log 2 | 3 | ## 3.0.1 4 | 5 | * Fix default IE 6 regex 6 | * Add support for more package managers 7 | 8 | ## 3.0.0 9 | 10 | * Rewrite of the plugin 11 | * New conditional option (no longer restricted to IE6 only) 12 | * No longer uses CSS Expressions 13 | * Supports AMD loaders 14 | 15 | ## 2.1.2 16 | 17 | * Fixed visual test (test.html) 18 | * Small optimization to only check for IE once 19 | 20 | ## 2.1.1 21 | 22 | * Removed $.browser.version for jQuery < 1.1.3 23 | 24 | ## 2.1 25 | 26 | * Updated to work with jQuery 1.1.3 27 | * Added $.browser.version for jQuery < 1.1.3 28 | * Optimized duplication check by using child selector and using .length test 29 | 30 | ## 2.0 31 | 32 | * Added ability change settings like width, height, src and more. 33 | 34 | ## 1.0 35 | 36 | * Only adds iframe once per an element 37 | * Works with SSL enabled pages 38 | -------------------------------------------------------------------------------- /bgiframe.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bgiframe", 3 | "title": "bgiframe", 4 | "description": "A jQuery plugin that helps ease the pain when having to deal with IE z-index issues.", 5 | "keywords": [ 6 | "z-index", 7 | "iframe", 8 | "ie6", 9 | "silverlight", 10 | "issues", 11 | "bgiframe", 12 | "background" 13 | ], 14 | "version": "3.0.1", 15 | "author": { 16 | "name": "Brandon Aaron", 17 | "url": "http://brandonaaron.net" 18 | }, 19 | "licenses": [ 20 | { 21 | "type": "MIT", 22 | "url": "https://raw.github.com/brandonaaron/bgiframe/master/LICENSE.txt" 23 | } 24 | ], 25 | "bugs": "https://github.com/brandonaaron/bgiframe/issues", 26 | "homepage": "https://github.com/brandonaaron/bgiframe", 27 | "download": "https://github.com/brandonaaron/bgiframe/tags", 28 | "dependencies": { 29 | "jquery": ">=1.2.6" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-bgiframe", 3 | "version": "3.0.1", 4 | "author": "Brandon Aaron (http://brandon.aaron.sh)", 5 | "description": "A jQuery plugin that helps ease the pain when having to deal with IE z-index issues.", 6 | "main": "./jquery.bgiframe.js", 7 | "repository": { 8 | "type": "git", 9 | "url": "https://github.com/brandonaaron/bgiframe.git" 10 | }, 11 | "bugs": { 12 | "url": "https://github.com/brandonaaron/bgiframe/issues" 13 | }, 14 | "keywords": [ 15 | "jquery", 16 | "plugin", 17 | "browser", 18 | "z-index", 19 | "iframe", 20 | "ie6", 21 | "silverlight", 22 | "issues", 23 | "bgiframe", 24 | "background" 25 | ], 26 | "licenses": [ 27 | { 28 | "type": "MIT", 29 | "url": "https://raw.github.com/brandonaaron/bgiframe/master/LICENSE.txt" 30 | } 31 | ], 32 | "readmeFilename": "README.markdown", 33 | "directories": { 34 | "test": "test" 35 | }, 36 | "jam": { 37 | "dependencies": { 38 | "jquery": ">=1.2.6" 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2013, Brandon Aaron (http://brandonaaron.net/) 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /test/SilverlightBalls/assets/ball_n.xaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /jquery.bgiframe.js: -------------------------------------------------------------------------------- 1 | /*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh) 2 | * Licensed under the MIT License (LICENSE.txt). 3 | * 4 | * Version 3.0.1 5 | * 6 | * Requires jQuery >= 1.2.6 7 | */ 8 | 9 | (function (factory) { 10 | if ( typeof define === 'function' && define.amd ) { 11 | // AMD. Register as an anonymous module. 12 | define(['jquery'], factory); 13 | } else if ( typeof exports === 'object' ) { 14 | // Node/CommonJS style for Browserify 15 | module.exports = factory; 16 | } else { 17 | // Browser globals 18 | factory(jQuery); 19 | } 20 | }(function ($) { 21 | $.fn.bgiframe = function(s) { 22 | s = $.extend({ 23 | top : 'auto', // auto == borderTopWidth 24 | left : 'auto', // auto == borderLeftWidth 25 | width : 'auto', // auto == offsetWidth 26 | height : 'auto', // auto == offsetHeight 27 | opacity : true, 28 | src : 'javascript:false;', 29 | conditional : /MSIE 6\.0/.test(navigator.userAgent) // expression or function. return false to prevent iframe insertion 30 | }, s); 31 | 32 | // wrap conditional in a function if it isn't already 33 | if ( !$.isFunction(s.conditional) ) { 34 | var condition = s.conditional; 35 | s.conditional = function() { return condition; }; 36 | } 37 | 38 | var $iframe = $('