Changeset 28523 for extensions/Full_Background/js
- Timestamp:
- May 21, 2014, 6:39:06 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Full_Background/js/full_BG.js
r25999 r28523 168 168 if($tf_bg_img.is(':animated')) 169 169 return false; 170 scroll(' tb');170 scroll('bt'); 171 171 }); 172 172 … … 175 175 if($tf_bg_img.is(':animated')) 176 176 return false; 177 scroll(' bt');177 scroll('tb'); 178 178 }); 179 179 … … 197 197 switch(e.which){ 198 198 case 38: 199 scroll('tb'); 200 break; 201 202 case 40: 199 203 scroll('bt'); 200 break;201 202 case 40:203 scroll('tb');204 204 break; 205 205 } … … 215 215 //if dir is "tb" (top -> bottom) increment current, 216 216 //else if "bt" decrement it 217 current = (dir == ' tb')?current + 1:current - 1;217 current = (dir == 'bt')?current + 1:current - 1; 218 218 219 219 //we want a circular slideshow, … … 283 283 284 284 //we want the old image to slide in the same direction, out of the viewport 285 var slideTo = (dir == ' tb')?-$tf_bg_img.height() + 'px':$(window).height() + 'px';285 var slideTo = (dir == 'bt')?-$tf_bg_img.height() + 'px':$(window).height() + 'px'; 286 286 $tf_bg_img.stop().animate({ 287 287 top : slideTo
Note: See TracChangeset
for help on using the changeset viewer.