var toggle = document.getElementById('switch');
toggle.onclick = function() {
this.innerText='By Mitzike';
this.style.cursor='none';
this.style.color='#bef';
document.getElementById('lights').className = 'animate';
document.getElementById('switch').className = 'animate';
document.getElementById('trav').style.color='#ccf';
};
Love javascript
1 Response
Write a comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.