Helion dhtml site
var computed = false
var decimal = 0
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()
{
window.open("","Display window","toolbar=no,directories=no,menubar=no");
}
function clear (form)
{
form.input.value = 0
form.display.value = 0
decimal=0
}
function changeBackground(hexNumber)
{
document.bgColor=hexNumber
}
Zmiana koloru tła 2[strona główna] [skrypty]
<script LANGUAGE="JavaScript">
var computed = false
var decimal = 0
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()
{
window.open("","Display window","toolbar=no,directories=no,menubar=no");
}
function clear (form)
{
form.input.value = 0
form.display.value = 0
decimal=0
}
function changeBackground(hexNumber)
{
document.bgColor=hexNumber
}
</script><FORM METHOD="POST"
NAME="background">
<INPUT TYPE="button" VALUE="zółty"
ONCLICK="changeBackground('#FFF000')">
<INPUT TYPE="button" VALUE="czarny"
ONCLICK="changeBackground('#000000')">
<INPUT TYPE="button" VALUE="biały"
ONCLICK="changeBackground('#FFFFFF')">
<INPUT TYPE="button" VALUE="zielony"
ONCLICK="changeBackground('#00FF00')">
<INPUT TYPE="button" VALUE="niebieski"
ONCLICK="changeBackground('#0000FF')">
<INPUT TYPE="button" VALUE="pomarańczowy"
ONCLICK="changeBackground('#FF8000')">
<INPUT TYPE="button" VALUE="szary"
ONCLICK="changeBackground('#c0c0c0')">
<INPUT TYPE="button" VALUE="czerwony"
ONCLICK="changeBackground('#FF0000')">
</FORM>© Wydawnictwo Helion
Wyszukiwarka
Podobne podstrony:
listscript cgi id=48listscript cgi id=33listscript cgi id=40listscript cgi id=29listscript cgi id=6listscript cgi id=24listscript cgi id=38listscript cgi id=25listscript cgi id=20listscript cgi id=47listscript cgi id=15listscript cgi id=49listscript cgi id=39listscript cgi id=36listscript cgi id=12listscript cgi id=30listscript cgi id=26więcej podobnych podstron