CSS Change Skin code
Window.onload=function () {var c = Readcookie (' style ');
if (c) Switchstylestyle (c);
};
function Switchstylestyle (stylename)
{aa=document.stylesheets;
var n=aa.length;
for (i=0;i<n;i++)
{
Aa[i].disabled = true;
if (aa[i].title== stylename) {
aa[i].disabled = false;
}
};
Createcookie (' style ', stylename, 365);
}
function Createcookie (name,value,days)
{
if (days)
{
var date = new Date ();
Date.settime (Date.gettime () + (days*24*60*60*1000));
var expires = "; Expires= "+date.togmtstring ();
}
else var expires = "";
Document.cookie = name+ "=" +value+expires+ "; path=/";
}
function Readcookie (name)
{
var Nameeq = name + "=";
var ca = Document.cookie.split (';');
for (Var i=0;i < ca.length;i++)
{
var c = Ca[i];
while (C.charat (0) = = ') c = c.substring (1,c.length);
if (C.indexof (nameeq) = = 0) return c.substring (nameeq.length,c.length);
}
return null;
}
function Erasecookie (name)
{
Createcookie (Name, "",-1);
}