Skip to content

Instantly share code, notes, and snippets.

@pawelmhm
Created January 18, 2013 14:29
Show Gist options
  • Select an option

  • Save pawelmhm/4564901 to your computer and use it in GitHub Desktop.

Select an option

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;
IntervalId = setInterval(flashtext,200);
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