pastebin

Private paste #14923: help

<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>

New paste

  Language:
Private   — Wrap long lines  —  1 + 4 =   —  

About this pastebin

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.

New! Try the pastebin command-line tool: paste.py (requires Python and python-beautifulsoup).

30 more recent public pastes


# Title Type Date
1 Untitled ASCII paste by 82.247.183.72 ASCII 14 Mar 2010, 11:36
2 Untitled ASCII paste by 212.126.160.18 ASCII 10 Mar 2010, 16:41
3 QT buttons ASCII 10 Mar 2010, 16:01
4 LinqPad Azure Table storage C# 10 Mar 2010, 08:09
5 Jasssystem ASCII 10 Mar 2010, 06:59
6 Untitled ASCII paste by 82.247.183.72 ASCII 09 Mar 2010, 21:10
7 Untitled ASCII paste by 82.247.183.72 ASCII 09 Mar 2010, 20:53
8 Untitled ASCII paste by 124.85.38.49 ASCII 09 Mar 2010, 13:02
9 Untitled ASCII paste by 77.57.166.143 ASCII 09 Mar 2010, 00:23
10 number-bullet.scm ASCII 08 Mar 2010, 10:57
11 numbers.scm ASCII 08 Mar 2010, 10:57
12 Untitled ASCII paste by 77.57.166.143 ASCII 08 Mar 2010, 03:12
13 Untitled ASCII paste by 82.247.183.72 ASCII 07 Mar 2010, 14:46
14 Untitled ASCII paste by 82.247.183.72 ASCII 07 Mar 2010, 14:45
15 Untitled ASCII paste by 82.247.183.72 ASCII 07 Mar 2010, 14:40
16 Untitled ASCII paste by 82.73.10.131 ASCII 06 Mar 2010, 23:39
17 Untitled ASCII paste by 82.247.183.72 ASCII 05 Mar 2010, 11:58
18 Untitled ASCII paste by 82.247.183.72 ASCII 05 Mar 2010, 11:55
19 Untitled ASCII paste by 82.247.183.72 ASCII 05 Mar 2010, 09:20
20 Untitled ASCII paste by 90.35.20.41 ASCII 04 Mar 2010, 14:22
21 Untitled ASCII paste by 82.247.183.72 ASCII 04 Mar 2010, 11:53
22 Untitled ASCII paste by 82.247.183.72 ASCII 04 Mar 2010, 11:53
23 Untitled ASCII paste by 82.247.183.72 ASCII 03 Mar 2010, 17:01
24 GoUrXoUjFyycZcLdUt Java 02 Mar 2010, 21:32
25 Untitled ASCII paste by 82.247.183.72 ASCII 02 Mar 2010, 10:36
26 Untitled PHP paste by 78.86.108.157 PHP 01 Mar 2010, 08:22
27 Make test ASCII 28 Feb 2010, 20:34
28 Untitled ASCII paste by 82.247.183.72 ASCII 28 Feb 2010, 20:27
29 iptables ASCII 28 Feb 2010, 16:04
30 Untitled ASCII paste by 93.16.194.9 ASCII 27 Feb 2010, 18:31

Powered by the Bulix.org Code Pastebin, by Maxime Petazzoni. View pastebin statistics.