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.
31 lines
691 B
HTML
31 lines
691 B
HTML
4 years ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>Home</title>
|
||
|
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
|
||
|
<script type="text/javascript" src="./setPage.js"></script>
|
||
|
<style type="text/css">
|
||
|
body {font-family: mono;
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
iframe{width: 490px;
|
||
|
height: 340px;}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<a href=""><img id="img1" style="width: 640px;" src="" ></a>
|
||
|
<script type="text/javascript">
|
||
|
setPageT();
|
||
|
|
||
|
var room = ["attic.html", "bedroom.html","long_corridor.html"];
|
||
|
|
||
|
function randomInt2(){ return Math.ceil(Math.random() * 3);}
|
||
|
|
||
|
$('a').each(function(){
|
||
|
$(this).attr("href", room[randomInt2()] );
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|