修改了首页图片轮播的参数,删除无用的注释

This commit is contained in:
Li Jianxuan 2012-06-05 09:39:48 +00:00
parent 0ef7a138f9
commit 032f70ea6e
1 changed files with 1 additions and 12 deletions

View File

@ -134,13 +134,7 @@
</div>
<script>
$(function(){
// Set starting slide to 1
var startSlide = 1;
// Get slide number if it exists
if (window.location.hash) {
startSlide = window.location.hash.replace('#','');
}
// Initialize Slides
$('#slides').slides({
preload: true,
preloadImage: 'img/loading.gif',
@ -148,12 +142,7 @@
play: 5000,
pause: 2500,
hoverPause: true,
// Get the starting slide
start: startSlide,
animationComplete: function(current){
// Set the slide number as a hash
window.location.hash = '#' + current;
}
start: startSlide
});
$("#slideshowHolder").jqGalScroll({
speed:1,