Skip to content

Commit 03349a9

Browse files
committed
The script doesn't use the pauseOnPagerHover Cycle option
1 parent 70438a3 commit 03349a9

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

js/script.js

+4-13
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,11 @@ $(window).load(function() {
66
$next = $('<a class="nav_arrow" id="next" href="#">next</a>'),
77
$screen = $('<div id="screen"></div>')
88
.append($prev, $next)
9-
.mouseover(function() {
10-
$slides.cycle('pause');
11-
$prev.show();
12-
$next.show();
13-
})
14-
.mouseout(function() {
15-
$prev.hide();
16-
$next.hide();
17-
$slides.cycle('resume');
18-
}),
9+
.mouseover(function() { $slides.cycle('pause'); $prev.show(); $next.show(); })
10+
.mouseout(function() { $prev.hide(); $next.hide(); $slides.cycle('resume'); }),
1911
$pager = $('<div id="pager"></div>').hover(
20-
function() { $prev.show(); $next.show(); },
21-
function() { $prev.hide(); $next.hide(); }
12+
function() { $slides.cycle('pause'); $prev.show(); $next.show(); },
13+
function() { $prev.hide(); $next.hide(); $slides.cycle('resume'); }
2214
)
2315
;
2416

@@ -30,7 +22,6 @@ $(window).load(function() {
3022
fx: 'scrollHorz',
3123
timeout: 4000,
3224
speed: 500,
33-
pauseOnPagerHover: true,
3425
prev: '#prev',
3526
next: '#next',
3627
pager: '#pager'

0 commit comments

Comments
 (0)