It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

WEBSITE SHOP DESIGN (ACCORDIAN MENU)

WEBSITE SHOP DESIGN (ACCORDIAN MENU)

Postby Dukey1234 on Sat Nov 06, 2010 2:19 am

Hi, im currently trying to design a shop for my website, http://www.j-autos.com . Im struggling like mad. For an example im looking to have a design like this website. http://www.scoobyparts.com . accordian menu down the left i have been using purecssmenu.com but it takes a longtime and cant save it half way through. anybody suggest any better programs. Or can anybody help me out on this.
Dukey1234
 
Posts: 1
Joined: Sat Nov 06, 2010 2:00 am

Re: WEBSITE SHOP DESIGN (ACCORDIAN MENU)

Postby HotNoob on Sun Nov 07, 2010 3:58 am

blah, easy as pie.
Code: Select all
<script>
  function removeElement(value, id)
   {
      if(value == 1)
      {
         document.getElementById(id).style.display="";
      }
      else if(value == 0)
      {
         document.getElementById(id).style.display="none";
      }
          }
  function toggleEleDisplay(id)
   {
      if(document.getElementById(id).style.display="none")
      {
         document.getElementById(id).style.display="";   
      }
      else
      {
         document.getElementById(id).style.display="none";
      }
   }
</script>
<div>
   <span onClick="removeElement(1,'linkExp1');">&raquo;</span><a href='#'>LINK1</a>
   <div id=linkExp1 style='display:none;'>
      &nbps;&nbps;&nbps;<a href='#'>hidden link</a>
   </div>
</div>


use the toggleEleDisplay(id) function if u want it to open and close instead of just openning
HotNoob
100+ Club
 
Posts: 169
Joined: Sun May 02, 2010 1:38 am


Who is online

Users browsing this forum: No registered users and 10 guests