469,319 Members | 2,323 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,319 developers. It's quick & easy.

iframe relative mouse position

Expand|Select|Wrap|Line Numbers
  1. var el = parent.frames['slider'].frameElement.offsetParent;
  2.         var x = 0, y = 0;
  3.  
  4.         while (el) {
  5.             x += el.offsetLeft;
  6.             y += el.offsetTop;
  7.             el = el.offsetParent;
  8.         }
this is not working on fire fox please help
Oct 3 '11 #1
0 943

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Smiley | last post: by
2 posts views Thread by madmike | last post: by
4 posts views Thread by Jay | last post: by
2 posts views Thread by Robert Chan | last post: by
2 posts views Thread by Mojtaba Faridzad | last post: by
19 posts views Thread by wmanzo | last post: by
1 post views Thread by Emanuel | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.