summaryrefslogtreecommitdiff
path: root/public/javascripts/shadowbox/players/shadowbox-iframe.js
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-09-17 11:03:35 +0200
committerhukl <contact@smyck.org>2009-09-17 11:03:35 +0200
commitf952040dd44b914b2d5e405567eb655757dfc85d (patch)
tree7e210b01734bd7f311009c705e80027e85468cca /public/javascripts/shadowbox/players/shadowbox-iframe.js
parentbb4afc944049652f1c51124808fd64de6ebe338a (diff)
added shadowbody, first js gallery initializer and template modifications
Diffstat (limited to 'public/javascripts/shadowbox/players/shadowbox-iframe.js')
-rw-r--r--public/javascripts/shadowbox/players/shadowbox-iframe.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/javascripts/shadowbox/players/shadowbox-iframe.js b/public/javascripts/shadowbox/players/shadowbox-iframe.js
new file mode 100644
index 0000000..eeac848
--- /dev/null
+++ b/public/javascripts/shadowbox/players/shadowbox-iframe.js
@@ -0,0 +1 @@
(function(a){a.iframe=function(c){this.obj=c;var b=document.getElementById("sb-overlay");this.height=c.height?parseInt(c.height,10):b.offsetHeight;this.width=c.width?parseInt(c.width,10):b.offsetWidth};a.iframe.prototype={append:function(b,e,d){this.id=e;var c='<iframe id="'+e+'" name="'+e+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" scrolling="auto"';if(a.client.isIE){c+=' allowtransparency="true"';if(a.client.isIE6){c+=" src=\"javascript:false;document.write('');\""}}c+="></iframe>";b.innerHTML=c},remove:function(){var b=document.getElementById(this.id);if(b){a.lib.remove(b);if(a.client.isGecko){delete window.frames[this.id]}}},onLoad:function(){var b=a.client.isIE?document.getElementById(this.id).contentWindow:window.frames[this.id];b.location.href=this.obj.content}}})(Shadowbox); \ No newline at end of file