hello everybody, i was trying for some days now to find a solution for this. had a look at different posts and forums online, but no luck so far…
is it possible to auto-create this with a loop???:
[CODE]
T$(‘infowindow1’).onclick = function(){ setInfobox(‘1’); }
T$(‘infowindow2’).onclick = function(){ setInfobox(‘2’); }
T$(‘infowindow3’).onclick = function(){ setInfobox(‘3’); }
T$(‘infowindow4’).onclick = function(){ setInfobox(‘4’); }
T$(‘infowindow5’).onclick = function(){ setInfobox(‘5’); }
…
…
…
lets say something like:
[CODE]
id = 0;
for(id=1; id<=anzahl; id++){
T$(‘infowindow’+id).onclick = function(){ setInfobox(id); }
}
tried EVAL on the right operand, tried WINDOW[] and many more…
any idea / help will be greatly appreciated!