friendly interface (color change dinamically where the cursor is)
help user type on screen. it is good specially if you have many controls (textboxes etc) on a page.
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.
ซอร์สโค้ด
user friendly interface plus very simple code in javascript.
It uses eval to dinamically understand the id of the control being passed and Change color of the control where the cursor is.
<HTML>
<body>
<BR>
<INPUT type="text" id=text1 name=text1 onfocus="focusobj(this.id)" onblur="blurobj(this.id)"><BR>
<INPUT type="text" id=text2 name=text2 onfocus="focusobj(this.id)" onblur="blurobj(this.id)"><BR>
<INPUT type="text" id=text3 name=text3 onfocus="focusobj(this.id)" onblur="blurobj(this.id)"><BR>
<SELECT id=select1 name=select1 onfocus="focusobj(this.id)" onblur="blurobj(this.id)">
<OPTION>aaaa</OPTION>
<OPTION>bbbb</OPTION>
</SELECT>
</BODY>
</HTML>
<SCRIPT LANGUAGE=javascript>
<!--
function focusobj(value){
eval(value+'.style.backgroundColor = "bisque"')
}
function blurobj(value){
eval(value+'.style.backgroundColor = "white"')
}
/*
If by any means you have a form and your form name is myform. then the code would be something
like this:
eval('document.myform.'+value+'.style.backgroundColor = "bisque"')
*/
//-->
</SCRIPT>
Upload
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine