louisgnarf
Programmer
Well, the basic idea is at codelifter.com:
I would like to modify this so that it can make a cookie that will remember the chosen CSS sheet for all future visits, but I don't know how to do that in JavaScript...I've seen other examples of code that does it, but I sort of like codelifter's version because all the scriptcode is in the <head> tags (as opposed to the body of the document). Is there anyway to easily modify this code to let it support cookies?
I would like to modify this so that it can make a cookie that will remember the chosen CSS sheet for all future visits, but I don't know how to do that in JavaScript...I've seen other examples of code that does it, but I sort of like codelifter's version because all the scriptcode is in the <head> tags (as opposed to the body of the document). Is there anyway to easily modify this code to let it support cookies?