note pad
this script will save automaticly the typed text!!
the script: <script language="JavaScript" type="text/javascript"><br><!--<br>function ReadCookie (Name)<br>{<br> var search = Name + "="<br> if (document.cookie.length > 0)<br> {<br> offset = document.cookie.indexOf(search)<br> if (offset != -1)<br> {<br> offset += search.length <br> end = document.cookie.indexOf(";", offset) <br> if (end == -1)<br> end = document.cookie.length<br> return (document.cookie.substring(offset, end))<br> }<br> else<br> return ("");<br> }<br> else<br> return ("");<br>}<br><br>function WriteCookie (cookieName, cookieValue, expiry) <br>{<br> var expDate = new Date();<br><br> expDate.setTime (expDate.getTime() + expiry);<br> document.cookie = cookieName + "=" + escape (cookieValue) + "; expires=" + expDate.toGMTString() + "; path=/";<br>}<br><br>function getCookies()<br>{<br> document.noteForm.note.value = unescape(ReadCookie("note"));<br>}<br>//--><br></script> <link href="kladblok/vg_sheet.css" type="text/css" rel="stylesheet"> </p> <br><table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td align="center" width="100%"><b> notepad<font color="#000000" face="Verdana" size="2"></font></b><br> <br> </td></tr> <tr><td align="center"> <form name="noteForm"><textarea class="invul" name="note" rows="10" wrap="VIRTUAL" cols="40"></textarea><br><br> <input class="button" onclick="WriteCookie('note', document.noteForm.note.value, 2678400000)" value="save"" type="button"> </form> </td></tr></tbody></table> | this script will save the typt text when you click on save. the next time you come on this page the text will stand automaticly in the field... warnig
| Stars: |
this script comes from rob