Advertisement
1_2002 Complete Applications #112286

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

Resumo por IA: 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.

Código fonte
original-source
<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>
Comentários originais (3)
Recuperado do Wayback Machine