D
David W. Deley
What do I put for the W3C part of this code?
function dot(i)
{
this.X = Xpos;
this.Y = Ypos;
this.dx = 0;
this.dy = 0;
if (isNetscape4) {
this.obj = eval("document.dot" + i);
} else if (isIE) {
this.obj = eval("dot" + i + ".style");
} else if (isW3C) {
this.obj = ?????????????
}
}
var dots = new Array(nDots);
var i = 0;
for (i = 0; i < nDots; i++) {
dots = new dot(i);
}
function dot(i)
{
this.X = Xpos;
this.Y = Ypos;
this.dx = 0;
this.dy = 0;
if (isNetscape4) {
this.obj = eval("document.dot" + i);
} else if (isIE) {
this.obj = eval("dot" + i + ".style");
} else if (isW3C) {
this.obj = ?????????????
}
}
var dots = new Array(nDots);
var i = 0;
for (i = 0; i < nDots; i++) {
dots = new dot(i);
}