Changeset 12045
- Timestamp:
- Sep 4, 2011, 12:43:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/imgpreview/css_js.tpl
r11948 r12045 4 4 {if isset($imgpreview)} 5 5 {literal} 6 $('.thumbnails a, #thumbnails a').imgPreview({6 jQuery('.thumbnails a, #thumbnails a').imgPreview({ 7 7 containerID: 'tooltip', 8 8 srcAttr: 'imgsrc', … … 11 11 onShow: function(link){ 12 12 {/literal}{if $imgpreview.title=="true"}{literal} 13 $('<span>' + $(link).children().attr("title") + '</span>').appendTo(this);13 jQuery('<span>' + jQuery(link).children().attr("title") + '</span>').appendTo(this); 14 14 15 15 {/literal}{/if}{if $imgpreview.opacity=="true"}{literal} 16 $(link).stop().animate({opacity:0.4});16 jQuery(link).stop().animate({opacity:0.4}); 17 17 // Reset image: 18 $('img', this).stop().css({opacity:0});18 jQuery('img', this).stop().css({opacity:0}); 19 19 {/literal}{/if}{literal} 20 20 }, 21 21 onLoad: function(){ 22 22 {/literal}{if $imgpreview.opacity=="true"}{literal} 23 $(this).animate({opacity:1}, 300);23 jQuery(this).animate({opacity:1}, 300); 24 24 {/literal}{/if}{literal} 25 25 }, … … 27 27 onHide: function(link){ 28 28 {/literal}{if $imgpreview.title=="true"}{literal} 29 $('span', this).remove();29 jQuery('span', this).remove(); 30 30 {/literal}{/if}{if $imgpreview.opacity=="true"}{literal} 31 $(link).stop().animate({opacity:1});31 jQuery(link).stop().animate({opacity:1}); 32 32 {/literal}{/if}{literal} 33 33 }
Note: See TracChangeset
for help on using the changeset viewer.