I have the following code:
var itemids = new Array(“id65|a|Any Football Shirt|Any football shirt of your choice|3”, “id80|a|Other sports shirts|Other sports shirts if available, please raise a support ticket with your choice.|3”, “id66|a|Personalised Football Shirt|Any football shirt of your choice with your name and number on the back.|4 id65|a|Any Football Shirt|Any football shirt of your choice|3”, “id80|a|Other sports shirts|Other sports shirts if available, please raise a support ticket with your choice.|3”, “id66|a|Personalised Football Shirt|Any football shirt of your choice with your name and number on the back.|4”)
function changeitem(itemid) {
for (i=0; i < itemids.length; i++) {
var separated = itemids[i].split(“|”);
document.getElementById(separated[0]).className = “”;
if(separated[0] == itemid) { var changeme = i;
}
}
var separated = itemids[changeme].split(“|”);
document.getElementById(itemid).className = “selected”;
document.getElementById(“image”).src = “images/” + separated[1];
document.getElementById(“name”).innerHTML = separated[2];
document.getElementById(“description”).innerHTML = separated[3];
document.getElementById(“iteminfo”).innerHTML = (separated[2] + ” – ” + separated[4] + ” referrals”);
document.getElementById(“itemfield”).value = separated[0];
scroll(0, 0);
}
and it keeps telling me itemids is not defined, but the code works fine in FF just not in IE. I have no clue what i’m doing wrong