2010-06-23 13 views

Répondre

2

vous pouvez ajouter ceci entre votre balise script:

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

Note: set y et r pour couvrir votre image.

Et quand vous définissez les valeurs par défaut pour iViewer:

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

whereIam est une fonction par défaut disponible avec iViewer.

+0

merci rajan superbe. c'est du travail. –