pan7nikt

ee9_samochody.js

Feb 28th, 2022 (edited)
862
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. function changeColor(color)
  3. {
  4.     document.getElementById("prawy").style.backgroundColor = color;
  5. }
  6.  
  7. function setFontColor(fontColor)
  8. {
  9.     var fontColor = document.getElementById("fontColor").value;
  10.     document.getElementById("prawy").style.color = fontColor;
  11. }
  12.  
  13. function setFontSize()
  14. {
  15.     var fontSize = document.getElementById("fontSize").value;
  16.     document.getElementById("prawy").style.fontSize = fontSize + "%";
  17. }
  18.  
  19. function setFrame()
  20. {
  21.     if(document.getElementById("frame").checked == false)
  22.     {
  23.         document.getElementById("obrazek").style.borderStyle = "none";
  24.     }
  25.     else
  26.     {
  27.         document.getElementById("obrazek").style.borderStyle = "solid";
  28.     }
  29. }
  30.  
  31. function setListType()
  32. {
  33.     document.getElementById("lista1").style.listStyleType = document.querySelector('[name="listType"]:checked').value;
  34. }
Add Comment
Please, Sign In to add comment