client/player/js/transBG.jquery.plugin.js
author ymh <ymh.work@gmail.com>
Thu, 10 Jun 2010 18:56:59 +0200
changeset 16 b3692a42ac79
parent 1 436d4791d7ac
permissions -rw-r--r--
version + add indent and callback
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
436d4791d7ac premier version du player test de commit
hurons
parents:
diff changeset
     1
														/*
436d4791d7ac premier version du player test de commit
hurons
parents:
diff changeset
     2
Script created by designFORGE { identity foundry }
436d4791d7ac premier version du player test de commit
hurons
parents:
diff changeset
     3
														*/
436d4791d7ac premier version du player test de commit
hurons
parents:
diff changeset
     4
(function($){$.fn.transBGdraw = function(options){defaults ={'background':'#000000','opacity':'0.37','-moz-opacity':'0.37','filter':'alpha(opacity=37)','position':'absolute','z-index':'-1','height':$(this).height(),'width':$(this).width(),'padding-top':$(this).css('padding-top'),'padding-right':$(this).css('padding-right'),'padding-bottom':$(this).css('padding-bottom'),'padding-left':$(this).css('padding-left'),'border-top-style':$(this).css('border-top-style'),'border-top-width':$(this).css('border-top-width'),'border-top-color':$(this).css('background-color'),'border-right-style':$(this).css('border-right-style'),'border-right-width':$(this).css('border-right-width'),'border-right-color':$(this).css('background-color'),'border-bottom-style':$(this).css('border-bottom-style'),'border-bottom-width':$(this).css('border-bottom-width'),'border-bottom-color':$(this).css('background-color'),'border-left-style':$(this).css('border-left-style'),'border-left-width':$(this).css('border-left-width'),'border-left-color':$(this).css('background-color'),'margin-top':$(this).css('margin-top'),'margin-right':$(this).css('margin-right'),'margin-bottom':$(this).css('margin-bottom'),'margin-left':$(this).css('margin-left'),'top':$(this).position().top,'left':$(this).position().left};var options = $.extend(defaults, options);$(this).attr('class','transBG');$('<div id="'+$(this).attr('id')+'TransBG"></div>').insertBefore(this);$('#'+$(this).attr('id')+'TransBG').css(options);};})(jQuery);
436d4791d7ac premier version du player test de commit
hurons
parents:
diff changeset
     5
(function($){$.fn.transBGredraw = function(options){defaults ={'background':'#000000','opacity':'0.37','-moz-opacity':'0.37','filter':'alpha(opacity=37)','position':'absolute','z-index':'-1','height':$(this).height(),'width':$(this).width(),'padding-top':$(this).css('padding-top'),'padding-right':$(this).css('padding-right'),'padding-bottom':$(this).css('padding-bottom'),'padding-left':$(this).css('padding-left'),'border-top-style':$(this).css('border-top-style'),'border-top-width':$(this).css('border-top-width'),'border-top-color':$(this).css('background-color'),'border-right-style':$(this).css('border-right-style'),'border-right-width':$(this).css('border-right-width'),'border-right-color':$(this).css('background-color'),'border-bottom-style':$(this).css('border-bottom-style'),'border-bottom-width':$(this).css('border-bottom-width'),'border-bottom-color':$(this).css('background-color'),'border-left-style':$(this).css('border-left-style'),'border-left-width':$(this).css('border-left-width'),'border-left-color':$(this).css('background-color'),'margin-top':$(this).css('margin-top'),'margin-right':$(this).css('margin-right'),'margin-bottom':$(this).css('margin-bottom'),'margin-left':$(this).css('margin-left'),'top':$(this).position().top,'left':$(this).position().left};var options = $.extend(defaults, options);$('#'+$(this).attr('id')+'TransBG').css(options);};})(jQuery);