Hello everybody,
i am trying to create a table where the coloumn in which the
mousepointer stands on a filled field gets wider.
For getting this i am using the addEvent Methode in the following way:
for ( i=0; i<numOfVal; i++) {
row = response[i]['Platz'];
var col = response[i]['Uhrzeit'];
with ($(row+col)) {
set('class','reserv'+col);
addEvent('mouseover', function(){$$
('#CB .column'+col).tween('width','77');} );
addEvent('mouseout', function(){$$
('#CB .column'+col).tween('width','28');} );
}
}
For example if the loop passed three times with
row=1 and col=6
row=3 and col=8
row=5 and col=7
If so, every addEvent call in this loop will made with the Value of 7
in the col variable.
It doesn´t matter on which of these three fields the mouse points
every time the column No7 get wide.
Any idea
Greetings from slotty