egemen Posted January 22, 2023 Share Posted January 22, 2023 (edited) let dc = document.querySelector("#btcr"); let gen=document.querySelector("#ul"); let sp= document.querySelectorAll(".sp"); işlev dd() { if (gen.style.width === "150px") { gen.style.width = "60 piksel"; } Başka { gen.style.width = "150px"; } } fonksiyon aa(){ if( gen.style.width ==="60 piksel"){ sp.style.csstext="görünürlük: gizli;görüntü: yok;"; } } dc.addEventListener("tıklayın", dd); Edited January 22, 2023 by egemen Quote Link to comment https://forums.phpfreaks.com/topic/315825-sidebar-just-click-and-the-text-always-hides-when-it-should/ Share on other sites More sharing options...
egemen Posted January 22, 2023 Author Share Posted January 22, 2023 Quote Link to comment https://forums.phpfreaks.com/topic/315825-sidebar-just-click-and-the-text-always-hides-when-it-should/#findComment-1604900 Share on other sites More sharing options...
requinix Posted January 23, 2023 Share Posted January 23, 2023 Do not translate things like keywords } Başka { // else fonksiyon aa(){ // function aa or CSS 60 piksel /* 60px */ görünürlük: gizli;görüntü: yok; /* visibility: hidden; image: none; */ or events dc.addEventListener("tıklayın", dd); // click You can write in Turkish names when you are the one creating them - names like for variables or functions. Quote Link to comment https://forums.phpfreaks.com/topic/315825-sidebar-just-click-and-the-text-always-hides-when-it-should/#findComment-1604922 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.