SHARE
TWEET

Untitled

a guest Nov 19th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function zameniBoje()
  2. {
  3.     if(document.getElementById("div1").style.backgroundColor=="green"){
  4.         document.getElementById("div1").style.backgroundColor="red";
  5.         document.getElementById("div2").style.backgroundColor="green";
  6.     }else{
  7.         document.getElementById("div1").style.backgroundColor="green";
  8.         document.getElementById("div2").style.backgroundColor="red";
  9.     }
  10. }
  11.  
  12. function podesi(){
  13.     var x = document.getElementById("boja").value;
  14.     document.getElementById("txt").style.color = x;
  15.     var y = document.getElementById("naziv").value;
  16.     document.getElementById("txt").style.fontFamily = y;
  17.     var z = document.getElementById("vel").value;
  18.     document.getElementById("txt").style.fontSize = z;
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top