0
In that question I saw how to read the .txt ~> Read txt
Now I want to know: In case I leave a field on phocus, and is about the message of tooltip, it must show a message concerning that field.
Ex: In case I leave the password field with phocus and go over the "?" of tooltip it must show a message concerning the password field. And should you leave the name field with phocus, show a message concerning 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 various fields. And if the field is in phocus and the "?" of tooltip, he should check in that file which message to the given field!
It is possible to do this?
Sorry, I ended up editing fast and put PHP together!
– Alexandre
Can you leave any field with phocus if they are readonly?
– Franchesco
The field with readonly was just an example of the file with a message!
– Alexandre
To print the text . txt in tooltip you know, now just create a tooltip for it. instead of
.tooltip:hover
, use.tooltip:focus
.– Antony Alkmim
But then how will I know what message you have to show for that Phocus?
– Alexandre