1(function($) { 2 $.fn.capslide = function(options) { 3 var opts = $.extend({}, $.fn.capslide.defaults, options); 4 return this.each(function() { 5 $this = $(this); 6 var o = $.meta ? $.extend({}, opts, $this.data()) : opts; 7 8 if(!o.showcaption) $this.find('.ic_caption').css('display','none'); 9 else $this.find('.ic_text').css('display','none'); 10 11 var _img = $this.find('img:first'); 12 var w = _img.css('width'); 13 var h = _img.css('height'); 14 $('.ic_caption',$this).css({'color':o.caption_color,'background-color':o.caption_bgcolor,'bottom':'0px','width':w}); 15 $('.overlay',$this).css('background-color',o.overlay_bgcolor); 16 $this.css({'width':w , 'height':h, 'border':o.border}); 17 $this.hover( 18 function () { 19 if((navigator.appVersion).indexOf('MSIE 7.0') > 0) 20 $('.overlay',$(this)).show(); 21 else 22 $('.overlay',$(this)).fadeIn(); 23 if(!o.showcaption) 24 $(this).find('.ic_caption').slideDown(500); 25 else 26 $('.ic_text',$(this)).slideDown(500); 27 }, 28 function () { 29 if((navigator.appVersion).indexOf('MSIE 7.0') > 0) 30 $('.overlay',$(this)).hide(); 31 else 32 $('.overlay',$(this)).fadeOut(); 33 if(!o.showcaption)
34 $(this).find('.ic_caption').slideUp(200); 35 else 36 $('.ic_text',$(this)).slideUp(200); 37 } 38 ); 39 }); 40 }; 41 $.fn.capslide.defaults = { 42 caption_color : 'white', 43 caption_bgcolor : 'black', 44 overlay_bgcolor : 'blue', 45 border : '1px solid #fff', 46 showcaption : true 47 }; 48})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.