OZONE Asylum
Forums
DHTML/Javascript
cursor position
This page's ID:
28384
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
i'm trying to detect the cursorpostion on click heres my js [code] var IE = document.all?true:false var tempX = 0 var tempY = 0 if(IE){ // grab the x-y pos.s if browser is IE tempX = event.clientX + document.body.scrollLeft tempY = event.clientY + document.body.scrollTop }else{ // grab the x-y pos.s if browser is NS tempX = e.pageY tempY = e.pageX } [/code] it workes fine with IE but wont work for firefox whats going wrong???
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »