Albinos4210 Posted December 3, 2011 Report Share Posted December 3, 2011 Подскажите пожалуйста как сделать меню категорий на jqueryТипа такого http://demo.tutorialzine.com/2009/12/colorful-content-accordion-css-jquery/demo.htmlСпасибо Quote Link to post Share on other sites
n1c Posted August 25, 2012 Report Share Posted August 25, 2012 не именно такое, но похожее:<!-- Каталог --> <script language="javascript"> {literal} function sub_menu(id,hide) { var ele = document.getElementById('submenu'+id); var text = document.getElementById('subtext'+id); if(hide, ele.style.display == "block"){ document.getElementById('submenu'+id).style.display='none'; text.innerHTML = "+"; }else{ document.getElementById('submenu'+id).style.display='block'; text.innerHTML = "-"; } } {/literal} </script> {function name=categories_tree} {if $categories} <ul> {foreach $categories as $c} {if $c->visible} <div> <li> <a {if $category->id == $c->id}class="selected"{/if} href="catalog/{$c->url}" data-category="{$c->id}">{$c->name}</a> {if $c->subcategories} <a id="subtext{$c->id}" href="javascript:sub_menu({$c->id}, 0)">+</a></li> {/if} {if in_array($category->id, $c->children)} <div> {categories_tree categories=$c->subcategories} </div> {else} <div style="display:none;" id="submenu{$c->id}"> {categories_tree categories=$c->subcategories} </div> {/if} </li> </div> {/if} {/foreach} </ul> {/if} {/function} {categories_tree categories=$categories}<!-- Каталог End --> Quote Link to post Share on other sites
ExXxTaSy Posted August 30, 2012 Report Share Posted August 30, 2012 че то у меня когда вставляю этот кусок- вообще сайт занибается Quote Link to post Share on other sites
n1c Posted September 7, 2012 Report Share Posted September 7, 2012 это для версии 2.1.0вставлять в Меню каталога Quote Link to post Share on other sites
Just123i Posted September 10, 2012 Report Share Posted September 10, 2012 Парсер сломал код. Чтобы парсер не ломал код, его нужно обрамлять специальным BB-кодо Quote Link to post Share on other sites
Noxter Posted September 10, 2012 Report Share Posted September 10, 2012 Не парсер а регулярка=)Вот линк http://forum.simplacms.ru/discussion/2252/menyu-kategoriy#Item_3 и вот http://forum.simplacms.ru/discussion/2252/menyu-kategoriy#Item_5 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.