Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var click = 0;
- function ile(){
- click +=1;
- document.getElementById('abc').innerHTML = click+" razy";
- };
- function kolor(){
- if(document.getElementById('kolor1').style.backgroundColor == 'lime'){
- document.getElementById('kolor1').style.backgroundColor = 'pink';
- ile();
- }else{
- document.getElementById('kolor1').style.backgroundColor = 'lime';
- ile();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement