In this question I saw how to read the .txt ~ > Read txt
Now I want to know: If I leave a field in focus , and it's about the tooltip message, it should show a message regarding that field. >
Ex: If I leave the password field with focus and go over the tooltip it should display a message regarding the password field . And if you leave the field name with focus , show a message regarding it.
<style> .tooltip {
display: inline;
position: relative;
}
.tooltip:hover:after {
padding: 5px 15px;
width: 220px;
border-radius: 5px;
background: #333;
background: rgba(0, 0, 0, .8);
content: attr(data-title);
position: absolute;
left: 20%;
bottom: 26px;
z-index: 98;
color: #fff;
}
.tooltip:hover:before {
border: solid;
border-color: #333 transparent;
border-width: 6px 6px 0px 6px;
content: "";
position: absolute;
left: 50%;
bottom: 20px;
z-index: 99;
}
</style>
<tr>
<td align="right">
<font face="arial" color="blue" size="-1">Senha do Usuário :</font>
</td>
<td>
<input type="text" align="left" name="tx_senh_usua" size="7" value="SEDS" readonly="true">
<td align="right">
<font face="arial" color="blue" size="-1">Nome :</font>
</td>
<td>
<input type="text" align="left" name="tx_nome_usua" size="7" value="" readonly="true">
</td>
<td>
<span style="color: blue;" data-title="Senha padrão para novos usuários." class="tooltip">?</span>
</td>
</tr>
Simplifying ... I want to create a file containing messages for several fields. And if the field is in focus and you select the tooltip from tooltip , it should check in that file which message for the given field !
Is it possible to do this?