Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var elementsArrays = document.getElementsByTagName("h2");
- var elements = elementsArrays[0];
- $("#title2-button").click(function() {
- if(elements.style.color != "yellow"){
- $("#title2").css("color", "yellow");
- } else{
- $("#title2").css("color", "black");
- }
- });
- $("title3-button").click(function(){
- $("#space-sloth").animate({
- down: '600px',
- opacity: '0.5',
- height: '150px',
- width: '150px'
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement