Waarom. er staat een ; na de vorige lijn. er zijn enkel spaties(geen tabs)
Jan
var arr = new Array("nrs", "naam", "adres", "tel", "email", "activiteiten", "leeftijd", "functie", "fotos", "extra", "lidsinds");
window.onload = function () {
fotos = document.getElementsByClassName("foto");
for (i = 0; i < fotos.length; +=1) {
fotos[i].onclick = function (event) {
var body = document.getElementsByTagName("body")[0];
var div = document.createElement("div");
div.setAttribute("id", "fotoke");
div.setAttribute("style", "width:100%;height:100%;top:0;left:0;position:fixed;");
var img = document.createElement("img");
img.setAttribute("src", event.target.src.replace("small",""));
div.appendChild(img);
body.appendChild(div);
div.onclick = function (e) {
document.body.removeChild(document.getElementById("fotoke"));
}
}
}
};