You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.5 KiB
HTML
69 lines
1.5 KiB
HTML
4 years ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>Homeostat 2</title>
|
||
|
<meta http-equiv="refresh" content="5; url=./room_3(copy).html">
|
||
|
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
|
||
|
<style type="text/css">
|
||
|
|
||
|
body {font-family: mono;
|
||
|
position: relative;
|
||
|
background-image: url('./img/6.jpg');
|
||
|
}
|
||
|
|
||
|
h1 {background-color: white;
|
||
|
width: 215px;
|
||
|
padding: 6px;}
|
||
|
|
||
|
#n1 {width: 172px;
|
||
|
height: 114px;
|
||
|
position: absolute;
|
||
|
left: 369px;
|
||
|
top: 596px;
|
||
|
background-position: 344px 145px;}
|
||
|
|
||
|
#n2 {width: 172px;
|
||
|
height: 116px;
|
||
|
position: absolute;
|
||
|
left: 679px;
|
||
|
top: 594px;
|
||
|
background-position: 504px 730px;}
|
||
|
|
||
|
#n3 {width: 306px;
|
||
|
height: 106px;
|
||
|
position: absolute;
|
||
|
left: 1288px;
|
||
|
top: 310px;
|
||
|
background-position: -40px 74px;
|
||
|
}
|
||
|
|
||
|
a#n1:hover {
|
||
|
background-image: url(./img/25.jpg);
|
||
|
}
|
||
|
a#n2:hover {
|
||
|
background-image: url(./img/15.jpg);
|
||
|
}
|
||
|
a#n3:hover {
|
||
|
background-image: url(./img/9.jpg);
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1><a href="./room_2.html" target="_parent">Homeostat 2</a></h1>
|
||
|
<img id="img1" src="./img/4.jpg" >
|
||
|
<a class="h" id="n1"href=""></a>
|
||
|
<a class="h" id="n2"href=""></a>
|
||
|
<a class="h" id="n3"href=""></a>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
var room = ["living_room.html", "dining_room.html"];
|
||
|
|
||
|
function randomInt(){ return Math.ceil(Math.random() * 2)-1; }
|
||
|
|
||
|
$('.h').each(function(){
|
||
|
$(this).attr("href", room[randomInt()] );
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|