Current date/time is Sun May 12, 2024 3:02 am
Approved Human
// Get the elements with class="column"var elements = document.getElementsByClassName("forum");// Declare a loop variablevar i;// List Viewfunction listView() {for (i = 0; i < elements.length; i++) {elements[i].style.width = "100%";}}// Grid Viewfunction gridView() {for (i = 0; i < elements.length; i++) {elements[i].style.width = "50%";}}Approved Human
- Takato
Tue Mar 22, 2016 11:47 pm
«Cardinal System» - Izumi Hiragi
Sat Mar 26, 2016 9:41 am
Guest
- Topics
- Replies
- Views
- Last Posts
- No message.
Users browsing this forum: None
Moderators
None
Permissions in this forum:
You cannot post new topics in this forum
You cannot reply to topics in this forum
Legend
|
|