diff options
| author | hukl <contact@smyck.org> | 2009-09-17 11:03:35 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-17 11:03:35 +0200 |
| commit | f952040dd44b914b2d5e405567eb655757dfc85d (patch) | |
| tree | 7e210b01734bd7f311009c705e80027e85468cca /public/javascripts/shadowbox/players/shadowbox-wmp.js | |
| parent | bb4afc944049652f1c51124808fd64de6ebe338a (diff) | |
added shadowbody, first js gallery initializer and template modifications
Diffstat (limited to 'public/javascripts/shadowbox/players/shadowbox-wmp.js')
| -rw-r--r-- | public/javascripts/shadowbox/players/shadowbox-wmp.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/public/javascripts/shadowbox/players/shadowbox-wmp.js b/public/javascripts/shadowbox/players/shadowbox-wmp.js new file mode 100644 index 0000000..d95eee3 --- /dev/null +++ b/public/javascripts/shadowbox/players/shadowbox-wmp.js | |||
| @@ -0,0 +1 @@ | |||
| (function(a){var b=(a.client.isIE?70:45);a.wmp=function(c){this.obj=c;this.height=c.height?parseInt(c.height,10):300;if(a.options.showMovieControls){this.height+=b}this.width=c.width?parseInt(c.width,10):300};a.wmp.prototype={append:function(c,j,i){this.id=j;var e=a.options,f=e.autoplayMovies?1:0;var d='<object id="'+j+'" name="'+j+'" height="'+this.height+'" width="'+this.width+'"',h={autostart:e.autoplayMovies?1:0};if(a.client.isIE){d+=' classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"';h.url=this.obj.content;h.uimode=e.showMovieControls?"full":"none"}else{d+=' type="video/x-ms-wmv"';d+=' data="'+this.obj.content+'"';h.showcontrols=e.showMovieControls?1:0}d+=">";for(var g in h){d+='<param name="'+g+'" value="'+h[g]+'">'}d+="</object>";c.innerHTML=d},remove:function(){var f=this.id;if(a.client.isIE){try{window[f].controls.stop();window[f].URL="non-existent.wmv";window[f]=function(){}}catch(d){}}var c=document.getElementById(f);if(c){setTimeout(function(){a.lib.remove(c)},10)}}}})(Shadowbox); \ No newline at end of file | |||
