I have included some edits on the mochikit/javascript code:
connect(window, onload, setup);
function setup()
{
connect('select_1', 'onmouseover', dothis);
for (i=1;i4;i++)
{
connect('option_'+i, 'onmouseover', dothis);
}
}
function dothis(e)
{
log(e.src().value);
alert(e.src().value);
}
On Apr 7, 11:52 am, Ronald Lew [EMAIL PROTECTED] wrote:
IE doesn't support onmouseover and onmouseout events for option tags.
I'm trying to use MochiKit's signal API as a workaround. Here's an
example:
select id=select_id
option id=option_1 value=1 onmouseover=alert('one')One/
option
option id=option_2 value=2 onmouseover=alert('two')Two/
option
option id=option_3 value=3 onmouseover=alert('three')Three/
option
/select
Javascript file I have so far to simulate the example above (but
doesn't work as expected):
MochiKit.Signal.connect('option_1', 'onmouseover', alert('one'));
MochiKit.Signal.connect('option_2', 'onmouseover', alert('two'));
MochiKit.Signal.connect('option_3', 'onmouseover', alert('three'));
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
MochiKit group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---