listscript cgi id=51




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=48
listscript cgi id=33
listscript cgi id=40
listscript cgi id=29
listscript cgi id=6
listscript cgi id=24
listscript cgi id=38
listscript cgi id=25
listscript cgi id=20
listscript cgi id=47
listscript cgi id=15
listscript cgi id=49
listscript cgi id=39
listscript cgi id=36
listscript cgi id=12
listscript cgi id=30
listscript cgi id=26

więcej podobnych podstron