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
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.
소스 코드
<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> Upload
원본 댓글 (3)
Wayback Machine에서 복구됨