-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage.html
83 lines (59 loc) · 1.44 KB
/
image.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
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="12.png" type="image/icon type">
<title>Image</title>
<style>
body {font-family: Arial, Helvetica, sans-serif;}
button {
background-color: #04AA6D;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
}
button:hover {
opacity: 0.8;
}
.cancelbtn {
width: auto;
padding: 10px 18px;
background-color: #f44336;
}
/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
span.psw {
display: block;
float: none;
}
.cancelbtn {
width: 100%;
}
}
</style>
<script>
let count = 0 ;
function ct (x) {
if(x==1){
count++;
} else if(x==0) {
count --;
}
setImage();
}
function setImage () {
const WhichImg = "https://raw.githubusercontent.com/Jeevasimba/files/main/eg%20image/"+count+".PNG";
document.getElementById('soundtrack').innerHTML=`
<img src='${WhichImg}' alt="image" width=auto height=auto>
`;
}
</script>
</head>
<body>
<button onClick="ct(0)">prev</button>
<button onClick="ct(1)">next</button>
<div id="soundtrack"></div>
</body>
</html>