User Profile

Collapse

Profile Sidebar

Collapse
sqlexeption
sqlexeption
Last Activity: Feb 14 '08, 09:22 AM
Joined: Feb 11 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sqlexeption
    replied to not working both on IE and Mozilla
    [CODE=javascript]function doSomething(e) {
    var posx = 0;
    var posy = 0;
    if (!e) var e = window.event;
    if (e.pageX || e.pageY) {
    posx = e.pageX;
    posy = e.pageY;
    }
    else if (e.clientX || e.clientY) {
    posx = e.clientX + document.body.s crollLeft
    + document.docume ntElement.scrol lLeft;
    posy = e.clientY + document.body.s crollTop
    + document.docume ntElement.scrol lTop;...
    See more | Go to post
    Last edited by acoder; Feb 14 '08, 11:25 AM. Reason: Added code tags

    Leave a comment:


  • sqlexeption
    started a topic not working both on IE and Mozilla

    not working both on IE and Mozilla

    [CODE=javascript]document.onclic k = getcoordinate;

    var mosX = 0;
    var mosY = 0;

    function getcoordinate(e )
    {
    if (!e) var e = window.event;

    mosX = e.clientX + document.body.s crollLeft;
    mosY = e.clientY + document.body.s crollTop;

    return true;
    }
    [/CODE]
    -----

    <body onclick="getcoo rdinate()">

    -----...
    See more | Go to post
    Last edited by acoder; Feb 11 '08, 11:48 AM. Reason: Added code tags
No activity results to display
Show More
Working...