Помощь [help] DHTML Menu

Тема в разделе "DLE", создана пользователем Goodcat, 2 дек 2008.

Информация :
Актуальная версия DataLife Engine 11.3
( Final Release v.11.3 | Скачать DataLife Engine | Скачать 11.3 demo )
Нужно ли обновляться | Как обновиться | Изменения в шаблонах
> Нет русских символов <
[Приватная тема DLE (Все подробности в ЛС к модератору раздела)]

Версии 11.2 и ниже - уязвимы!

Локализации | F.A.Q. | Внешний вид
Правила раздела | Правила форума
Обсуждение хайда карается баном!
В каждом сообщении указывайте версию DLE, которого они касаются!
Статус темы:
Закрыта.
Модераторы: killoff
  1. Goodcat

    Goodcat Постоялец

    Регистр.:
    14 фев 2008
    Сообщения:
    91
    Симпатии:
    54
    Люди выручайте, дело срочно по этому попрошу не флудить на темы "меню не очень для оптимизации" и т.д. в данный момент меня это мало интересует :)

    В общем проблема с Sothink DHTML Menu! Пол дня просидел за этим софтом что бы сделать то что хочу. но в итоге не смог нормально вставить в шаблон что бы работало...
    в обычном html файле все работает просто замечательно, но вот как только вставляешь в точно такой же но уже .tpl меню просто не отображается...
    может подскажите, как правильно прописывать пути в ява скрипте!? можно ли ставить тег {THEME}?
    в общем помогите заставить работать :(
     
  2. PoMaH

    PoMaH

    Регистр.:
    8 июн 2006
    Сообщения:
    753
    Симпатии:
    142
    {theme} v jave nelzia pisat`.

    tebe glavnoje propisat` priamoi put` do js v main tpl

    {THEME}/js/tvoi_skript.js (Перейти по ссылке)

    tagze jesli skript sostoit iz Prototype to skoreje vsego rabotat` ne budit, poskolku v DLE svoi (Jquery) prototype.

    nado ubrat` lishneje iz koda sothinka (jesli vsiotaki ispolzujut odnu bazu js) i budit vsio rabotat`.
     
    Goodcat нравится это.
  3. Goodcat

    Goodcat Постоялец

    Регистр.:
    14 фев 2008
    Сообщения:
    91
    Симпатии:
    54
    ну вот смотри.
    в <head></head> я ставлю
    PHP:
    <script type="text/javascript" language="JavaScript1.2" src="{THEME}/js/stmenu.js"></script>
    это понятно

    но вот например именно этот код должен быть самой менюшкой, я так понимаю в первой строчке там где "images" казывается путь к папке картинок и дальше в этой же строчке путь к js, но блин там еще куча js файлов, но я не разбираюсь в js вообще....увы :( пути прописывал но всеравно не пашет
    PHP:
    <script type="text/javascript" language="JavaScript1.2">
    <!--
    stm_bm(["menu61b2",730,"images","blank.gif",0,"","",1,0,250,0,1000,1,0,0,"","756",0,0,1,2,"default","hand","js/"],this);
    stm_bp("p0",[0,4,0,0,0,0,18,28,100,"",-2,"",-2,50,0,0,"#799BD8","7b0714","bg.gif",3,0,0,"#000000","",-1,-1,0,"transparent","",0,"060420lineb.gif",23,40,0,"#FFFFF7","",0,"",-1,-1,0,"transparent","",0,"060420linea.gif",23,40,0,"transparent","",0,"","","",""]);
    stm_ai("p0i0",[0,"О фирме","","",-1,-1,0,"/about/","_self","","","","",14,12,0,"","",0,0,0,0,1,"#FFFFF7",1,"#B5BED6",1,"","",2,3,0,0,"#FFFFF7","#000000","#FFFFFF","#F0DCBB","bold 7pt Verdana","bold 7pt Verdana",0,0],80,23);
    stm_aix("p0i1","p0i0",[0,"Новости","","",-1,-1,0,"/news/","_self","","","","",18,23,0,"","",0,0,0,0,1,"#FFFFF7",1,"#B5BED6",1,"","",3],90,23);
    stm_aix("p0i2","p0i1",[0,"Продукция","","",-1,-1,0,"/products/","_self","","","","",18,23,0,"060420arrow.gif","060420arrow1.gif",28,5],90,23);
    stm_bp("p1",[1,4,0,0,3,0,18,10,100,"",-2,"",-2,80,0,0,"#799BD8","7b0714","",3,0,0,"7b0714"]);
    stm_aix("p1i0","p0i0",[0,"ГОСТИННЫЕ","","",-1,-1,0,"/living_room/","_self","","","","",18,16,0,"060420arrow2.gif","060420arrow3.gif",10,5,0,0,1,"#FFFFF7",1,"#FFFFFF",1,"","",3,0,0,0,"#CC0000","#FFFFFF #CCCC00 #CCCC00"],150,18);
    stm_bp("p2",[1,2,0,0,3,0,18,0,100,"",-2,"",-2,80,0,0,"#799BD8","#7b0714","",3,0,0,"#CCCC00"]);
    stm_aix("p2i0","p0i0",[0,"Комплекты","","",-1,-1,0,"/living_packaged/","_self","","","","",18,16,0,"","",0,0,0,0,1,"#FFFFF7",1,"#FFFFFF",1,"","",3,0,0,0,"#FFFFCC","#CCCC00"],150,18);
    stm_aix("p2i1","p2i0",[0,"Столы обеденные","","",-1,-1,0,"/dining_tables/"],150,18);
    stm_aix("p2i2","p2i0",[0,"Столы кофейные","","",-1,-1,0,"/Coffee_Tables/"],150,0);
    stm_aix("p2i3","p2i0",[0,"Стулья","","",-1,-1,0,"/chairs/"],150,18);
    stm_aix("p2i4","p2i0",[0,"Витрины","","",-1,-1,0,"/showcases/","_self","","","","",16,9],150,18);
    stm_aix("p2i5","p2i0",[0,"Комоды","","",-1,-1,0,"/Chests/"],150,18);
    stm_aix("p2i6","p2i0",[0,"Разное","","",-1,-1,0,"/diff/"],150,0);
    stm_ep();
    stm_aix("p1i1","p0i0",[0,"СПАЛЬНИ","","",-1,-1,0,"/bedroom/","_self","","","","",18,16,0,"060420arrow2.gif","060420arrow3.gif",10,5,0,0,1,"#FFFFF7",1,"#FFFFFF",1,"","",3,0,0,0,"#CC0000",""],150,18);
    stm_bpx("p3","p2",[]);
    stm_aix("p3i0","p2i0",[0,"Комплекты","","",-1,-1,0,"/bedroom_packaged/"],150,18);
    stm_aix("p3i1","p2i0",[0,"Кровати","","",-1,-1,0,"/beds/"],150,18);
    stm_aix("p3i2","p2i0",[0,"Матрацы","","",-1,-1,0,"/mattresses/"],150,18);
    stm_aix("p3i3","p2i0",[0,"Прикроватные тумбы","","",-1,-1,0,"/Bed_thumbs/"],150,18);
    stm_aix("p3i4","p2i0",[0,"Шкафы","","",-1,-1,0,"/Wardrobes/"],150,18);
    stm_aix("p3i5","p2i0",[0,"Туалетные столики","","",-1,-1,0,"/Dressing_table/"],150,0);
    stm_aix("p3i6","p2i5",[],150,0);
    stm_aix("p3i7","p2i0",[0,"Зеркала","","",-1,-1,0,"/Mirrors/"],150,0);
    stm_ep();
    stm_aix("p1i2","p1i1",[0,"ДИВАНЫ","","",-1,-1,0,"/sofa/"],150,18);
    stm_bpx("p4","p2",[1,2,0,0,3,0,18,10]);
    stm_aix("p4i0","p2i0",[0,"Кожаные","","",-1,-1,0,"/Leather/","_self","","","","",18,16,0,"060420arrow2.gif","060420arrow3.gif",10,5],150,18);
    stm_bpx("p5","p2",[]);
    stm_aix("p5i0","p2i0",[0,"Комплекты","","",-1,-1,0,"/Leather_packaged/"],150,0);
    stm_aix("p5i1","p0i0",[0,"Диваны","","",-1,-1,0,"/leather_sofas/","_self","","","","",18,16,0,"","",0,0,0,0,1,"#FFFFF7",1,"#FFFFFF",1,"","",3,0,0,0,"#FFFFCC","#CCCC00","#ffffff"],150,0);
    stm_aix("p5i2","p5i1",[0,"Кресла","","",-1,-1,0,"/leather_armchairs/"],150,0);
    stm_aix("p5i3","p5i1",[0,"Угловые диваны","","",-1,-1,0,"/leather_corner_%20sofas/"],150,0);
    stm_aix("p5i4","p5i1",[0,"Раскладные диваны","","",-1,-1,0,"/uni_leather_sofas/"],150,0);
    stm_ep();
    stm_aix("p4i1","p4i0",[0,"Тканевые","","",-1,-1,0,"/Fabric/"],150,18);
    stm_bpx("p6","p2",[]);
    stm_aix("p6i0","p5i1",[0,"Комплекты","","",-1,-1,0,"/Fabric_packaged/"],150,0);
    stm_aix("p6i1","p5i1",[0,"Диваны","","",-1,-1,0,"/fabric_sofas/"],150,0);
    stm_aix("p6i2","p5i1",[0,"Кресла","","",-1,-1,0,"/fabric_armchairs/"],150,0);
    stm_aix("p6i3","p5i1",[0,"Угловые диваны","","",-1,-1,0,"/fabric_corner_%20sofas/"],150,0);
    stm_aix("p6i4","p5i1",[0,"Раскладные диваны","","",-1,-1,0,"/uni_fabric_sofas/"],150,0);
    stm_ep();
    stm_ep();
    stm_aix("p1i3","p0i0",[0,"КАБИНЕТЫ","","",-1,-1,0,"/cabinet/","_self","","","","",18,16,0,"060420arrow2.gif","060420arrow3.gif",10,5,0,0,1,"#FFFFF7",1,"#FFFFFF",1,"","",3,0,0,0,"#CC0000","#FFFFFF"],150,0);
    stm_bpx("p7","p2",[]);
    stm_aix("p7i0","p5i1",[0,"Столы письменные","","",-1,-1,0,"/desks/"],150,0);
    stm_aix("p7i1","p5i1",[0,"Кресла","","",-1,-1,0,"/armchairs/"],150,0);
    stm_aix("p7i2","p5i1",[0,"Витрины","","",-1,-1,0,"/cab_showcases/"],150,0);
    stm_aix("p7i3","p5i1",[0,"Комоды","","",-1,-1,0,"/cab_chests/"],150,0);
    stm_aix("p7i4","p5i1",[0,"Обшивка панелями","","",-1,-1,0,"/sheathing_panels/"],150,0);
    stm_ep();
    stm_aix("p1i4","p2i0",[0,"ОФИСНАЯ МЕБЕЛЬ","","",-1,-1,0,"/office/"],150,0);
    stm_aix("p1i5","p2i0",[0,"САДОВАЯ МЕБЕЛЬ","","",-1,-1,0,"/garden/"],150,0);
    stm_aix("p1i6","p2i0",[0,"ДЕТСКИЕ","","",-1,-1,0,"/Children\'s_furniture/"],150,0);
    stm_aix("p1i7","p2i0",[0,"АКСЕССУАРЫ","","",-1,-1,0,"/accessories/"],150,0);
    stm_aix("p1i8","p2i0",[0,"ЛЮСТРЫ","","",-1,-1,0,"/chandeliers/"],150,0);
    stm_aix("p1i9","p2i0",[0,"РАЗНОЕ","","",-1,-1,0,"/different/"],150,23);
    stm_ep();
    stm_aix("p0i3","p0i1",[0,"Контакты","","",-1,-1,0,"contacts"],90,23);
    stm_ep();
    stm_em();
    //-->
    </script>
     
  4. t0wer

    t0wer BlackHerald

    Регистр.:
    24 июн 2008
    Сообщения:
    733
    Симпатии:
    423
    1) Заходишь в админку
    2) Другие разделы
    3) Управление шаблонами
    4) Выбираешь свой шаблон
    5) Общий макет страницы
    6) Вставляешь в раскрывшееся поле свой код в нужное место.

    Примечание: сначала вставляй скрипт обработчик, а потом скрипт меню... а то работать не будет! Да, и не надо пихать обработчик в HEAD, в теле тоже все прекрасно работает.
     
  5. Goodcat

    Goodcat Постоялец

    Регистр.:
    14 фев 2008
    Сообщения:
    91
    Симпатии:
    54
    ты че ударился? или думаешь тут нуб пишет?
    я говорю что не пашет, знаю я что и куда вставлять....
    посмотрел код...весь код (как я понял) состоит из prototype) повсюду эта штука....что получается никак не сделать!?

    Добавлено через 26 минут
    все, разобрался...во первых более точно указал пути к картинкам это раз. а во вторых забыл в папку js добавить файл .htaccess, вот и не работало нифига...

    Тему можно закрывать :)
     
Статус темы:
Закрыта.