| Tytuł |
Kolorowe t?o |
| Przegląd głosów |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| 1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
|
| URL |
http://www.megaskrypty.com |
| Głosuj |
Ilość głosów : 7, Średnia : 8.14 |
| Data dodania |
26-07-2004 |
| ETC |
Odsłon : 1197, Wizyt : 2881, Komentarz : 0
|
Ten skrypt pozwoli odwiedzaj?cemu zmieni? kolor t?a strony. Po naci?ni?ciu przycisku zmienia si? kolor t?a - kolory mo?na dowolnie modyfikowa? zmieniaj?c warto?ci onclick="changeBackground('#FFFFFF')"
SKRYPT:
<script language="JavaScript">
<!-- hide this script tag's contents from old browsers
// keep track of whether we just computed display.value
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
}
<!-- done hiding from old browsers -->
</script>
PRZYCISKI:
<form method="POST" name="background">
<p align="center"><input type="button" value="?ó?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')"> </p>
</form>
|
|
|