Changeset 477431
- Timestamp:
- 12/19/2011 12:07:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
featured-posts-scroll/branches/varsize/js/fps.js.php
r476626 r477431 125 125 function initAutoscroll() 126 126 { 127 if (type != 'none' && 1 == <?php echo $post_autoscroll ?>)127 if (type != 'none') 128 128 { 129 129 $j('.featured-posts-wrapper').each(function(index) { 130 130 fps_animLocked[index] = true; 131 131 132 if ( $j('.featured-posts-wrapper').slice(index,index+1).children('.scrollFeaturedPostsRight').length > 0)132 if (1 == <?php echo $post_autoscroll ?>) 133 133 { 134 var callback = 135 "FeaturedPostsLib.fps.scrollFeaturedPosts(jQuery('.featured-posts-wrapper').slice(" + 136 index + "," + (index + 1) + ").children('.scrollFeaturedPostsRight'), 'right', " + index + ")"; 137 autoscrollInterval[index] = setInterval( 138 callback, <?php echo $post_scroll_interval ?>); 139 } 140 else 141 { 142 var callback = 143 "FeaturedPostsLib.fps.scrollFeaturedPosts(jQuery('.featured-posts-wrapper').slice(" + 144 index + "," + (index + 1) + ").children('.scrollFeaturedPostsRight-below'), 'right', " + index + ")"; 145 autoscrollInterval[index] = setInterval( 146 callback, <?php echo $post_scroll_interval ?>); 134 if ($j('.featured-posts-wrapper').slice(index,index+1).children('.scrollFeaturedPostsRight').length > 0) 135 { 136 var callback = 137 "FeaturedPostsLib.fps.scrollFeaturedPosts(jQuery('.featured-posts-wrapper').slice(" + 138 index + "," + (index + 1) + ").children('.scrollFeaturedPostsRight'), 'right', " + index + ")"; 139 autoscrollInterval[index] = setInterval( 140 callback, <?php echo $post_scroll_interval ?>); 141 } 142 else 143 { 144 var callback = 145 "FeaturedPostsLib.fps.scrollFeaturedPosts(jQuery('.featured-posts-wrapper').slice(" + 146 index + "," + (index + 1) + ").children('.scrollFeaturedPostsRight-below'), 'right', " + index + ")"; 147 autoscrollInterval[index] = setInterval( 148 callback, <?php echo $post_scroll_interval ?>); 149 } 147 150 } 148 151 });
Note: See TracChangeset
for help on using the changeset viewer.