tech_support
07-08-2006, 07:10 AM
Hi,
Can anyone change this script to pernament cookies?
function cookieSave(name, text) {
document.cookie = name + "=" + escape(text);
}
function cookieLoad(name) {
var search = name + "=";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if (offset != -1) {
offset += search.length;
end = document.cookie.indexOf(";", offset);
if (end == -1) {
end = document.cookie.length;
}
return unescape(document.cookie.substring(offset, end));
}
}
}
Somewhere in my mind is the solution to this problem... but I can't think of it right now :D
Thanks :)
Can anyone change this script to pernament cookies?
function cookieSave(name, text) {
document.cookie = name + "=" + escape(text);
}
function cookieLoad(name) {
var search = name + "=";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if (offset != -1) {
offset += search.length;
end = document.cookie.indexOf(";", offset);
if (end == -1) {
end = document.cookie.length;
}
return unescape(document.cookie.substring(offset, end));
}
}
}
Somewhere in my mind is the solution to this problem... but I can't think of it right now :D
Thanks :)