Jump to content
GSForum - Segélyvonal

Javascript kérdésem van


tzoli

Recommended Posts

payskin

function getCookie (sKey) {
   if (!sKey) { return null; }
   return decodeURIComponent(document.cookie.replace(new RegExp("(??:^|.*\\s*" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1")) || null;
}

if (getCookie('EztACookietAkarom') {
   document.location.href = 'http://idekuldomazembert.hu';
}

 

Nem biztos, hogy 100%-os, de 2 perc alatt csináltam az itteni little framework alapján

Link to comment
Share on other sites

TheSaurida

Köszi, kipróbálom.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...