can somebody explain why I might keep getting an object expected error for the line
< a href=\"#\" onClick=\"changecolor();\">< img src=\"rainbow.gif\">
but without the spaces after<
with the function written
function changecolor()
{
x++:
if (x == switchcolor.length)
{
x=0;
}
parent.color.document.bgColor = switchcolor
}
and the variables defined as
var switchcolor = new array(\"somecolors\");
var x = 0;