daxbert
05-08-2004, 10:40 AM
Goal: Dropdown ( <select> based) in which tooltips popup as you scroll thru the possible options.
I have this working in mozilla. I'm using the mouseover and mouseout events to trigger the unhide/hide changes.
function getID( e ) {
if (!e) { e = window.event; }
if (getIE()){
return e.srcElement.value;
}
else {
return e.originalTarget.value;
}
}
<select onchange="hideAll(event);" onclick="hideAll(event);" onmouseout="hideAll(event);" onmouseover="showPopup(event,'ezcatpop' + getID(event));" id="ezcat" name="ezcat">
In mozilla it works fine, as I scroll through the various options, the tooltips popup and hide exactly as desired. I'm using event.originalTarget.value as my key to know which <div> to hide/unhide. IE does not have originalTarget, and fromElement refers to <body>. With srcElement, I can only get the selected option, not the currently highlighted option while scrolling. I've tried associating events with the actual <option>'s but they don't seem to fire.
Any Suggestions?
Daxbert
I have this working in mozilla. I'm using the mouseover and mouseout events to trigger the unhide/hide changes.
function getID( e ) {
if (!e) { e = window.event; }
if (getIE()){
return e.srcElement.value;
}
else {
return e.originalTarget.value;
}
}
<select onchange="hideAll(event);" onclick="hideAll(event);" onmouseout="hideAll(event);" onmouseover="showPopup(event,'ezcatpop' + getID(event));" id="ezcat" name="ezcat">
In mozilla it works fine, as I scroll through the various options, the tooltips popup and hide exactly as desired. I'm using event.originalTarget.value as my key to know which <div> to hide/unhide. IE does not have originalTarget, and fromElement refers to <body>. With srcElement, I can only get the selected option, not the currently highlighted option while scrolling. I've tried associating events with the actual <option>'s but they don't seem to fire.
Any Suggestions?
Daxbert