2
I’m wanting to add to my code a "HELP", type if he click the word he open a pop-up showing the details of the fields. But I would like to do this with a file .txt ... Where open a pop-up containing the text of .txt! I did it in tooltip which opens a small balloon containing information:
<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">
<span style="color: blue;" data-title="Senha padrão para novos usuários." class="tooltip">?</span>
</td>
</tr>
You can call a file .txt when selecting or clicking the same way?
The content of
.txt
inside the tooltip? or has to be a same popup?– Antony Alkmim
It would have to be a popup, but not like an Alert e-e' I showed an example with the tooltip, because it’s a more "flashy example".
– Alexandre
You will have to read this TXT somehow, you can not do only via HTML and CSS
– KhaosDoctor
What language is using in the backend?
– Antony Alkmim
Yes @Khaosdoctor, I have in mind that I will have to use JS or some other language to read. txt, but I don’t know how to make it appear as a pop-up file. txt!
– Alexandre