listscript.cgi

Lemur zaprasza

Konwerter miar







Uwaga! Strona musi mieæ z znaczniku BODY funkcje OnLoad=init()



Convert from:


cm
m
km
feet
yds
mi


Convert to:



cm
m
km
feet
yds
mi

























<SCRIPT LANGUAGE="JavaScript">
<!-- hide this script tag's contents from old browsers
// keep track of whether we just computed display.value
// the following scripts are © Voth Communications

var computed = false
var destination = "http://www.seercom.com/vothcom/"
var decimal = 0
var maxtime = 30
var delayID = null

function init ()
{
document.calculator.input.value = 0
document.calculator.display.value = 0
}

function today ()
{
var x=10
var cancelTime
initial_time = new Date()
window.alert(initial_time.toString())
cancelTime=setTimeout('window.alert(10)',10000)
}

function updateTime()
{
timeOfDay = new Date()
currentTime = timeOfDay.toLocaleString()
document.clock.face.value = currentTime
window.alert(currentTime)
}

function initClock()
{
clearTimeout(delayID)
displayDate()
}

function displayDate ()
{
var timeOfDay = new Date()
var month = timeOfDay.getMonth()
var day = timeOfDay.getDate()
var hours = timeOfDay.getHours()
var minutes = timeOfDay.getMinutes()
var seconds = timeOfDay.getSeconds()
var currentTime
currentTime = "" + (hours <12) ? hours : hours-12
currentTime += (minutes < 10) ? ":0:" + minutes : ":" + minutes
currentTime += (seconds < 10) ? ":0" + seconds : ":" + seconds
currentTime += (hours <12) ? " a.m." : " p.m."
document.dateAndTime.date.value = currentTime
delayID = setTimeout("displayDate()",1000)
}

function convert (entryform, from, to)
{
convertfrom = from.selectedIndex
convertto = to.selectedIndex
entryform.display.value = (entryform.input.value * from[convertfrom].value / to[convertto].value )
}

function addChar (input, character)
{
if((character=='.' && decimal=="0") || character!='.')
{
(input.value == "" || input.value == "0") ? input.value = character : input.value += character
convert(input.form,input.form.measure1,input.form.measure2)
computed = true
if (character=='.')
{
decimal=1
}
}
}

function openVothcom()
{
msgWindow=window.open("gateway.html","displayWindow","toolbar,menubar,locations,scrollbars,width=300,height=450");
}

function clear (form)
{
form.input.value = 0
form.display.value = 0
decimal=0
}

function changeBackground(hexNumber)
{
document.bgColor=hexNumber
}

<!-- done hiding from old browsers -->

</SCRIPT><FORM METHOD="POST" NAME="calculator">
<TABLE BORDER="3" CELLPADDING="3">
<TR><TH>Convert from:</TH>
<TD><INPUT SIZE="15" NAME="input" ONCHANGE="convert(this.form,form.measure1, form.measure2)"></TD>
<TD><SELECT NAME="measure1" ONCHANGE="convert(this.form,this, form.measure2)">
<OPTION VALUE="0.01" SELECTED>cm
<OPTION VALUE="1">m
<OPTION VALUE="1000">km
<OPTION VALUE="0.3048">feet
<OPTION VALUE="0.9144">yds
<OPTION VALUE="1610">mi
</SELECT>
</TD>
<TR><TH>Convert to:</TH>
<TD><INPUT SIZE="15" NAME="display"></TD>
<TD>
<SELECT NAME="measure2" ONCHANGE="convert(this.form,form.measure1, this)">
<OPTION VALUE="0.01">cm
<OPTION VALUE="1">m
<OPTION VALUE="1000">km
<OPTION VALUE="0.3048" SELECTED>feet
<OPTION VALUE="0.9144">yds
<OPTION VALUE="1610">mi
</SELECT>
</TD>
</TABLE>
<TABLE>
<TR>
<TD><INPUT TYPE="button" VALUE="7" ONCLICK="addChar(this.form.input,'7')"></TD>
<TD><INPUT TYPE="button" VALUE="8" ONCLICK="addChar(this.form.input,'8')"></TD>
<TD><INPUT TYPE="button" VALUE="9" ONCLICK="addChar(this.form.input,'9')"></TD>
<TR>
<TD><INPUT TYPE="button" VALUE="4" ONCLICK="addChar(this.form.input,'4')"></TD>
<TD><INPUT TYPE="button" VALUE="5" ONCLICK="addChar(this.form.input,'5')"></TD>
<TD><INPUT TYPE="button" VALUE="6" ONCLICK="addChar(this.form.input,'6')"></TD>
<TR>
<TD><INPUT TYPE="button" VALUE="1" ONCLICK="addChar(this.form.input,'1')"></TD>
<TD><INPUT TYPE="button" VALUE="2" ONCLICK="addChar(this.form.input,'2')"></TD>
<TD><INPUT TYPE="button" VALUE="3" ONCLICK="addChar(this.form.input,'3')"></TD>
<TR>
<TD><INPUT TYPE="button" VALUE="0" ONCLICK="addChar(this.form.input,'0')"></TD>
<TD><INPUT TYPE="button" VALUE="." ONCLICK="addChar(this.form.input,'.')"></TD>
</TABLE>
</FORM>


  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • teen-mushing.xlx.pl
  • WÄ…tki
    Powered by wordpress | Theme: simpletex | © Lemur zaprasza