常用js

<input type="text" value="mm" onfocus="if(value=='mm'){value=''}" onblur="if(value==''){value='mm'}"/>//点击时文字消失,失去焦点时文字再出现  

 

<input type="button" name="submit1" value="刘伟" onMouseOut="this.style.color='yellow'" onMouseOver="this.style.color='red'"/>//鼠标移入移出时颜色变化 

 

<input type=submit value='订阅' style="border:1px solid #666666; height:17px; width:25px; font-size:9px;  
  
color:yellow" name="submit">//平面按钮  

 

posted @ 2015-01-09 17:25  净静竞——小晴  阅读(154)  评论(0编辑  收藏  举报