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
Tóm tắt bởi 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.
Mã nguồn
<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
Bình luận gốc (3)
Được khôi phục từ Wayback Machine