如何实现产品展示效果
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>JS特效学院|简单的图片放大展示效果</title>
<style>
.spic a img{-moz-opacity:0.5; filter:alpha(opacity=50);border:0px;}
.spic a:hover{font-size:9px;}
.spic a:hover img{-moz-opacity:0.5; filter:alpha(opacity=100);cursor:hand;}
</style>
<script>
function seeBig(thispic) {
if(thispic==1){
document.all.viewPic.innerHTML='<img border=0 src=http://www.'
}
if(thispic==2){
document.all.viewPic.innerHTML='<img border=0 src=http://www.'
}
if(thispic==3){
document.all.viewPic.innerHTML='<img border=0 src=http://www.'
}
if(thispic==4){
document.all.viewPic.innerHTML='<img border=0 src=http://www.'
}
}
</script>
</head>
<body>
<table border="0" width="100%" cellspacing="3" cellpadding="3">
<tr>
<td align="center"><span class="spic">
<a href="javascript:seeBig(1)" style="cursor:pointer">
<img border="0" src="http://www. width="50" height="50"></a></span></td>
<td align="center"><span class="spic">
<a href="javascript:seeBig(2)" style="cursor:pointer">
<img border="0" src="http://www. width="50" height="50"></a></span></td>
<td align="center"><span class="spic">
<a href="javascript:seeBig(3)" style="cursor:pointer">
<img border="0" src="http://www. width="50" height="50"></a></span></td>
<td align="center"><span class="spic">
<a href="javascript:seeBig(4)" style="cursor:pointer">
<img border="0" src="http://www. width="50" height="50"></a></span></td>
</tr>
<tr>
<td colspan="4" align="center" id="viewPic"><img border="0" src="http://www.
</tr>
</table>
</body>
</html>
我想利用上面这个js实现调用数据库显示产品展示效果
我的页面是左边读取数据库显示出产品小图片的列表.点击小图片在右边又显示出相应的产品大图片列表
现在我的问题是,怎么样才可以把点击小图片后把大图片的地址传到js,让它在在右边显示出来