This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What changes do i need to make to work in all other browsers

 
Chennarao Marvatu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends ,
I have written some code that gives the image cooardinates when when i click
on the image.butThis code is working only in IE . This code should wotk in all the browsers like NS,mac etc..what changes i have to make in this code.
please help me out..

Thanks in advance
Chennarao

function klikk()
iX = window.event.offsetX;
iY = window.event.offsetY;
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is how I would do it:


Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic