-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (35 loc) · 1.1 KB
/
index.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
<DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv = "content-type" content = "text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="style.css">
<title>Mi primera página</title>
</head>
<body>
<img id="logo" src="images/fondo.jpg" WIDTH=550 HEIGHT=400" />
<a href="#fullscreen" id="boton">aquí</a>
<script type="text/javascript">
fullscreen = function(e){
if (e.webkitRequestFullScreen) {
e.webkitRequestFullScreen();
} else if(e.mozRequestFullScreen) {
e.mozRequestFullScreen();
}
}
document.getElementById('boton').onclick = function(){
cambiaTamanioGrande();
fullscreen(document.getElementById('logo'));
}
function cambiaTamanioGrande(){
logo = document.getElementById("logo");
logo.width = 1500;
logo.height = 950;
}
function cambiaTamanioPequeño(){
logo = document.getElementById("logo");
logo.width = 550;
logo.height = 400;
}
</script>
</body>
</html>