2010-06-23 109 views

回答

2

,你可以在你的腳本標籤之間補充一點:

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

:設置Y和R覆蓋你的形象。

這時候你設置iviewer默認值:

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

whereIam可與iviewer默認功能。

+0

感謝rajan精湛。是工作。 – 2010-06-25 08:26:14