java script question...
java script question...
Out of context: Reply #3
- Started
- Last post
- 9 Responses
- stupidresponse0
here's how to set/get cookies:
http://www.w3schools.com/JS/js_c…
there are limits to the amount of data one can store in a cookie though, so i would think of a way to store the info as compactly as possible, like each element of the array is a comma-separated x and y coordinate, and each index of the array corresponds to a specific div or something, like:
var myArray = new Array("10,100","50,500")
then you'd have to split each element to separate the x and y.
or you could make it a multi-dimensional array and do away with the whole comma thing. mabe i'll think of a better idea after i've had a nap..
http://www.w3schools.com/JS/js_o…