Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function Setup() {
- obj = document.getElementById("submit");
- obj.onclick = Functions;
- }
- function Functions()
- {
- HideSubmit();
- Time();
- }
- function HideSubmit() {
- obj = document.getElementById("submit");
- obj.style.display = "none";
- }
- function Time(i) {
- if (!i) var i = 5;
- obj2 = document.getElementById("clock");
- obj2.firstChild.nodeValue = "Czekaj: " + i + " sekund";
- i--;
- setTimeout("Time("+i+")", 1000);
- if (i == 0){
- window.location="";
- }
- }
- window.onload = function(){Setup();};
- </script>
- <input type="submit" id="submit" value="Click!" /><br />
- <span id="clock">Kliknij</span>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement