用JS放大图片特效,在放大图片特效上加个连接
图片特效是用JS做的,当鼠标点击图片的时候图片就会变大(像放大镜一样),这样的话,那个点击功能只有放大功能,没有连击功能了,我想在放大图片上加个连接。<a href="index.asp"><img class="imgsrc" src="<%=trim(rs("bookpic"))%>" alt="<%=rs("bookname")%>" border="0" align="absmiddle" /></a>图片放大代码是this.img.onclick = function() {
if(!this.O.click){
if(diapo.zo && diapo.zo != this) diapo.zo.onclick();
this.O.click = true;
this.O.x_origin = (diapo.nw - (this.O.w_origin * diapo.zoomClick)) / 2;
this.O.y_origin = (diapo.nh - (this.O.h_origin * diapo.zoomClick)) / 2;
diapo.zo = this;
setOpacity(this,diapo.transparency);
} else {
this.O.click = false;
this.O.over = false;
this.O.resize();
diapo.zo = 0;
}
}谢谢各位高手解答··