Changeset 19217 for extensions/gally/gally-cuise/js/theme.js
- Timestamp:
- Nov 29, 2012, 1:47:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/gally/gally-cuise/js/theme.js
r19131 r19217 21 21 { 22 22 gallyCuise = new GallyCuise(); 23 } 23 24 25 jQuery('a.pwg-state-default').each(function (i) { 26 obj = this; 27 28 29 jQuery(obj).addClass("button").removeClass('pwg-state-default').removeClass('pwg-button'); 30 html = jQuery(obj).html(); 31 if (html.indexOf("url(") > 0) { 32 33 id = this.id; 34 jQuery(this).css({ 35 backgroundPosition:"-588px +28px" 36 37 }); 38 htmls = html.split("url("); 39 htmls = htmls[1].split(")"); 40 html = "<img src=" + htmls[0] + " class='pwg-button img_button' />"; 41 42 }else if (html.indexOf("map") > 0) { 43 html=""; 44 jQuery(this).css({ 45 backgroundPosition:"-588px -28px" , 46 position:'relative' 47 // bottom:'-10px',left:'-5px' 48 }); 49 } 50 51 jQuery(obj).html(html); 52 }); 53 } 24 54 ); 25 55 … … 27 57 function GallyCuise() 28 58 { 29 function init() 30 { 59 function init() { 60 61 31 62 // apply specific actions for categories pages 32 63 if(jQuery('#theCategoryPage').length>0) … … 41 72 } 42 73 setTipPosition_Menu(); 74 win_height = jQuery("#thumbContents").height(); 75 if (!win_height) 76 win_height = jQuery("#theImage").height(); 77 43 78 } 44 79
Note: See TracChangeset
for help on using the changeset viewer.