home *** CD-ROM | disk | FTP | other *** search
/ com!online 2002 June / comonline0602.iso / software / golive5 / GoLive5_Tryout.exe / MM7.Cab / F4929_Cookielschen.action.A1180258_69AD_4130_944D_0B6274131723 < prev    next >
Encoding:
Text File  |  2000-08-21  |  3.6 KB  |  82 lines

  1. <html>
  2.     <head>
  3.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  4.         <title>Delete Cookie action</title>
  5.         <meta name="generator" content="Adobe GoLive 5">
  6.     </head>
  7.     <body bgcolor="white">
  8.         <center> <font size="6">DeleteCookie Action 1.0</font>
  9.             <p>© 1999, Adobe Systems Incorporated<br> Alle Rechte vorbehalten.</p>
  10.             <p>Skript: CÄdric MÄnard</p>
  11.             <hr>
  12.         </center>
  13.         <csactionclass name="DeleteCookie" function="CSDeleteCookie" nsversion="3" ieversion="4">
  14.         <csactionparam name="nom" type="GLActionStringParam"></csactionparam>
  15.         </csactionclass>
  16.         <p>
  17.         
  18. <script language="JavaScript1.2"><!--
  19. // Script copyright 1999, Adobe Systems Incorporated. All rights reserved.
  20. function CSDeleteCookie(action)
  21. {
  22. var name=action[1]
  23. var value=action[2]
  24. var jours=-12000
  25. path="/"
  26. domain=null
  27. var expdate = new Date ();
  28. expdate.setTime (expdate.getTime() + (jours * 60 * 60 * 1000));
  29. SetCookie(name,value,expdate)
  30. }
  31. function SetCookie (name, value) {
  32.   var argv = SetCookie.arguments;
  33.   var argc = SetCookie.arguments.length;
  34.   var expires = (argc > 2) ? argv[2] : null;
  35.   var secure = (argc > 5) ? argv[5] : false;
  36.   document.cookie = name + "=" + escape (value) +
  37.     ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
  38.     ((path == null) ? "" : ("; path=" + path)) +
  39.     ((domain == null) ? "" : ("; domain=" + domain)) +
  40.     ((secure == true) ? "; secure" : "");
  41. }
  42. // -->
  43.         </script> </p>
  44.         <table cool width="221" height="96" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  45.             <tr height="1" cntrlrow>
  46.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  47.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  48.                 <td width="76" height="1"><spacer type="block" width="76" height="1"></td>
  49.                 <td width="140" height="1"><spacer type="block" width="140" height="1"></td>
  50.             </tr>
  51.             <tr height="6">
  52.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  53.                 <td width="4" height="6"><spacer type="block" width="4" height="6"></td>
  54.                 <td width="76" height="6"><spacer type="block" width="76" height="6"></td>
  55.                 <td width="140" height="6"><spacer type="block" width="140" height="6"></td>
  56.             </tr>
  57.             <tr height="3">
  58.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  59.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  60.                 <td width="76" height="3"><spacer type="block" width="76" height="3"></td>
  61.                 <td width="140" height="27" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
  62.                     <csactioncntrl name="nom" x="80" y="6" width="136" height="17" alignx="scale" aligny="top">
  63.                 </td>
  64.             </tr>
  65.             <tr height="24">
  66.                 <td width="1" height="24"><spacer type="block" width="1" height="24"></td>
  67.                 <td width="4" height="24"><spacer type="block" width="4" height="24"></td>
  68.                 <td width="76" height="24" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  69.                     <csactioncntrl type="InfoText" value="Cookie-Name:" x="4" y="9" width="73" height="14" alignx="left" aligny="top">
  70.                 </td>
  71.             </tr>
  72.             <tr height="62">
  73.                 <td width="1" height="62"><spacer type="block" width="1" height="62"></td>
  74.                 <td width="4" height="62"><spacer type="block" width="4" height="62"></td>
  75.                 <td width="216" height="62" colspan="2" rowspan="1" valign="top" align="left" xpos="4">
  76.                     <csactioncntrl type="InfoText" value="Diese Aktion l÷scht ein gespeichertes Cookie. Geben Sie den Namen unten ein." x="4" y="33" width="212" height="29" alignx="scale" aligny="top">
  77.                 </td>
  78.             </tr>
  79.         </table>
  80.     </body>
  81. </html>
  82.