@PalrosMar 31.2005 — #you have to look for both cookies in document.cookie.
[CODE] var names = []; var data = new Array(names.length); var cookies = document.cookie.split(";"); for (var i=0; i<cookies.length; i++) { for (var j=0; j<names.length; j++) { if (cookies[i].indexOf(names[j]+"=") != -1) { data[j] = cookies[i].substring(cookies[i].indexOf(names[j])+names[j].length+1,cookies[i].length); } } } [/CODE]
names is an array of the names of the cookies you want. data is the array which holds the data from the cookies at the end, in the same order as the names array. You will need to put in the names of all the cookies you are looking for, without the = sign. This assumes that the cookies are in this format:
name=escapeddata;(optional extra stuff like expires and path and domain with semicolons inbetween and at end)
as long as there is only one statement in the block. The browser will automatically assume that if there are no curly braces, then the if() only applies to the first statement.
@Warren86Mar 31.2005 — #Another one added to my ignore list...
All you posted was garbage, worthless garbage, and now you come along and stick your finger in my face: "change this, change that." My God, I am so sick and tired of you arrogant SOBs. Nothing better to do than to go around all day criticizing others.
Change your OWN code. And get your finger out of my face.