Current date/time is Thu Mar 28, 2024 10:53 pm

Shop

// 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%";}}

Shop

   


  • Items
    Fri May 06, 2016 8:13 pm
    «Cardinal System» View latest post
  • 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
  • New posts New posts
  • New posts [ Popular ] New posts [ Popular ]
  • New posts [ Locked ] New posts [ Locked ]
  • No new posts No new posts
  • No new posts [ Popular ] No new posts [ Popular ]
  • No new posts [ Locked ] No new posts [ Locked ]
  • Announcement Announcement
  • Sticky Sticky
  • Global announcement Global announcement