Difference between revisions of "Template:NYMU-Taipei/newtemplate1"

Line 506: Line 506:
 
         sidebar[i].style.display = "inline-block";
 
         sidebar[i].style.display = "inline-block";
 
sidebar[i].style.width = "180px";
 
sidebar[i].style.width = "180px";
items[i].firstChild.style.background-color = "#638695";
+
items[i].firstChild.style.backgroundColor = "#638695";
 
         }
 
         }
 
         else{
 
         else{
 
         sidebar[i].style.display = "none";
 
         sidebar[i].style.display = "none";
items[i].firstChild.style.background-color = "#bbb";
+
items[i].firstChild.style.backgroundColor = "#bbb";
 
         }
 
         }
 
         }
 
         }
 
         else{
 
         else{
 
         sidebar[i].style.display = "none";
 
         sidebar[i].style.display = "none";
items[i].firstChild.style.background-color = "#bbb";
+
items[i].firstChild.style.backgroundColor = "#bbb";
 
         }
 
         }
 
         }
 
         }

Revision as of 14:14, 12 July 2018