Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function zameniBoje()
- {
- if(document.getElementById("div1").style.backgroundColor=="green"){
- document.getElementById("div1").style.backgroundColor="red";
- document.getElementById("div2").style.backgroundColor="green";
- }else{
- document.getElementById("div1").style.backgroundColor="green";
- document.getElementById("div2").style.backgroundColor="red";
- }
- }
- function podesi(){
- var x = document.getElementById("boja").value;
- document.getElementById("txt").style.color = x;
- var y = document.getElementById("naziv").value;
- document.getElementById("txt").style.fontFamily = y;
- var z = document.getElementById("vel").value;
- document.getElementById("txt").style.fontSize = z;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement