开发者

make background image to link

开发者 https://www.devze.com 2023-01-04 08:08 出处:网络
i am us开发者_运维知识库ing this jquery iviewer i want to link these image thumble to another link.

i am us开发者_运维知识库ing this jquery iviewer

i want to link these image thumble to another link.

can i use image map for this or any other way to make image thumble to link. these are really add with full image.


you can add this in between your script tag:

var objects = [{x: 0, y: 800, r: 800, isInObject: isInCircle, title: 'whole image', getCenter: getRectCenter }]

note: set y and r to cover your image.

And this when you set defaults for iviewer:

onClick: function(coords) {
var object = whereIam(coords.x, coords.y);                       
if (object) 
window.location="cart.html";
}

whereIam is a default function available with iviewer.

0

精彩评论

暂无评论...
验证码 换一张
取 消