CSS/VBScript change background-color of txt-fields after type in
A real good way to show wich txtfields are required in a form! If you type in some stuff in the txtfield, the color change. In the example the color change from red to green.
AI
Podsumowanie AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Kod źródłowy
<SCRIPT Language = "vbscript"> Function OC(object) if len(object.value)>0 then object.style.backgroundcolor="#00FF00" object.style.color="#000000" else object.style.backgroundcolor="#FF0000" object.style.color="#FFFFFF" end if End Function </SCRIPT>
Oryginalne komentarze (3)
Odzyskane z Wayback Machine