Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2 make games run on Firefox and others

open
nobody
None
5
2006-03-16
2006-03-16
sy
No

to turely leverage the power of Javascript, we need to
make the games compatible with other browsers as much
as possible.

sometimes this is just a small change,
such as in arrange.html

function getCell(row, col)
{
//return eval("a_" + row + "_" + col);
return document.getElementById("a_" + row + "_" + col);
}

inside function shuffle
if (j%2==0)
{
t = r0(gsize);
while (t == ghrow) t =
r0(gsize); //skip holes
//getCell(t,ghcol).click();
move(getCell(t,ghcol));
}
else
{
t = r0(gsize);
while (t == ghcol) t =
r0(gsize); //skip holes
//getCell(ghrow,t).click();
move(getCell(ghrow,t));
}

I would like to help modified the code to take out the
IE only bar.

Discussion