-
Notifications
You must be signed in to change notification settings - Fork 0
/
f1-H.html
72 lines (63 loc) · 1.99 KB
/
f1-H.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.mainbox{
position: relative;
width: 100%;
height: auto;
cursor: pointer;
}
body{
margin: 0;
padding: 0;
}
img{
width: 100%;
height: auto;
}
</style>
</head>
<body>
<!-- First image -->
<div class="mainbox">
<img id="sliding1" src="https://assets.tatacliq.com/medias/sys_master/images/31653739135006.jpg">
</div>
</body>
</html>
<script>
function first() {
var image=document.getElementById("sliding1")
image.setAttribute("src","https://assets.tatacliq.com/medias/sys_master/images/31655829798942.jpg")
}
function second() {
var image=document.getElementById("sliding1")
image.setAttribute("src","https://assets.tatacliq.com/medias/sys_master/images/31653739069470.jpg")
}
function third() {
var image=document.getElementById("sliding1")
image.setAttribute("src","https://assets.tatacliq.com/medias/sys_master/images/31653739003934.jpg")
}
function fourth() {
var image=document.getElementById("sliding1")
image.setAttribute("src","https://assets.tatacliq.com/medias/sys_master/images/31653739790366.jpg")
}
function fifth() {
var image=document.getElementById("sliding1")
image.setAttribute("src","https://assets.tatacliq.com/medias/sys_master/images/31653739659294.jpg")
}
function sixth() {
var image=document.getElementById("sliding1")
image.setAttribute("src","https://assets.tatacliq.com/medias/sys_master/images/31653739135006.jpg")
}
setInterval(first,2000)
setInterval(second,4000)
setInterval(third,6000)
setInterval(fourth,8000)
setInterval(fifth,10000)
setInterval(sixth,12000)
</script>