Code this in the url/account page

Results 1 to 6 of 6
  1. #1
    Account Upgraded | Title Enabled! UartigZone is offline
    MemberRank
    Dec 2013 Join Date
    LoserlandLocation
    441Posts

    ! 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


  2. #2
    ◝(⁰▿⁰)◜Smile◝ (⁰▿⁰)◜ Taiga is offline
    DeveloperRank
    May 2007 Join Date
    InternetLocation
    2,464Posts

    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.

  3. #3
    Account Upgraded | Title Enabled! UartigZone is offline
    MemberRank
    Dec 2013 Join Date
    LoserlandLocation
    441Posts

    Re: Code this in the url/account page

    Quote Originally Posted by CodeDragon View Post
    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 :/

  4. #4
    www.Epic Hosts.co.uk Terrum is offline
    MemberRank
    Jun 2008 Join Date
    EpicHosts,co.ukLocation
    1,322Posts

    Re: Code this in the url/account page

    Quote Originally Posted by UartigZone View Post
    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.

  5. #5
    Account Upgraded | Title Enabled! UartigZone is offline
    MemberRank
    Dec 2013 Join Date
    LoserlandLocation
    441Posts

    Re: Code this in the url/account page

    Quote Originally Posted by Terrum View Post
    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....

  6. #6
    www.Epic Hosts.co.uk Terrum is offline
    MemberRank
    Jun 2008 Join Date
    EpicHosts,co.ukLocation
    1,322Posts

    Re: Code this in the url/account page

    Quote Originally Posted by UartigZone View Post
    Yeah....
    And then jQuery pretty much is Javascript, so again not too hard to learn either.



Advertisement