Oki...
Hvorfor kommer der en fejl, når man trykker reset (det er ik min kode... Jeg er igang med at hjælpe én!):
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!--
a:link {color:#000000; text-decoration:none}
a:visited {color:#000000; text-decoration:none}
a:hover {color:#000000; text-decoration:none}
-->
<!--
body {cursor:default}
-->
</style>
<script language="JavaScript">
function co(element,mode) {
if (mode=="in") {
cursortype = 'hand'
colorval = '#e9e9e9'
} else if (mode=="out") {
cursortype = ''
colorval = '#B7C6D6'
}
element.style.background=colorval;
element.style.cursor=cursortype;
}
</script>
<SCRIPT LANGUAGE="javascript">
<!--
//Script by Mathias Hagensen
//Find more at
www.script.dkfunction setcookie(name,value) {
today = new Date;
expires = new Date(today.getTime() + 30 * 24 * 60 * 60 * 1000);
document.cookie=name + "=" + escape(value) + "; expires=" + expires
}
function getcookie(name) {
cookielist=document.cookie.split("; ");
for ( count = 0 ; count < cookielist.length ; count++ ) {
if ( cookielist[count].split("=")[0] == name )
return unescape(cookielist[count].split("=")[1])
}
return null;
}
function showvisits() {
visits = getcookie("visits")
if ( visits == null ) visits = 0;
visits++;
document.write(visits);
setcookie("visits",visits);
}
//-->
</SCRIPT>
</head>
<style>
.button
{
background-color: #e0e0e0;
border: #000000 1px solid;
cursor: hand;
font-family:Tahoma;
font-size: 8pt;
}
.but
{
background-color:#e0e0e0;
font-family:Tahoma;
font-size:8pt;
font-color:#FFFFFF;
border: #000000 1px solid;
</style>
<table border="0" width="300" height="235" cellspacing="0" align="center">
<tr>
<td height="226" valign="top">
<form action="/sms.php?mode=sms" method="post" name="SMS" id="
">
<br>
<table align="CENTER" width="250">
<tr>
<td width="96"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Mobil
nummer:</font></td>
<td width="125">
<input type="text" class="but" name="nr" size="10" maxlength="9" value="">
</td>
</tr>
<tr>
<td width="96"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Dit
navn:</font></td>
<td width="125">
<input type="text" class="but" name="fra" size="12" maxlength="20" value="">
</td>
</tr>
<tr>
<td width="96"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Din
besked:</font></td>
<td width="125">
<textarea cols="20" rows="7" class="but" name="besked" onKeyUp="tilbage()" onChange="check()"></textarea>
</td>
</tr>
<tr>
<td width="96"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Anslag
tilbage:</font></td>
<td width="125">
<input type="text" class="but" name="anslag" value="120" size="3" readonly>
</td>
</tr>
<tr>
<td colspan="2" height="33">
<div align="center"><font face="Verdana" size="1" color="#FFFFFF">-<br>
</font>
<img src="send.gif" class="button" OnClick="document.SMS.submit();">
<font color="#FFFFFF">_</font>
<img src="slet.gif" class="button" OnClick="document.SMS.reset();">
</div>
</td>
</tr>
</table>
</form>
<div align="center">
<script language="JavaScript">
<!--
function tilbage() {
document.SMS.charleft.value = - document.SMS.message.value.length;
}
//-->
</script>
<script language="JavaScript">
<!--
function tilbage() {
document.SMS.anslag.value = 120 - document.SMS.besked.value.length;
}
//-->
</script>
<font color="Red" FONT face="Verdana, Arial, Helvetica, sans-serif" size="1">
</font> </div>
</td>