home *** CD-ROM | disk | FTP | other *** search
Wrap
<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> <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> <table cool width="248" height="178" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee"> <tr height="6"> <td width="4" height="177" rowspan="6"><spacer type="block" width="4" height="177"></td> <td width="243" height="6"><spacer type="block" width="243" height="6"></td> <td width="1" height="6"><spacer type="block" width="1" height="6"></td> </tr> <tr height="17"> <td width="243" height="17" valign="top" align="left" xpos="4"> <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"> </td> <td width="1" height="17"><spacer type="block" width="1" height="17"></td> </tr> <tr height="26"> <td width="243" height="26" valign="top" align="left" xpos="4"> <csactioncntrl name="name" x="4" y="23" width="237" height="17" alignx="scale" aligny="top"> </td> <td width="1" height="26"><spacer type="block" width="1" height="26"></td> </tr> <tr height="19"> <td width="243" height="19" valign="top" align="left" xpos="4"> <csactioncntrl type="InfoText" value="Nach erstem Besuch zu diesem URL umleiten:" x="4" y="49" width="237" height="17" alignx="left" aligny="top"> </td> <td width="1" height="19"><spacer type="block" width="1" height="19"></td> </tr> <tr height="25"> <td width="243" height="25" valign="top" align="left" xpos="4"> <csactioncntrl name="gohere" x="4" y="68" width="237" height="20" alignx="scale" aligny="top"> </td> <td width="1" height="25"><spacer type="block" width="1" height="25"></td> </tr> <tr height="84"> <td width="243" height="84" valign="top" align="left" xpos="4"> <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"> </td> <td width="1" height="84"><spacer type="block" width="1" height="84"></td> </tr> <tr height="1" cntrlrow> <td width="4" height="1"><spacer type="block" width="4" height="1"></td> <td width="243" height="1"><spacer type="block" width="243" height="1"></td> <td width="1" height="1"><spacer type="block" width="1" height="1"></td> </tr> </table> </body></html>