:quipy:
Ho trovato questo script in rete, e ho provato ad inventarmi come usarlo...
codice:
<script>
function getCookie(NameOfCookie)
{ if (document.cookie.length > 0)
{ begin = document.cookie.indexOf(NameOfCookie+"=");
if (begin != -1)
begin += NameOfCookie.length+1;
end = document.cookie.indexOf(";", begin);
if (end == -1) end = document.cookie.length;
return unescape(document.cookie.substring(begin, end)); }
}
return null;
}
function setCookie(NameOfCookie, value, expiredays)
{ var ExpireDate = new Date ();
ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
document.cookie = NameOfCookie + "=" + escape(value) +
((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}
function delCookie (NameOfCookie)
{ if (getCookie(NameOfCookie)) {
document.cookie = NameOfCookie + "=" +
"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
</script>
<IFRAME class=button name=tagcorinna marginWidth=0 marginHeight=0 src="http://www.mfmcomputerpoint.it/TagCorinna.asp?name=Corinna" width="90%" height=200></IFRAME>
<FORM name=frmtagcorinna action=http://www.mfmcomputerpoint.it/TagCorinna.asp method=post target=tagcorinna>
<INPUT type=hidden value=Corinna name=name>
<INPUT type=hidden value=ok name=inserisci>
Chi sei?
<INPUT class=button style="WIDTH: 130px" maxLength=20 size=15 name=tagname>
Che vuoi dire?
<TEXTAREA class=button style="WIDTH: 133px; HEIGHT: 50px" name=message rows=7 cols="20"></TEXTAREA>
<INPUT type=submit value="Dillo" style="width: 50" class="button" Onclick="javascript:setCookie('TagCor', document.frmtagcorinna.tagname.value, 999)"> </FORM>
Mi dice "istruzione return esterna alla funzione"
Cos'ho sbagliato?