Very Easy Request
I have a javascript that loads when the page loads. I would like the user to be able to turn it on or off. That is, i want the user to have the option of the script loading when the page loads, or not loading.
How i'd like to do it, is to either use a cookie, or a field in the database to store a value, that says whether or not the script should run when the page loads.
I imagine the cookie would be easier.
Can anyone give me a general idea of what to do? or help me out with some php that does something like that?
|