Trying to convert some interactives in IE to work in FF but problems with mouse events. According to various sources on net onmousedown= or onclick= in Firefox automatically passes the mouse event as 1st argument of the function, then you can or it with the global event to get something you can use in IE or Firefox eg:
jscript:
function gete(e)
{
ev = e || window.event;
etc.
}
HTML:
<span id=holly onclick=gete()>etc.
This does not work, e is reported as having no properties and if gete has explicit arguments you get same passed in IE as Firefox, this event argument that FF is supposed to pass does not exist. I don't find examples from the net work either.
mousemove does seem to work as stated so I could store last value obtained in that but it seems messy. Any other ideas?
Cheers
jscript:
function gete(e)
{
ev = e || window.event;
etc.
}
HTML:
<span id=holly onclick=gete()>etc.
This does not work, e is reported as having no properties and if gete has explicit arguments you get same passed in IE as Firefox, this event argument that FF is supposed to pass does not exist. I don't find examples from the net work either.
mousemove does seem to work as stated so I could store last value obtained in that but it seems messy. Any other ideas?
Cheers
Comment