Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting mouseout of a select
Message
 
À
08/06/2001 14:58:42
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00517067
Message ID:
00517251
Vues:
24
>>>>>From javascript code, is there a way to detect if the mouse goes out of a select?
>>>>
>>>>there is an onmouseout event...
>>>>
>>>>something like this?
>>>>
>>>>SELECT NAME="x" SIZE="1" onmouseout="window.alert('wayne');"
>>>
>>>This only works if you don't have the select open. If it is, it won't detect the mouse out.
>>
>>I just messed with it a little more, and it will fire if you mouseover and then mouseout. you don't have to click at all. It may be more than you wanted.
>
>What do you mean by mouseover and then mouseout?

I created a very simple html page with the following...

SELECT NAME="x" SIZE="1" onmouseout="window.alert('wayne');">
OPTION VALUE="1">Calico
OPTION VALUE="2">Tortie
OPTION VALUE="3" SELECTED>Siamese
SELECT>

It pops up the alert when you go over the select with the mouse and move off of it.
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform