View Single Post
  #3 (permalink)  
Old March 1st, 2007, 09:20 AM
schoolBoy schoolBoy is offline
Authorized User
Join Date: Mar 2007
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts

img.onclick = function(){vergrootImg(this);};

then modify vergrootImg:

function vergrootImg(img)

I tried that but it didnt work, it only showed one picture instead of 25 and I coulnt click on it, but then I changed it a bit:

instead of " img.onclick = function(){vergrootImg(this);}; "
I still use the setAttribute:
mijnImg.setAttribute("onClick", "vergrootImg(this)");

and that works just fine so thank you very much^^

( well it works in FireFox not in IE6.0 but I can always ask that my teacher, there are more stuff that doesnt work in IE so XD )