J
jman
for ( var i = 0; i < div.firstChild.childNodes.length; ++i )
{
var marker = new Object();
marker.iii = i;
sys.addListener( marker, "click", function()
{
alert(marker.iii);
});
}
looks like when clicked - marker object has the value of the last
object thru the loop.
i'd like it to display the appropriate iii value.
{
var marker = new Object();
marker.iii = i;
sys.addListener( marker, "click", function()
{
alert(marker.iii);
});
}
looks like when clicked - marker object has the value of the last
object thru the loop.
i'd like it to display the appropriate iii value.