client/player/js/transBG.jquery.plugin.js
author hurons
Wed, 09 Jun 2010 16:48:35 +0200
changeset 1 436d4791d7ac
permissions -rw-r--r--
premier version du player test de commit

														/*
Script created by designFORGE { identity foundry }
														*/
(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);
(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);