Just found some kid's games I did a few years ago don't work in Chrome or Opera anymore, although still ok in IE and Edge.
Narrowed it down to variables x,y being treated as style properties. This does not work as x, y have no values inside the with:
x = e.pageX - x0; y = e.pageY - y0;
with (imgs[n].style)
{
Whereas this is ok:
xx = e.pageX - x0; yy = e.pageY - y0;
with (imgs[n].style)
{
Can't find anything in CSS style lists to suggest x is a style property. Gotta go through a whole lot of code and change x,y to summit else now. Is it usual for some browsers to invent their own properties and, if so, any lists? Ta.
Narrowed it down to variables x,y being treated as style properties. This does not work as x, y have no values inside the with:
x = e.pageX - x0; y = e.pageY - y0;
with (imgs[n].style)
{
if (x>=pos(left))
{
{
blah blah
Whereas this is ok:
xx = e.pageX - x0; yy = e.pageY - y0;
with (imgs[n].style)
{
if (xx>=pos(left))
{
{
blah blah
Can't find anything in CSS style lists to suggest x is a style property. Gotta go through a whole lot of code and change x,y to summit else now. Is it usual for some browsers to invent their own properties and, if so, any lists? Ta.
Comment