Skip to content

Instantly share code, notes, and snippets.

@pawelmhm
Created January 18, 2013 14:29
Show Gist options
  • Save pawelmhm/4564901 to your computer and use it in GitHub Desktop.
Save pawelmhm/4564901 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#classer {
width:300px;
height:300px;
margin:auto;
}
<!-- content to be placed inside <body>…</body> -->
<div id="classer">
</div>
(function () {
var diver = document.getElementById('classer');
var IntervalId;
var oczy = ["niebieskie", "czarne", "zielone"];
IntervalId = setInterval(flashtext,200);
function flashtext() {
for (var i=0;i<oczy.length; i++) {
message = i + ". "+ "Moje oczy sa " + oczy[i];
diver.innerHTML = message;
}
}
//function flashtext() {
//diver.style.background = diver.style.background == "purple" ? "red" : "purple";
//}
})();
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"javascript"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment