W
Wiseman
Hello,
I am making a web page and have included a JavaScript named crazy clock. The
page displays fine in IE but not in Firefox. The event console says: "event
is not defined" at line 143. According to notepad plus, line 143 is:
ymouse =
(ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
And the whole function is:
function Mouse(evnt){
ymouse =
(ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;
}
I am new to javascript and would be grateful if somebody told me how to
solve this problem.
Regards.
I am making a web page and have included a JavaScript named crazy clock. The
page displays fine in IE but not in Firefox. The event console says: "event
is not defined" at line 143. According to notepad plus, line 143 is:
ymouse =
(ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
And the whole function is:
function Mouse(evnt){
ymouse =
(ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;
}
I am new to javascript and would be grateful if somebody told me how to
solve this problem.
Regards.