All pastes #245328 Raw Edit

Miscellany

public text v1 · immutable
#245328 ·published 2006-11-10 21:38 UTC
rendered paste body

<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<TITLE> Assignment 2c </TITLE>
<SCRIPT language="javascript"> 

function order(){
	var = total
if (document.orderform.bookname[0].selected)
			total ++
if (document.orderform.bookname[1].selected)
			total ++
if (document.orderform.bookname[2].selected)
			total ++			
if (document.orderform.bookname[3].selected)
			total ++			
if (document.orderform.bookname[4].selected)
			total ++			
if (document.orderform.bookname[5].selected)
			total ++			
if (document.orderform.bookname[6].selected)
			total ++
if (document.orderform.bookname[7].selected)
			total ++
if (document.orderform.bookname[8].selected)
			total ++
if (document.orderform.bookname[9].selected)
			total ++
			}
			
			window.alert("You have ordered +total")
</head>

<body>

<H1><CENTER>Please select the titles that you wish to order from the
following list<CENTER></H1><br>

<form name="orderform"><br>
<CENTER><SELECT NAME="bookname"
<OPTION VALUE="0"> Programming and Problem Solving with Java</option>
<OPTION VALUE="1"> Developing Web Applications with ASP</option>
<OPTION VALUE="2"> Programming and Problem Solving with Visual Basic.NET</option>
<OPTION VALUE="3"> Active Server Pages 3.0 from Scratch</option>
<OPTION VALUE="4"> Starting Out with C++</option>
<OPTION VALUE="5"> Action Script for Flash MX</option>
<OPTION VALUE="6"> Teach Yourself Active Server Pages 3.0</option>
<OPTION VALUE="7"> Action Script in Flash MX</option>
<OPTION VALUE="8"> Cascading Style Sheets in HTML</option>
<OPTION VALUE="9"> C++ How To Program</option>
</SELECT>
<INPUT TYPE="button" VALUE="Order Selected Titles"> onClick="order()"><br>

</form><br>
</body>

</SCRIPT>
</HTML>