Created
November 14, 2009 02:21
Revisions
-
darkhelmet renamed this gist
Mar 24, 2010 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
darkhelmet revised this gist
Mar 24, 2010 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
Empty file. -
darkhelmet revised this gist
Mar 24, 2010 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
Empty file. -
darkhelmet renamed this gist
Mar 24, 2010 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
darkhelmet created this gist
Nov 14, 2009 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ (function($) { $.fn.swfembed = function(movie, width, height) { this.each(function() { scale = 600 / width; w = '600px'; h = (height * scale) + 'px'; swfobject.embedSWF(movie, this.id, w, h, '9.0.124', '/swf/expressInstall.swf', null, { wmode: 'opaque', allowFullscreen: true }); }); } })(jQuery); $(document).ready(function() { $('.swfembed').each(function() { t = $(this); $(this).swfembed(t.attr('movie'), parseInt(t.attr('mwidth')), parseInt(t.attr('mheight'))); }); });