Jump to content

Mellow

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Mellow

  1. Hello guys and girls out there, i need your help. I have this code where everytime u tap on a picture adds 1 value, i want to know if i can make it show a picture on 100 clicks <div style=" text-align: center;" <h1>Hello my friend if you love chocobos, then you are the right place</h1> <br> <script type="text/javascript"> var Love = 0; function onClick() { Love += 1; document.getElementById("Love").innerHTML = Love; }; </script> <input type="image" src="heart.png" onclick="onClick ()" width="62" height="62" /> <p>Love given: <a id="Love">0</a></p> </div>
  2. Hello, so i have this button that counts every time you tap it, but whenever you refresh or closes the tab it resests. I've been trying for so long to find a way for it to save your progress, but nothing seems to work. Can u help me? <body><div style=" text-align: center;" <h1>Hello my friend if you love chocobos, then you are the right place</h1><br> <script type="text/javascript"> var Love = 0; function onClick() { Love += 1; document.getElementById("Love").innerHTML = Love; }; </script> <input type="image" src="heart.png" onclick="onClick ()" width="62" height="62" /> <p>Love given: <a id="Love">0</a></p> </div>
×
×
  • Create New...