-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslideA.js
More file actions
44 lines (30 loc) · 1.22 KB
/
slideA.js
File metadata and controls
44 lines (30 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$(function() {
// Change this selector to find whatever your 'boxes' are
var boxes = $(".doris");
// Set up click handlers for each box
boxes.click(function() {
var el = $(this), // The box that was clicked
max = $( this ).css( "z-index" );
// Find the highest z-index
// Set the box that was clicked to the highest z-index plus one
el.css("z-index", max -15 );
});
var tboxes = $(".tdoris");
// Set up click handlers for each box
tboxes.click(function() {
var el = $(this), // The box that was clicked
max = $( this ).css( "z-index" );
// Find the highest z-index
// Set the box that was clicked to the highest z-index plus one
el.css("z-index", max -15 );
});
var gboxes = $(".fifth_boris");
// Set up click handlers for each box
gboxes.click(function() {
var el = $(this), // The box that was clicked
max = $( this ).css( "z-index" );
// Find the highest z-index
// Set the box that was clicked to the highest z-index plus one
el.css("z-index", max -15 );
});
});