dColor=“#FF0000“;
onmouseout=this.style.backgroundColor=“#FFFFFF“)}
〈/style〉
〈style type=“text/css“〉
input {star : expression(onmouseover=this.style.backgroundColor=“#FF0000“;
onmouseout=this.style.backgroundColor=“#FFFFFF“)}
〈/style〉
〈input type=“text“〉
〈input type=“text“〉
〈input type=“text“〉
可结果却是出现脚本出错,正确的写法应该把CSS样式的定义写进函数内,如下所示:
〈style type=“text/css“〉
input&nbs页码:[1] [2] [3] [4] [5] [6] 第5页、共6页 |