Code this in the url/account page
Hello,
I need help to code so people can take snow on and off by a simpel button in the url/account page.
When its on the client and every page on the CMS has snow ( I got the snow code, so just need the rest of it ) and when its off, none snow will be there.
Thanks
Re: Code this in the url/account page
You can store the state in a cookie by using jQuery or Javascript since the snow is a javascript, you just check the cookie if it's set to show_snow = true then you load the snow code else you don't display it.
Re: Code this in the url/account page
Quote:
Originally Posted by
CodeDragon
You can store the state in a cookie by using jQuery or Javascript since the snow is a javascript, you just check the cookie if it's set to show_snow = true then you load the snow code else you don't display it.
Thanks but i don't know so much about jQuery and Java :/
Re: Code this in the url/account page
Quote:
Originally Posted by
UartigZone
Thanks but i don't know so much about jQuery and Java :/
Java and Javascript are two different things; Javascript is usually learnt alongside HTML so it wouldn't be hard for you if you're familiar with HTML.
Re: Code this in the url/account page
Quote:
Originally Posted by
Terrum
Java and Javascript are two different things; Javascript is usually learnt alongside HTML so it wouldn't be hard for you if you're familiar with HTML.
Yeah....
Re: Code this in the url/account page
Quote:
Originally Posted by
UartigZone
Yeah....
And then jQuery pretty much is Javascript, so again not too hard to learn either.