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

  1. <html>    <head>        <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">        <title>Visitor Cookie action</title>        <meta name="generator" content="Adobe GoLive 5">    </head>    <body bgcolor="white">        <center> <font size="6">VisitorCookie Action 1.0</font>            <p>© 1999, Adobe Systems Incorporated<br> Alle Rechte vorbehalten.</p>            <p>Skript: CÄdric MÄnard</p>            <hr>        </center>        <csactionclass name="VisitorCookie" function="CSVisitorCookie" nsversion="3" ieversion="4">        <csactionparam name="name" type="GLActionStringParam"></csactionparam>        <csactionparam name="gohere" type="GLActionURLParam"></csactionparam>        </csactionclass>
  2.         <p>CSVisitorCookie        <script language="JavaScript1.1" cyberversion="N1.1"><!--// Script copyright 1999, Adobe Systems Incorporated. All rights reserved.function CSVisitorCookie(action){resultat = "visitor"cookiename = action[1]goUrl = action[2]var arg = cookiename + "=";  var alen = arg.length;  var clen = document.cookie.length;  var i = 0;  while (i < clen) {    var j = i + alen;       if (document.cookie.substring(i, j) == arg)     return CSVisitorGetCookie (j);    i = document.cookie.indexOf(" ", i) + 1;    if (i == 0) break;  }  VisitorSetCookie(cookiename)  return null;}function CSVisitorGetCookie (offset) {  var endstr = document.cookie.indexOf (";", offset);  if (endstr == -1)    endstr = document.cookie.length;  valeur=unescape(document.cookie.substring(offset, endstr))  if (valeur==resultat)  VisitorGotoLink(goUrl)  else  VisitorSetCookie(cookiename)}function VisitorGotoLink(goUrl) {location = goUrl}function VisitorSetCookie(cookiename){var value="visitor"var jours=500*24path="/"domain=nullvar expdate = new Date ();expdate.setTime (expdate.getTime() + (jours * 60 * 60 * 1000));SetCookie(cookiename,value,expdate)}function SetCookie (cookiename, value) {  var argv = SetCookie.arguments;  var argc = SetCookie.arguments.length;  var expires = (argc > 2) ? argv[2] : null;  var secure = (argc > 5) ? argv[5] : false;  document.cookie = cookiename + "=" + escape (value) +    ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +    ((path == null) ? "" : ("; path=" + path)) +    ((domain == null) ? "" : ("; domain=" + domain)) +    ((secure == true) ? "; secure" : "");}// -->        </script>        </p>
  3.         <table cool width="248" height="178" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  4.             <tr height="6">
  5.                 <td width="4" height="177" rowspan="6"><spacer type="block" width="4" height="177"></td>
  6.                 <td width="243" height="6"><spacer type="block" width="243" height="6"></td>
  7.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  8.             </tr>
  9.             <tr height="17">
  10.                 <td width="243" height="17" valign="top" align="left" xpos="4">
  11.                     <csactioncntrl type="InfoText" value="Name fⁿr Cookie (darf noch nicht vergeben sein):" x="4" y="6" width="237" height="17" alignx="left" aligny="top">
  12.                 </td>
  13.                 <td width="1" height="17"><spacer type="block" width="1" height="17"></td>
  14.             </tr>
  15.             <tr height="26">
  16.                 <td width="243" height="26" valign="top" align="left" xpos="4">
  17.                     <csactioncntrl name="name" x="4" y="23" width="237" height="17" alignx="scale" aligny="top">
  18.                 </td>
  19.                 <td width="1" height="26"><spacer type="block" width="1" height="26"></td>
  20.             </tr>
  21.             <tr height="19">
  22.                 <td width="243" height="19" valign="top" align="left" xpos="4">
  23.                     <csactioncntrl type="InfoText" value="Nach erstem Besuch zu diesem URL umleiten:" x="4" y="49" width="237" height="17" alignx="left" aligny="top">
  24.                 </td>
  25.                 <td width="1" height="19"><spacer type="block" width="1" height="19"></td>
  26.             </tr>
  27.             <tr height="25">
  28.                 <td width="243" height="25" valign="top" align="left" xpos="4">
  29.                     <csactioncntrl name="gohere" x="4" y="68" width="237" height="20" alignx="scale" aligny="top">
  30.                 </td>
  31.                 <td width="1" height="25"><spacer type="block" width="1" height="25"></td>
  32.             </tr>
  33.             <tr height="84">
  34.                 <td width="243" height="84" valign="top" align="left" xpos="4">
  35.                     <csactioncntrl type="InfoText" value="Plaziert ein Cookie, wenn ein Benutzer zum ersten Mal die Website besucht. Beim nΣchsten Besuch wird der Benutzer umgeleitet." x="4" y="93" width="237" height="40" alignx="scale" aligny="top">
  36.                 </td>
  37.                 <td width="1" height="84"><spacer type="block" width="1" height="84"></td>
  38.             </tr>
  39.             <tr height="1" cntrlrow>
  40.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  41.                 <td width="243" height="1"><spacer type="block" width="243" height="1"></td>
  42.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  43.             </tr>
  44.         </table>
  45.     </body></html>