MaxRom | Scripturi uCoz Romania

Bannerul tau aici
[ Mesaje noi · Membrii · Regulamentul forumului · RSS ]
  • Pagina 1 din 1
  • 1
Caracter contor (javascripts)
Devil Date: Vineri, 2011-07-29, 15:35 | Message # 1
Mesaje: 425
Awards: 15
« 29 »

Unde vreti sa apara adaugati :

Code
<form method="POST">
<p></p>
<div align="center">

   <center>
   <table border="0" cellpadding="0" cellspacing="0" width="73%" bgcolor="#D3E0FE" style="border: 1px solid #000000; ; border-collapse:collapse">
   <tr>
   <td width="100%" bgcolor="#ADC9F8">
   <p align="center"> </p>
   <div align="center">
   <table border="0" cellpadding="2" cellspacing="0" width="514" height="311" style="border-collapse: collapse" bordercolor="#111111">
   <tr>
   <td width="514" bgcolor="#ADC9F8" height="24">

<p align="center"><b><font face="Verdana" size="5" color="#000000">Caracter contor</font></b></p>
   </td>
   </tr>
   <tr>
   <td width="514" bgcolor="#ADC9F8" height="261">
<p align="left">
<font face="Verdana" size="2" color="#000000">Scrie o propozitie sau o fraza pentru a afla cate caractere sunt</font></p>
<p align="center">
<b>
<font face="Verdana" size="2" color="#000000">
<textarea rows="11" name="charcount" cols="55" wrap="virtual" style="border: 1px solid #000000; "></textarea></font></b></p>

   </td>
   </tr>
   <tr>
   <td width="514" bgcolor="#ADC9F8" height="26"><div align="right"><p align="center"><b><font face="Verdana" size="2" color="#000000"><input type="button" value="Afla"
   onClick="countit(this)">   
   <input type="text" name="displaycount" size="26" style="border: 1px solid #000000; "></font></b></p>
   </div></td>
   </tr>
   <tr>
   <td width="514" bgcolor="#C6DCFD" height="1"></td>

   </tr>
   </table>
   </div>
   </td>
   </tr>
   </table>
   </center>
</div>

</form>

<script language="JavaScript">

function countit(what){
formcontent=what.form.charcount.value
what.form.displaycount.value=formcontent.length
}
</script>


Sursa : Ucause

Rezultat :

 
alecsandru22 Date: Vineri, 2011-07-29, 16:34 | Message # 2
Mesaje: 33
Awards: 9
« 1 »

Nu merge :| nu-mi calculeaza


Trăsniţii - Episoade online doar pe www.trasnitii.do.am


 
Devil Date: Vineri, 2011-07-29, 19:45 | Message # 3
Mesaje: 425
Awards: 15
« 29 »

alecsandru22, functioneaza ,uite :


 
  • Pagina 1 din 1
  • 1
Căutare: