Changeset 11982 for extensions/stripped/js/scripts-tpp.js
- Timestamp:
- Aug 22, 2011, 11:25:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped/js/scripts-tpp.js
r9960 r11982 57 57 58 58 var tab_loaded=0; 59 var tab_height=[];60 59 var delay=400; 61 60 var hfirst; … … 64 63 var tab_titles=jQuery(".tabTitle"); 65 64 var tab_blocks=jQuery(".tabBlock"); 65 var tab_name; 66 var tab_start = null; 67 68 if (options.defaultTab) { 69 if (options.defaultTab != "none") tab_start = options.defaultTab; 70 if (options.defaultTab == "last") tab_start = jQuery.cookie("tabactive"); 71 } 66 72 67 73 if ((tab_titles.length != 0) && (tab_titles.length == tab_blocks.length)) { 74 75 if (tab_start != null) { 76 tab_blocks.each(function(index) { 77 jQuery(this).css("display","none"); 78 }); 79 tab_loaded=1; 80 jQuery("#tabs").css("height","auto"); 81 82 tab_titles.each(function(index1) { 83 tab_name = jQuery(this).attr("name"); 84 if (tab_name == tab_start) { 85 jQuery(this).addClass("tabSelected"); 86 jQuery.cookie("tabactive",jQuery(this).attr("name")); 87 var old_selected_tab =-1; 88 tab_blocks.each(function(index2) { 89 if (index1 == index2) { 90 jQuery(this).show(); 91 } 92 }); 93 } 94 }); 95 96 } 97 68 98 tab_titles.each(function(index1) { 69 99 var tab_title = jQuery(this); … … 85 115 } 86 116 }); 117 jQuery.cookie("tabactive",null); 87 118 } else { 88 119 jQuery(this).addClass("tabSelected"); 120 jQuery.cookie("tabactive",jQuery(this).attr("name")); 89 121 var old_selected_tab =-1; 90 122 tab_titles.each(function(index2) { … … 184 216 185 217 if (TitleBox.length != 0) { 186 TitleBox.css(" width",jQuery("#theImg").outerWidth()+"px");218 TitleBox.css("min-width",jQuery("#theImg").outerWidth()+"px"); 187 219 } 188 220 … … 222 254 223 255 if ((jQuery("#mapPicture").length==0) && (jQuery("#Panorama").length==0) && (jQuery("#pamoorama").length==0)){ 224 PrevBoxIn.mouseenter(function(){PrevImg. animate({opacity:1},tfade);});225 PrevBoxOut.mouseleave(function(){PrevImg. animate({opacity:0},tfade);});256 PrevBoxIn.mouseenter(function(){PrevImg.stop(true, false).animate({opacity:1},tfade);}); 257 PrevBoxOut.mouseleave(function(){PrevImg.stop(true, false).animate({opacity:0},tfade);}); 226 258 } else { 227 259 PrevBoxOut.css("display","none"); … … 237 269 238 270 if ((jQuery("#mapPicture").length==0) && (jQuery("#Panorama").length==0) && (jQuery("#pamoorama").length==0)){ 239 NextBoxIn.mouseenter(function(){NextImg. animate({opacity:1},tfade);});240 NextBoxOut.mouseleave(function(){NextImg. animate({opacity:0},tfade);});271 NextBoxIn.mouseenter(function(){NextImg.stop(true, false).animate({opacity:1},tfade);}); 272 NextBoxOut.mouseleave(function(){NextImg.stop(true, false).animate({opacity:0},tfade);}); 241 273 } else { 242 274 NextBoxOut.css("display","none");
Note: See TracChangeset
for help on using the changeset viewer.