我有这个脚本
我想从数据库中选择图像有人可以帮助我吗?或者给我一个脚本的例子,这样我就可以看到它是如何完成的
<SCRIPT LANGUAGE="JAVASCRIPT">
if (document.images) {
image1 = new Image
image2 = new Image
image1.src = "/images/image01.jpg"
image2.src = "/images/image02.jpg"
}
</SCRIPT>
<p><a href="#"
onMouseover="document.imagename.src=image2.src"
onMouseout="document.imagename.src=image2.src">text 1</a> <br />
<a href="#"
onMouseover="document.imagename.src=image1.src"
onMouseout="document.imagename.src=image1.src">text 2</a></p>
<img src="/images/image01.jpg" name="imagename" border="0" />