listscript fcgi id=51












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


Wyszukiwarka

Podobne podstrony:
listscript fcgi id=33
listscript fcgi id=96
listscript fcgi id=2
listscript fcgi id=61
listscript fcgi id=45
listscript fcgi id=6
listscript fcgi id=124
listscript fcgi id=90
listscript fcgi id=87
listscript fcgi id=57
listscript fcgi id=54
listscript fcgi id=22
listscript fcgi id=151
listscript fcgi id=5
listscript fcgi id=39
listscript fcgi id=47
listscript fcgi id=89
listscript fcgi id=157

więcej podobnych podstron