Created
January 30, 2018 01:54
-
-
Save malikkurosaki/9fe7c4f3f9befecc4116fc89c8e46769 to your computer and use it in GitHub Desktop.
simple create slide show onlu use pure javascript that was super simple
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = 0; | |
var b = document.getElementsByClassName("none"); | |
anim(); | |
function anim(){ | |
a++; | |
if(a > 3){ | |
a =1; | |
} | |
b[a].style.display = "block"; | |
document.getElementById("namaWeb").innerHTML = a; | |
setTimeout(anim,2000); | |
} | |
//note for realtime refresh js file use ?$$VERSION$$ on last of src script example src="myjs.js?$$VERSION$$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment