关于图片切换的求助!!!!
放在head<script>
function changeimage(towhat,url){
if (document.images){
document.images.targetimage.src=towhat.src
gotolink=url
}
}
function warp(){
window.location=gotolink
}
</script>
<script language="JavaScript1.1">
var myimages=new Array()
var gotolink="#"
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}
preloadimages("image1.gif","image2.gif","image3.gif")
</script>
放在body中
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="15%" valign="top" align="left">请选择图片<p><a
href="#" onMouseover="changeimage(myimages[0],this.href)">图片 1</a></p>
<p><a onMouseover="changeimage(myimages[1],this.href)" href="#">图片 2</a></p>
<p><a href="#" onMouseover="changeimage(myimages[2],this.href)">图片 3</a></td>
<td width="85%" valign="middle" align="left"><p align="center"><a href="javascript:warp()"><img
src="image1.gif" name="targetimage" border="0" width="140" height="40"></a> </td>
</tr>
</table>
这是个图片切换的东西
怎么把图片改成自己的图片啊?
改什么地方啊 ???
谢谢指点 啊