Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Navigation panel customization...


Pez002

Recommended Posts

I'm helping to put together a store for some folks, and was trying to integrate the following code into the navigation box.

 

<ul>
<li id=click1 class="expand" onclick="toggle( this )">Click to Expand/Collapse
 <ul onclick="cancel( event )">

   <li id=click1a class="expand" onclick="toggle( this )">Click Again
     <ul onclick="cancel( event )">
     <li>Black</li>

     <li>Green</li>
     <li>Red</li>
     </ul>
    </li>

     <li id=click1b class="hide" onclick="toggle( this )">Click Again
     <ul onclick="cancel( event )">
     <li>Oats</li>

     <li>Honey</li>
     <li>Wheat</li>
     </ul>
    </li>

     <li id=click1c class="hide" onclick="toggle( this )">Click Again
     <ul onclick="cancel( event )">
     <li>Mountain</li>

     <li>Spring</li>
     <li>Bottle</li>
     </ul>
    </li>
 </ul>
</li>

<li id=click2 class="hide" onclick="toggle( this )">Click to Expand/Collapse
 <ul onclick="cancel( event )">
   <li>This is a test A</li>

   <li>This is a test B</li>
   <li>This is a test C</li>
 </ul>
</li>

<li id=click3 class="hide" onclick="toggle( this )">Click to Expand/Collapse 
 <ul onclick="cancel( event )">
   <li>This is a test I</li>
   <li>This is a test II</li>

   <li>This is a test III</li>
 </ul>
</li>
</ul>

 

I need this to combine with the current (ie: stock) PHP, which calls up the info it needs (names of categories and such) and inserts it into the code automatically. Although I'm fairly proficient with HTML, I can barely tread water when it comes to PHP, so I have absolutely no idea where to begin. Can someone point me in the right direction?

 

Um.... also, I hadn't meant to post this yet. Accidental enter and all. (hence the abruptly ending topic description)

Unless someone can tell me how to delete a topic, and not just edit it, I'd be much obliged ;)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...