哪位高手帮我看看这个javascript有什么问题啊,鼠标动作后图片都无法显示,但图片地址是正确的?
<SCRIPTLANGUAGE="JavaScript"type="text/javascript">varRightNormImg=newImage(100,100)v...
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
var RightNormImg = new Image(100,100)
var RightUpImg = new Image(100,100)
var RightDownImg = new Image(100,100)
var LeftNormImg = new Image(100,100)
var LeftUpImg = new Image(100,100)
var LeftDownImg = new Image(100,100)
RightNormImg.src = "新闻图片\DevelopedByAlfred26C60B900BFF3198C8A050229484A61E.JPG"
RightUpImg.src = "新闻图片\QY9DE873C4D5FA2BC21861746B87519B98.JPG"
RightDownImg.src = "新闻图片\QY11ABAE79E5895E9777B0DB7A880745B4.JPG"
LeftNormImg.src = "新闻图片\QY28F224F8F97567C2B7ACAA24AB98A7E3.JPG"
LeftUpImg.src = "新闻图片\QY42C4018BFDBEBA39D5D5245882521E40.JPG"
LeftDownImg.src = "新闻图片\QY4968A678D4E32C12BFCAFB8A41C5CBD7.JPG"
function setImage(imgName,type)
{
var imgFile = eval(imgName + type + "Img.src")
document.images[imgName].src = imgFile
}
</SCRIPT>
</HEAD>
<BODY>
<B>请在图像按钮上操作鼠标:</B><P>
<CENTER>
<A HREF="javascript:void(0)"
onMouseOver="setImage('Left','Up')"
onMouseDown="setImage('Left','Down')"
onMouseUp="setImage('Left','Up')"
onMouseOut="setImage('Left','Norm')">
<IMG NAME="Left" SRC="新闻图片\QY28F224F8F97567C2B7ACAA24AB98A7E3.JPG" HEIGHT=100 WIDTH=100 BORDER=0></A>
<A HREF="javascript:void(0)"
onMouseOver="setImage('Right','Up')"
onMouseDown="setImage('Right','Down')"
onMouseUp="setImage('Right','Up')"
onMouseOut="setImage('Right','Norm')">
<IMG NAME="Right" SRC="新闻图片\DevelopedByAlfred26C60B900BFF3198C8A050229484A61E.JPG" HEIGHT=100 WIDTH=100 BORDER= 0></A>
</CENTER>
</BODY> 展开
var RightNormImg = new Image(100,100)
var RightUpImg = new Image(100,100)
var RightDownImg = new Image(100,100)
var LeftNormImg = new Image(100,100)
var LeftUpImg = new Image(100,100)
var LeftDownImg = new Image(100,100)
RightNormImg.src = "新闻图片\DevelopedByAlfred26C60B900BFF3198C8A050229484A61E.JPG"
RightUpImg.src = "新闻图片\QY9DE873C4D5FA2BC21861746B87519B98.JPG"
RightDownImg.src = "新闻图片\QY11ABAE79E5895E9777B0DB7A880745B4.JPG"
LeftNormImg.src = "新闻图片\QY28F224F8F97567C2B7ACAA24AB98A7E3.JPG"
LeftUpImg.src = "新闻图片\QY42C4018BFDBEBA39D5D5245882521E40.JPG"
LeftDownImg.src = "新闻图片\QY4968A678D4E32C12BFCAFB8A41C5CBD7.JPG"
function setImage(imgName,type)
{
var imgFile = eval(imgName + type + "Img.src")
document.images[imgName].src = imgFile
}
</SCRIPT>
</HEAD>
<BODY>
<B>请在图像按钮上操作鼠标:</B><P>
<CENTER>
<A HREF="javascript:void(0)"
onMouseOver="setImage('Left','Up')"
onMouseDown="setImage('Left','Down')"
onMouseUp="setImage('Left','Up')"
onMouseOut="setImage('Left','Norm')">
<IMG NAME="Left" SRC="新闻图片\QY28F224F8F97567C2B7ACAA24AB98A7E3.JPG" HEIGHT=100 WIDTH=100 BORDER=0></A>
<A HREF="javascript:void(0)"
onMouseOver="setImage('Right','Up')"
onMouseDown="setImage('Right','Down')"
onMouseUp="setImage('Right','Up')"
onMouseOut="setImage('Right','Norm')">
<IMG NAME="Right" SRC="新闻图片\DevelopedByAlfred26C60B900BFF3198C8A050229484A61E.JPG" HEIGHT=100 WIDTH=100 BORDER= 0></A>
</CENTER>
</BODY> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询