Welcome to the bulix.org / pastebin. Please don't use this pastebin for illegal purposes, defamation or kitten-squashing.
This pastebin is written using PHP and MySQL and relies on Alex Gorbatchev's syntax hhighlighter (JavaScript based). To avoid spam, you will be required to complete a small mathematical challenge when adding a new paste.
<html>
<head>
<title>
Quiz me pls
</title>
<style>
body{overflow-y:hidden;
background:#bb9fd6;
}
#layout{position:absolute;
width:894px;
height:599px;
left:126px;
right:0px;
top:0px;
bottom:0px;
border:1px solid #000000;
overflow:hidden;}
#mybody{position:absolute;
width:894px;
height:524px;
top:70px;
left:0px;
right:0px;
bottom:0px;
background:bb9fd6;
border:1px;
overflow-x:hidden;
overflow-y:auto;}
#header{position:absolute;
width:894px;
height:71px;
left:0px;
right:0px;
top:0px;
bottom:0px;
border:0px solid #000000;
background:url(file:///C:/Documents%20and%20Settings/Owner/Desktop/try.gif);
background-repeat:no-repeat;}
a.nav1, a.nav1:link, a.nav1:visited{text-decoration:none;
text-align:center;
height:30px;
width:114px;
border:0px cornflowerblue;
font-family:verdana;
font-size:12px;
color:black;
margin-top:0px;
margin-left:0px;
margin-bottom:0px;
background:corflowerblue;
line-height:25px;
line-width:25px}
a.nav1:hover{background:black;
color:white;}
h1{font-family:verdana;
font-size:100%;
text-align:center;}
div.sidebar {position: absolute;
background-color: cornflowerblue;
top: 0;
left: 0;
width: 125px;
height: 100%;
padding-left: 6px;
padding-right: 4px;
padding-top: 6px;
font-size: 16pt;
overflow:hidden;}
p.green {font-size:16pt;
color:green;}
</style>
</head>
<body>
<div class="sidebar">
<marquee>Nav links</marquee>
<a class="nav1" href="mainpage.html">Main Page</a>
<a class="nav1" href="instruction.html">Instructions</a>
<a class="nav1" href="quiz.html">Quiz</a>
</div>
<div id="layout">
<div id ="header"
</div>
<div id="mybody">
<br>
<h1>Home</h1>
<script type="text/javascript">
window.onload = function() {
var r;
var row;
var cell;
var dup = new Boolean();
var stack = new Array();
stack[0]="question 1";
stack[1]="question 2";
stack[2]="question 3";
stack[3]="question 4";
stack[4]="question 5";
stack[5]="question 6";
stack[6]="question 7";
stack[7]="question 8";
stack[8]="question 9";
stack[9]="question 10";
stack[10]="question 11";
stack[11]="question 12";
stack[12]="question 13";
stack[13]="question 14";
stack[14]="question 15";
stack[15]="question 16";
stack[16]="question 17";
stack[17]="question 18";
stack[18]="question 19";
stack[19]="question 20";
stack[20]="question 21";
stack[21]="question 22";
stack[22]="question 23";
stack[23]="question 24";
stack[24]="question 25";
var container = document.getElementById('results');
for (var i = 0; i < 10 ; i++) {
do {
dup = false;
r = Math.random() * 25;
r = Math.round(r);
for (var j = 0; j < stack.length; j++) {
if (r == stack[j]) {
dup = true;
break;
}
}
} while(dup == true);
stack.push(r);
row = document.createElement('tr');
cell = document.createElement('td');
cell.appendChild(document.createTextNode(i));
row.appendChild(cell);
cell = document.createElement('td');
cell.appendChild(document.createTextNode(stack[stack.length - 1]));
row.appendChild(cell);
container.appendChild(row);
}
}
</script>
</head>
<body>
<table>
<thead>
<tr>
<td>Item no.</td>
<td>Question</td>
</tr>
</thead>
<tbody id="results">
</tbody>
</table>
</div>
</div>
</body>
</html>
Powered by the Bulix.org Code Pastebin, by Maxime Petazzoni. View pastebin statistics.