PullDown

PullDown - {elements[5.value=""...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 <HTML> <HEAD><TITLE>Stress Converter with Pull Down List</TITLE> <SCRIPT LANGUAGE=JavaScript> <!-- function convert(){ with(document.units){ {elements[5].value=""+document.units.val.value+" psi" } {elements[5].value=""+document.units.val.value*0.001+" ksi" } {elements[5].value=""+document.units.val.value*0.00689475728+" MPa" } {elements[5].value=""+document.units.val.value*1000+" psi" } {elements[5].value=""+document.units.val.value*1+" ksi" } {elements[5].value=""+document.units.val.value*6.894757279999999+" MPa" }
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: {elements[5].value=""+document.units.val.value*145.03773800721814+" psi" } if((ori.selectedIndex==2)&&(con.selectedIndex==1)) {elements[5].value=""+document.units.val.value*0.14503773800721817+" ksi" } if((ori.selectedIndex==2)&&(con.selectedIndex==2)) {elements[5].value=""+document.units.val.value*1+" ksi" } }} } //--></SCRIPT> </HEAD> <BODY> <FORM NAME=units> Choose the original unit. <SELECT NAME=ori> <OPTION>psi <OPTION>ksi <OPTION>MPa </SELECT> <BR> Choose the unit to convert to. <SELECT NAME=con> <OPTION>psi Sheet1 Page 2 <OPTION>ksi <OPTION>MPa </SELECT> <BR> Enter the value to be converted: <INPUT TYPE=text NAME=val VALUE="" SIZE=10> <BR> <INPUT TYPE=button VALUE="Convert" onclick="convert()"> <INPUT TYPE=reset VALUE="Reset Form"> <BR> <TEXTAREA ROWS=3 COLS=27 WRAP=virtual></TEXTAREA> </FORM> </BODY> </HTML>...
View Full Document

Page1 / 2

PullDown - {elements[5.value=""...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online