By_BadBoyaKn™
Seviye 1
Yaş :
Kayıt tarihi : 17/01/09
Mesaj Sayısı : 77
Nerden :
İş/Hobiler :
|
Konu: Ziyaretçiyi Tanimlama Ptsi Ocak 19, 2009 9:42 am |
|
|
<script> <!-- // Copyright (c) 1996-1997 Tomer Shiran. All rights reserved. // Permission given to use the script provided that this notice remains as is. // Additional scripts can be found at http://www.javadepo.com
// Boolean variable specified if alert should be displayed if cookie exceeds 4KB var caution = false
// name - name of the cookie // value - value of the cookie // [expires] - expiration date of the cookie (defaults to end of current session) // [path] - path for which the cookie is valid (defaults to path of calling document) // [domain] - domain for which the cookie is valid (defaults to domain of calling document) // [secure] - Boolean value indicating if the cookie transmission requires a secure transmission // * an argument defaults when it is assigned null as a placeholder // * a null placeholder is not required for trailing omitted arguments function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "") if (!caution || (name + "=" + escape(value)).length <= 4000) document |
|