Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: kenet - toukokuu 25, 2011, 05:20:47 IP

Otsikko: change menu
Kirjoitti: kenet - toukokuu 25, 2011, 05:20:47 IP
could help me to add this menu to smf and remove the default one

http://www.andrewsellick.com/35/sexy-sliding-javascript-side-bar-menu-using-mootools (http://www.andrewsellick.com/35/sexy-sliding-javascript-side-bar-menu-using-mootools)


thank you very much

sorry for my English
Otsikko: Re: change menu
Kirjoitti: All Colours Sam - toukokuu 25, 2011, 06:39:32 IP
For what version of SMF this would be?

well, in either case, 1.1.x or 2.0, the basic layout of the menu is in the index.template.php

if you look at the menu closely, the menu itself its just a  very basic list:


<ul>
                 <li><a href="#">Link One</a></li>
                 <li><a href="#">Link Two</a></li>
                 <li><a href="#">Link Three</a></li>
                 <li><a href="#">Link Four</a></li>
                 <li><a href="#">Link Five</a></li>
             </ul>



if you are planing to use this for 2.0 you will have t edit the css so this mod can accept second and third levels.
Otsikko: Re: change menu
Kirjoitti: antechindia - toukokuu 26, 2011, 06:28:36 AP
<dl class="dropdown">
<dt id="one-ddheader" onmouseover="ddMenu('one',1)" onmouseout="ddMenu('one',-1)">Dropdown One</dt>
<dd id="one-ddcontent" onmouseover="cancelHide('one')" onmouseout="ddMenu('one',-1)">
<ul>
<li><a href="#" class="underline">Navigation Item 1</a></li>
<li><a href="#" class="underline">Navigation Item 2</a></li>
<li><a href="#" class="underline">Navigation Item 3</a></li>
<li><a href="#" class="underline">Navigation Item 4</a></li>
<li><a href="#">Navigation Item 5</a></li>
</ul>
</dl>