Skip to content

Instantly share code, notes, and snippets.

@malikkurosaki
Created January 30, 2018 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malikkurosaki/9fe7c4f3f9befecc4116fc89c8e46769 to your computer and use it in GitHub Desktop.
Save malikkurosaki/9fe7c4f3f9befecc4116fc89c8e46769 to your computer and use it in GitHub Desktop.
simple create slide show onlu use pure javascript that was super simple
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