演示示例
1.图片以及放年夜应用没有同的图片(巨细图片要比例相反)
也能够指定放年夜倍数(绝对于小图片较量争论)
new imageZoom("img1",{
//mul:6,//指定放年夜的倍数
onShow:function() {
document.title="show,you are moving on the image.";
},
onHide:function() {
document.title="you mouse move out the image";
},
bigImg:"../images/tong.jpg"//指定放年夜图片门路
});
标签: javascript 图片放大
版权声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。