我是用do
cument.getElementById("pic"
.background="./img/3.jpg";
得到背影图片的id再改变背景的.
<td id="ceshi"
onMouseOver="changepic2()"
width="204"
height="20"><a href="login.jsp"><strong><h3><font color="#0099FF">在线心理测评模块</font></h3></strong></a></td>
脚本是:
function changepic2(){
document.getElementById("pic"
.width="945";
document.getElementById("pic"
.height="430";
document.getElementById("pic"
.align="center";
document.getElementById("pic"
.valign="middle";
document.getElementById("pic"
.background="./img/1.jpg";
}
请问:
document.getElementById("pic"
. 定义个什么来接住它,
这样写太麻烦.