-
Notifications
You must be signed in to change notification settings - Fork 0
/
slide.html
executable file
·56 lines (41 loc) · 1.02 KB
/
slide.html
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
45
46
47
48
49
50
51
52
53
54
55
56
<html>
<head>
<link REL="STYLESHEET" TYPE="text/css" HREF="style.css">
<script>
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = parent.speed
var size_fig = parent.size_fig
// Specify the image files
var t
var j = 0
var p = parent.sli_menu.t.length
var change_size = true
var preLoad = new Array()
parent.clean(preLoad)
for (i = 0; i < p; i++){
preLoad[i] = new Image()
preLoad[i].src = parent.sli_menu.t[i]
}
function runSlideShow(){
document.images.SlideShow.src = preLoad[j].src
slideShowSpeed = parent.speed
if ( change_size ) {
document.images.SlideShow.height =
document.images.SlideShow.height * size_fig
change_size = false
}
j += parent.slide_dir
if (j > parent.slide_ep) j=parent.slide_sp
if (j < parent.slide_sp) j=parent.slide_ep
t = setTimeout('runSlideShow()', slideShowSpeed)
}
</script>
</head>
<body onload="runSlideShow()">
<img src="" name='SlideShow'>
<br>
<script>
document.write(parent.write_slide())
</script>
</body>
</html>