如上框
點下去之後就會變成空白,離開之後又會出現提示字
function on_focus(obj){
obj.style.color="";
if (obj.value=="Search") obj.value="";
}
function out_focus(obj){
obj.style.color="#CCCCCC";
obj.value="Search";
}
input event
onfocus(this):當該表單欄位取得焦點時
onblur(this):當該表單欄位失去焦點時
4.21.2010
javascrtip input text box 文字變淺
張貼者:
Jean Pan
於
星期三, 4月 21, 2010
訂閱:
張貼留言 (Atom)



沒有留言:
張貼留言