Jump to content
php.lv forumi

FF + event problēma


Delfins

Recommended Posts

Final result:

 

IE_6 / FF_1.0.7 / Opera_8.5

 

function handleImageClick(e) {
   var posx = 0;
   var posy = 0;
   if ( typeof(e) == "undefined" ) var e = window.event;
   if ( typeof(opera) != "undefined" || typeof(document.all) != "undefined" ) {
       posx = e.offsetX;
       posy = e.offsetY;
   } else {
       posx = e.pageX - this.x;
       posy = e.pageY - this.y;
   }
}

Edited by Delfins
Link to comment
Share on other sites

×
×
  • Create New...