Share javascript với một số wap 18+ xác nhận tuổi của người truy cập...hay

Myshare

Myshare

New Member
code dưới đây dùng để xác nhận tuổi của người truy cập và lần sau khi người truy cập vào wap sẽ được chuyển đên trang sau, không cần phải nhấn vào link nữa
<script>functio n getCookie(name) {prefix = name + "=";
cookieStartInde x = document.cookie .indexOf(prefix );
if (cookieStartInd ex == -1)
return null
cookieEndIndex = document.cookie .indexOf(";", cookieStartInde x + prefix.length);
if (cookieEndIndex == -1) cookieEndIndex = document.cookie .length;
return unescape(docume nt.cookie.subst ring(cookieStar tIndex+ prefix.length, cookieEndIndex) );}
//In xalomini
function entex(sx) {function setCookiex(name , value, expires, path, domain, secure) {curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTSt ring() : "") + ((path) ?"; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ?"; secure" : "");
document.cookie = curCookie;}
now = new Date();
now.setTime(now .getTime() + 365 * 24 * 60 * 60 * 1000);
setCookiex("ddo k", sx, now);
location.href=' /'; }
ddok = getCookie("ddok ");
if (ddok) { document.write( '<meta http-equiv=refr esh
content=\"5; URL= http://xalomini.net / \">'); } else {document.write ('<a href=\" http://xalomini.net/ \" onClick="entex( 1);"><font color=#F5FFFA> Tôi đồng ý</font></ a>'); }</script>
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
4K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
4K
AdminAdmin is verified member.
Admin
Admin
Replies
6
Views
8K
SuperTroll
SuperTroll
Admin
Replies
0
Views
5K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
3K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
3K
AdminAdmin is verified member.
Admin
Admin
Replies
3
Views
6K
AdminAdmin is verified member.
Admin
Back
Top