-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.html
125 lines (101 loc) · 2.84 KB
/
test.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<style type=text/css>
body{ background-color:#E7E8E1;
margin:0;
padding:0;
}
div{ margin:0;
padding:0;
}
#top-bar{
background-color:none;
width:1093px;
height:40px;
margin:0 auto;
}
#news{
color:#FFFFFF;
font-family:"Trebuchet MS", Helvetica, sans-serif;
height:80%;
float:left;
margin-left:50px;
margin-top:2px;
padding-left:10px;
padding-top:6px;
}
#news:hover{
color:yellow;
}
.sports-travel{
color:#FFFFFF;
font-family:"Trebuchet MS", Helvetica, sans-serif;
height:80%;
float:left;
margin-left:10px;
margin-top:2px;
padding-left:10px;
padding-top:6px;
}
#more{
color:#FFFFFF;
background-color:none;
font-family:"Trebuchet MS", Helvetica, sans-serif;
font-size:15px;
float:left;
position:relative;
left:20px;
padding:9.5px 10px 9.5px 10px;
}
#frame1{
width: 100%;
height: 53%;
border: ;
}
</style>
</head>
<body>
<div id="top-bar">
<p id="news">HOME</p>
<p class="sports-travel">Sports</p>
<p class="sports-travel" href="#lets">Weather</p>
<p class="sports-travel">Shop</p>
<p class="sports-travel">earth</p>
<p class="sports-travel">travel</p>
</div>
<div >
<iframe class="mySlides" id="frame1" src="frametp.html">
<p>Your browser does not support iframes.</p>
</iframe>
<iframe class="mySlides" id="frame1" src="frametp1.html">
<p>Your browser does not support iframes.</p>
</iframe>
<iframe class="mySlides" id="frame1" src="frametp2.html">
<p>Your browser does not support iframes.</p>
</iframe>
</div>
<div id="but">
<button class="w3-button w3-black w3-display-left" onclick="plusDivs(-1)">❮</button>
<button class="w3-button w3-black w3-display-right" onclick="plusDivs(1)">❯</button>
</div>
<script>
var slideIndex = 1;
showDivs(slideIndex);
function plusDivs(n) {
showDivs(slideIndex += n);
}
function showDivs(n) {
var i;
var x = document.getElementsByClassName("mySlides");
if (n > x.length) {slideIndex = 1}
if (n < 1) {slideIndex = x.length}
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
x[slideIndex-1].style.display = "block";
}
</script>
</body>
</html>