Jump to content
  • 0

не могу подключить меню на javascript


KDM
 Share

Question

Доброго времени суток!Есть сайт,в нем сделано меню.

01 <script type="text/javascript" src="stmenu.js"></script>

02

03 </head>

04 <body>

05 <div id="container">

06 <div id="holder" class="clearfix">

07 <div id="logo">

08 <h1>ООО "СИК ТулабетонСтрой"</h1>

09 </div>

10 <div>

11 <script type="text/javascript">

12 <!--

13

14 stm_bm(["menu41c9",960,"","blank.gif",0,"","",0,0,250,0,1000,1,0,0,"","",0,0,1,2,"default","hand","",1,25],this);

15 stm_bp("p0",[0,4,0,0,1,4,0,7,100,"",-2,"",-2,50,2,2,"#999999","transparent","",3,0,0,"#000000"]);

16 stm_ai("p0i0",[0,"О компании","","",-1,-1,0,"index.html","_self","","","","",0,0,0,"","",0,0,0,1,1,"#E6EFF9",1,"#0066FF",1,"bg2.gif","",3,3,0,0,"#E6EFF9","#000000","#000000","#000000","8pt Verdana","8pt Verdana",0,0,"bg1.gif","","bg3.gif","",6,6,22],130,0);

17 stm_aix("p0i1","p0i0",[0,"Продукция и цены","","",-1,-1,0,"","_self","","","","",0,0,0,"arrow_r.gif","arrow_r.gif",7,7,0,1,1,"#E6EFF9",1,"#FFFFFF"],130,0);

18 stm_bp("p1",[1,4,0,-1,0,4,0,0,100,"",-2,"",-2,50,2,2,"#CCCCCC","#FFFFFF","",3,1,1,"#FFFFFF"]);

19 stm_ai("p1i0",[0,"Товарный бетон","","",-1,-1,0,"tovbet.html","_self","","","","",0,0,0,"","",0,0,0,0,1,"#FFFFFF",1,"#FFFFFF",1,"","",0,0,1,1,"#FFFFFF","#FFFFFF","#000000","#000000","8pt Verdana","8pt Verdana",0,0,"","","","",0,0,0],130,0);

20 stm_ai("p1i1",[6,1,"#0033FF","",-1,-1,0]);

21 stm_aix("p1i2","p1i0",[0,"Товарный раствор","","",-1,-1,0,"tovrast.html"],130,0);

22 stm_aix("p1i3","p1i1",[]);

23 stm_aix("p1i4","p1i0",[0,"Транспортные услуги","","",-1,-1,0,"transusl.html"],130,0);

24 stm_ep();

25 stm_aix("p0i2","p0i1",[0,"Контроль качества","","",-1,-1,0,"control.html","_self","","","","",0,0,0,"","",0,0],130,0);

26 stm_aix("p0i3","p0i0",[0,"Сертификаты","","",-1,-1,0,"sert.html","_self","","","","",0,0,0,"","",0,0,0,1,1,"#E6EFF9",1,"#FFD602"],130,0);

27 stm_aix("p0i4","p0i3",[0,"Контакты","","",-1,-1,0,"contacts.html"],130,0);

28 stm_aix("p0i5","p0i3",[0,"Фотогалерея","","",-1,-1,0,"foto.html"],120,0);

29 stm_ep();

30 stm_em();

31 //-->

32 </script>

Страничек в сайте добавляется и так как добавлять в каждую страницу текст меню неудобно,то хочу сделать,чтобы меню загружалось из файла например menu.js,но не получается.Почитал форум,но что-то не нашел решения.Помогите пожалуйста - нужно очень срочно.Надеюсь на вашу отзывчивость .

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Сделайте по аналогии с файлом stmenu.js.

пробовал.в stmenu.js сделано через document.write.То есть каждую строчку скрипта писал в document.write.Потом в html,где нужно выводить меню пишу <script type="text/javascript" src="menu.js"></script>.Но когда запускаю документ на месте меню пустота.Я в java не знаток,не знаю даже что и делать :dash:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Обсуждения

    • Актуальные контакты: Telegram: @Nikker_web E-Mail:   tarasevich.email@gmail.com Портфолио https://www.behance.net/d4d4186e Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ    
    • Актуальные контакты: Telegram: @Nikker_web E-Mail:   tarasevich.email@gmail.com   Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ   Портфолио https://www.behance.net/d4d4186e
    • Доброго всем времени суток. Прошу помощи. Научите принципу изменения футера. Движок Xenforo. Версия 2.2.10. Стиль дефолтный. Что именно нужно в итоге на фото примере. Мой шаблон app.footer less имеет следующее значение.  .p-footer { .xf-publicFooter(); a { .xf-publicFooterLink(); } } .p-footer-inner { .m-pageWidth(); .m-pageInset(); padding-top: @xf-paddingMedium; padding-bottom: @xf-paddingLarge; } .p-footer-row { .m-clearFix(); margin-bottom: -@xf-paddingLarge; } .p-footer-row-main { float: left; margin-bottom: @xf-paddingLarge; } .p-footer-row-opposite { float: right; margin-bottom: @xf-paddingLarge; } .p-footer-linkList { .m-listPlain(); .m-clearFix(); > li { float: left; margin-right: .5em; &:last-child { margin-right: 0; } a { padding: 2px 4px; border-radius: @xf-borderRadiusSmall; &:hover { text-decoration: none; background-color: fade(@xf-publicFooterLink--color, 10%); } } } } .p-footer-rssLink { > span { position: relative; top: -1px; display: inline-block; width: 1.44em; height: 1.44em; line-height: 1.44em; text-align: center; font-size: .8em; background-color: #4682B4; border-radius: 2px; } .fa-rss { color: white; } } .p-footer-copyright { margin-top: @xf-elementSpacer; text-align: center; font-size: @xf-fontSizeSmallest; } .p-footer-debug { margin-top: @xf-paddingLarge; text-align: right; font-size: @xf-fontSizeSmallest; .pairs > dt { color: inherit; } } @media (max-width: @xf-responsiveMedium) { .p-footer-row-main, .p-footer-row-opposite { float: none; } .p-footer-copyright { text-align: left; padding: 0 4px; // aligns with other links } }  
    • Нужны сайты с примерами верстки, типа https://css-tricks.com/. Типовые приемы и нестандартные на все случаи жизни. Накидайте ссылок.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy