1.文本框焦点问题 onBlur:当失去输入焦点后产生该事件
onFocus:当输入获得焦点后,产生该文件
Onchange:当文字值改变时,产生该事件
Onselect:当文字加亮后,产生该文件
点击时文字消失,失去焦点时文字再出现
2.网页按钮的特殊颜色 style="background-color:rgb(235,207,22)">
3.鼠标移入移出时颜色变化
onMouseOver=this.style.color="red" class="button">
4.平面按钮 5.按钮颜色变化 6.平面输入框 7.使窗口变成指定的大小 Changing Background Colors 17.将按钮的特征改变
本例按钮的代码如下:
onmouseout="this.className='style1'" class="style1">
18.改变按钮的图片.
本例的按钮代码如下:
onmouseout="this.className='style3'" class="style3">
19.打印页面 打印本稿
20.可以直接写html语言 document.write("");
21.改变下拉框的颜色