dimabudnikov Posted November 8, 2010 Report Share Posted November 8, 2010 Помогите сделать аккордеон меню очень удобно когда 2-3 главные категории и куча подкатегорий которых хорошоб скрытьСпасибо Quote Link to post Share on other sites
dimabudnikov Posted November 8, 2010 Author Report Share Posted November 8, 2010 для примера вот подборка:http://www.narrowdesign.com/http://tutorialzine.com/2009/12/colorful-content-accordion-css-jquery/ Quote Link to post Share on other sites
ukrtelekom Posted November 15, 2010 Report Share Posted November 15, 2010 Можно как-то так:<div id="categoriesBoxMenu">{defun name=categories_tree categories=$categories}{if $categories}<ul id="CatNavi">{foreach item=c from=$categories}{if $category->category_id != $c->category_id}<li class="CatLevel1"><a href='catalog/{$c->url}' tooltip='category' category_id='{$c->category_id}'>{$c->name}</a></li>{else}<li class="CatLevel2"><a href='catalog/{$c->url}' tooltip='category' category_id='{$c->category_id}'>{$c->name}</a></li>{/if}{*if in_array($category->category_id, $c->subcats_ids)*}{if in_array($category->category_id, $c->subcats_ids)}{fun name=categories_tree categories=$c->subcategories} {/if} {*/if*}{/foreach} </ul>{/if} {/defun}</div> Quote Link to post Share on other sites
dimabudnikov Posted November 15, 2010 Author Report Share Posted November 15, 2010 Попробовал все под категории прячет но при нажатии на нужную категорию открывается новая страница с под списком категорий а нужно чтоб при нажатии на категорию открывались под категории без перезагрузки страницы Quote Link to post Share on other sites
dimabudnikov Posted November 27, 2010 Author Report Share Posted November 27, 2010 >>>>ukrtelekomПомогите Quote Link to post Share on other sites
ukrtelekom Posted November 28, 2010 Report Share Posted November 28, 2010 Если у вас так как описано выше, тогда дело в стилях. У меня менюха вырисовуется так:-----------------------------------------------------#categoriesBoxMenu {margin:0 0 0;padding-top:0px;width:175px;}#categoriesBoxMenu #CatNavi,#CatNavi #categoriesBoxMenu #CatNavi,#CatNavi ul,#CatNavi li {list-style-type:none;margin:0;padding:.1em;}#categoriesBoxMenu #CatNavi ul { margin-left:10px;}#categoriesBoxMenu #CatNavi li a {background:url(../images/icon_arrow.gif) no-repeat left center;color:#3A3A3A;font-weight:400;margin:.2em 0 0;padding:.2em 0 .2em 20px;text-decoration:none;text-indent:.8em;}#categoriesBoxMenu #CatNavi li a:hover {background:url(../images/icon_arrow_down.gif) no-repeat left center;color:#000;font-weight:400;}#categoriesBoxMenu #CatNavi li a,#categoriesBoxMenu #CatNavi .Current li a,#categoriesBoxMenu #CatNavi .CurrentParent li a,#categoriesBoxMenu #CatNavi .CurrentParent .Current li a {font-weight:400;text-decoration:none;}#categoriesBoxMenu #CatNavi .Current a,#categoriesBoxMenu #CatNavi .CurrentParent .Current a {text-decoration:underline;}#categoriesBoxMenu #CatNavi .CurrentParent a,.bold {font-weight:600;}--------------------------------------------------------------------------Остальное подправите под себя Quote Link to post Share on other sites
ekctpemict Posted November 28, 2010 Report Share Posted November 28, 2010 Сделать так как на туториалайз, но админкой добавлять в стиль текущей категории еще стиль (в цсс это можно делать) как неактивный, что б текущая категория была открыта Quote Link to post Share on other sites
taru Posted December 3, 2010 Report Share Posted December 3, 2010 Кажется это уже было решено раньше:http://forum.simplacms.ru/comments.php?DiscussionID=40&page=1#Item_17 Quote Link to post Share on other sites
yr4ik Posted December 10, 2015 Report Share Posted December 10, 2015 Не качайте! Вирус! Quote Link to post Share on other sites
Noxter Posted December 10, 2015 Report Share Posted December 10, 2015 Не качайте! Вирус!Где? Quote Link to post Share on other sites
yr4ik Posted December 11, 2015 Report Share Posted December 11, 2015 (edited) Где? Были посты. Их уже удалили. Но Мое сообщение почему то оставили) Я думаю их бы тоже можно было удалить. Что бы не смущать людей... Edited December 11, 2015 by yr4ik 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.