Retourner ' la page d'accueil de TJSRetourner ' la page d'accueil de TJS
Ce script est déclaré obsolète. Il n'est conservé que pour information.

Script : Curseur souris modifiable

Changez le curseur de la souris au passage au dessus d'un élément

Exécution du script

Code source

<HTML><HEAD><TITLE>Tout JavaScript.com - Les curseurs souris</TITLE><STYLE type="text/css">TD{font-family:arial;color:navy;font-size:10pt}.code{font-family:courrier;color:green;font-size:10pt}</STYLE></HEAD><BODY><FONT face="arial" color="navy" size="2"><CENTER><BIG><B>Les curseurs souris</B></BIG></CENTER><BR><BR>Grâce aux feuilles de style, il est possible (avec Internet Explorer 4 et + uniquement) de paramétrer l'apparence du curseur de la souris sur les différents objets d'une page HTML.<BR><BR>Par exemple :<BR>Sur un texte de lien - <A href="javascript:alert('Lien inactif')" style="cursor:help"><B>Un exemple de lien</B></A><BR><SPAN class="code">&lt;A style="cursor:help" href="page.htm">Texte de la cellule&lt;/A></SPAN><BR><BR><TABLE><TR><TD>Dans une cellule d'un tableau - </TD><TD style="cursor:help" bgcolor=navy width=100>&nbsp;</TD></TR></TABLE><SPAN class="code">&lt;TD style="cursor:help">Texte de la cellule&lt;/TD></SPAN><BR><BR>Le tableau suivant montre tous les curseurs existants. Passez la souris sur la première colonne pour voir le curseur.<BR>Fonctionne avec IE5+, Mozilla et NS7<TABLE BORDER="1" bordercolor=navy cellpadding=2 cellspacing=0 ><TR align=center>  <TD><B>Curseur</B></TD><TD><B>Code</B></TD><TD><B>Commentaire</B></TD></TR><TR>  <TD STYLE="cursor:crosshair" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:crosshair</TD>  <TD width=200>&nbsp;Croix précise</TD></TR><TR>  <TD STYLE="cursor:pointer" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:pointer</TD>  <TD width=200>&nbsp;Main</TD></TR><TR>  <TD STYLE="cursor:move" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:move</TD>  <TD width=200>&nbsp;Déplacement</TD></TR><TR>  <TD STYLE="cursor:text" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:text</TD>  <TD width=200>&nbsp;Curseur texte</TD></TR><TR>  <TD STYLE="cursor:wait" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:wait</TD>  <TD width=200>&nbsp;Sablier</TD></TR><TR>  <TD STYLE="cursor:help" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:help</TD>  <TD width=200>&nbsp;Flèche + ?</TD></TR><TR>  <TD STYLE="cursor:e-resize" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:e-resize</TD>  <TD width=200>&nbsp;Flèche vers la droite</TD></TR><TR>  <TD STYLE="cursor:w-resize" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:w-resize</TD>  <TD width=200>&nbsp;Flèche vers la gauche</TD></TR><TR>  <TD STYLE="cursor:n-resize" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:n-resize</TD>  <TD width=200>&nbsp;Flèche vers le haut</TD></TR><TR>  <TD STYLE="cursor:s-resize" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:s-resize</TD>  <TD width=200>&nbsp;Flèche vers le bas</TD></TR><TR>  <TD STYLE="cursor:ne-resize" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:ne-resize</TD>  <TD width=200>&nbsp;Flèche vers le nord-est</TD></TR><TR>  <TD STYLE="cursor:nw-resize" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:nw-resize</TD>  <TD width=200>&nbsp;Flèche vers le nord-ouest</TD></TR><TR>  <TD STYLE="cursor:se-resize" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:se-resize</TD>  <TD width=200>&nbsp;Flèche vers le sud-est</TD></TR><TR>  <TD STYLE="cursor:sw-resize" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:sw-resize</TD>  <TD width=200>&nbsp;Flèche vers le sud-ouest</TD></TR><TR>  <TD STYLE="cursor:default" width="130">&nbsp;</TD>  <TD width=150>&nbsp;cursor:defaut</TD>  <TD width=200>&nbsp;Curseur par défaut</TD></TR></TABLE></FONT></BODY></HTML>

Troisième édition Tout JavaScript chez Dunod

Tout JavaScript le livre chez DunodEn savoir plus
Sortie le 4 janvier 2023

Version papier 29€90
Format électronique 22€99.

Commandez en ligne

Chercher une fonction, un objet, ...

Le graph des objets JavaScript



Chargement
en cours...
Le 17/04/2024 01:40:01 sur php 7 en 68.31 ms