修改了首页图片轮播的参数,删除无用的注释
This commit is contained in:
parent
0ef7a138f9
commit
032f70ea6e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue