hérna er skemmtilegur kóði frá símanum sem þú getur notað
ég aðeins fór yfir hann en basicly svona getur þú notað þetta.
[html]
[head]
[title]Niðurtalning
[meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"]
[script language="javascript"]
function Talning(msgText,maxChar)
{
lengd = document.send_form.txtSkilabod.value.length;
if (lengd ] maxChar )
{
document.send_form.txtSkilabod.value = document.send_form.txtSkilabod.value.substring(0,maxChar);
lengdLeft = 0;
}
else
{
lengdLeft = maxChar - lengd;
}
document.send_form.txtFjoldiStafa.value = lengd;
document.send_form.txtFjoldiOnatadraStafa.value = lengdLeft;
}
[body bgcolor="#FFFFFF" text="#000000"]
[form method="POST" action="/bwss/bsms.php" name="send_form"]
[table border="0" width="524" height="130"]
[tr]
[td width="216" height="78" valign="top"]
[div align="right"]
[p]
Skilaboð: [div align="right"]
[p align="center"]
[td height="78" colspan="2"]
[textarea name="txtSkilabod" cols="25" rows="6" wrap="on" onChange="Talning(this,100)" onFocus="Talning(this,100)" onBlur="Talning(this,100)" onKeyDown="Talning(this,100)" onKeyUp="Talning(this,100)"]Frá:
[!-- Stafa talning byrjar --]
[tr]
[td height="25" width="216"]
[div align="right"]
[p]
Fjöldi stafa: [td height="25" width="112"]
[input name="txtFjoldiStafa" size="3"]
[td height="25" width="182"]
[tr]
[td height="25" width="216"]
[div align="right"]
[p]
Ónotuð stafabil: [td height="25" width="112"]
[input name="txtFjoldiOnatadraStafa" size="3"]
[td height="25" width="182"]
[!-- Stafa talning endar --]
<br><br>
————————
Haukur Már Böðvarsson
<a href=“mailto:haukur@eskill.is”>haukur@eskill.is</a>
<a href="
http://www.bodvarsson.com“ target=”new">www.bodvarsson.com </a