-
Notifications
You must be signed in to change notification settings - Fork 0
/
col3.html
48 lines (43 loc) · 1.11 KB
/
col3.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
<!DOCTYPE html>
<html>
<head>
<title>COLOR TEST </title>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Luckiest+Guy" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Bad+Script" rel="stylesheet">
<a href="col4.html">NEXT</a>
</head>
<style>
.col1{
color:red;
}
.main1{
color:blue;
}
.main2{
color:red;
}
</style>
<body>
<h1 class="head" style="font-family: 'Bad Script', cursive;
font-size:40px;"> Choose the color of the word (Not the Text Fill)</h1>
<h1 class="col1" style="font-family: 'Luckiest Guy', cursive;
font-size:110px;">BLUE</h1>
<button id= "b1" onclick="funct2()" class="main1">BLUE</button>
<button id = "b2" onclick="funct1()" class="main2">RED</button>
<script>
var a1 = document.getElementById('b1');
var a2 = document.getElementById('b2');
function funct1(){
document.cookie="l4="+parseFloat(12.5);
a1.disabled= true;
a2.disabled= true;
}
function funct2(){
document.cookie="r4="+parseFloat(12.5);
a1.disabled= true;
a2.disabled= true;
}
</script>
</body>
</html>