View Single Post
Old 22-04-2014, 06:22   #12
sottovento
Senior Member
 
L'Avatar di sottovento
 
Iscritto dal: Nov 2005
Cittā: Texas
Messaggi: 1722
Beh, potresti togliere l'alert, assegnare un nome identificativo alla cella in cui vuoi scrivere e al passaggio del mouse ci va a scrivere:

Codice:
<html>
    <body>
        <script language="Javascript">
            function mouseStatus(name)
            {
                var cell = document.getElementById('myid');
                if (name != null)
                {
                    cell.innerHTML = "Sei sopra al nome " + name;
                    //alert("Sei sopra al nome " + name);
                }
                else
                {
                    cell.innerHTML = "----";
                }
            }
        </script>
        <table border="1">
            <tr>
                <td onmouseover="mouseStatus('Luca');" onmouseout="mouseStatus(null);">Luca</td>
            </tr>

            <tr>
                <td onmouseover="mouseStatus('Giacomo');" onmouseout="mouseStatus(null);">Giacomo</td>
            </tr>

            <tr>
                <td onmouseover="mouseStatus('Erminio');" onmouseout="mouseStatus(null);">Erminio</td>
            </tr>
        </table>
        <table border="6">
            <tr>
                <td id="myid">----</td>
            </tr>
        </table>
    </body>
</html>
__________________
In God we trust; all others bring data
sottovento č offline   Rispondi citando il messaggio o parte di esso