View Full Version : .js вставить в header.php
vladimirm
28.07.2009, 12:19
Добрый день.
Такая проблема:
Вставляю флэш меню в шапку сайта, на сайте оно не отображается, а если просто шапку в браузере открыть , то все видно....
<!--
stm_bm(["menu41c9",900,"","blank.gif",0,"","",0,0,250,0,1000,1,0,0,"","80%",0,0,1,2,"default","hand","",1,25],this);
stm_bp("p0",[0,4,0,0,1,4,0,0,100,"",-2,"",-2,50,2,2,"#999999","transparent","",3,0,0,"#000000"]);
stm_ai("p0i0",[0,"Главная","","",-1,-1,0,"http://www.mysite.ru/","_self","","","","",0,0,0,"","",0,0,0,1,1,"#E6EFF9",1,"#0000CC",1,"round01_m[1].gif","round01_m[2].gif",3,3,0,0,"#E6EFF9","#000000","#FFFFFF","#FFFFFF","10pt Tahoma","bold 10pt Tahoma",0,0,"round01_l[1].gif","round01_l[2].gif","round01_r[1].gif","round01_r[2].gif",5,5,26],80,0);
stm_aix("p0i1","p0i0",[0,"Новости","","",-1,-1,0,"http://www.mysite.ru/modules.php?name=news","_self","","","","",0,0,0,"","",0,0,0,1,1,"#E6EFF9",1,"#FFD602"],80,0);
stm_aix("p0i2","p0i1",[0,"О компании","","",-1,-1,0,"http://www.mysite.ru/modules.php?name=company"],80,0);
stm_aix("p0i3","p0i1",[0,"Где купить","","",-1,-1,0,"#"],80,0);
stm_aix("p0i4","p0i3",[0,"Партнерам"],80,0);
stm_aix("p0i5","p0i3",[0,"Контакты"],80,0);
stm_aix("p0i6","p0i3",[0,"Информация"],80,0);
stm_ep();
stm_em();
//-->
</script>
вот код флэш меню.
Помогите разобраться пожалуйста...
покажите как вы пытаетесь вставить этот код
vladimirm
28.07.2009, 15:18
<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD WIDTH=100% HEIGHT=204 ALT="" valign="top">
<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD></TD>
<TD WIDTH=100% HEIGHT=204 ALT="" valign="top">
<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
</TR>
<TR>
<TD WIDTH=100% HEIGHT=204 ALT="" valign="top">
<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 background="themes/Corp/images/pix.jpg">
<TR>
<td WIDTH=27></td>
<TD><IMG SRC="themes/Corp/images/top_im1.jpg" WIDTH="100%" HEIGHT=204 ALT=""></TD>
<td WIDTH=27></td>
</TR>
</TABLE>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="100%" >
<tr>
<td WIDTH="28" background="themes/Corp/images/pix.jpg"></td>
<td>
<TABLE align=center BORDER=0 CELLPADDING=0 CELLSPACING=0>
<tr>
<td><a href="index.php"><img border="0" src="themes/Corp/images/butt1.gif"></a></td>
<td><a href="modules.php?name=news"><img border="0" src="themes/Corp/images/butt2.gif"></a></td>
<td><a href="modules.php?name=company"><img border="0" src="themes/Corp/images/butt3.gif"></a></td>
<td><a href="modules.php?name=gde_kupit"><img border="0" src="themes/Corp/images/butt4.gif"></a></td>
<td><a href="modules.php?name=partner"><img border="0" src="themes/Corp/images/butt5.gif"></a></td>
<td><a href="modules.php?name=contact"><img border="0" src="themes/Corp/images/butt6.gif"></a></td>
<td><a href="modules.php?name=nujno_znat"><img border="0" src="themes/Corp/images/butt7.gif"></a></td>
</tr>
<tr><td>
<script type="text/javascript" language="JavaScript1.2" src="stmenu.js"></script>
<script type="text/javascript" language="JavaScript1.2">
<!--
stm_bm(["menu41c9",720,"","blank.gif",0,"","",0,0,250,0,1000,1,0,0,"","80%",0,0,1,2,"default","hand",""],this);
stm_bp("p0",[0,4,0,0,1,4,0,0,100,"",-2,"",-2,50,2,2,"#999999","transparent","",3,0,0,"#000000"]);
stm_ai("p0i0",[0,"Главная","","",-1,-1,0,"http://www.mysite.ru/","_self","","","","",0,0,0,"","",0,0,0,1,1,"#E6EFF9",1,"#0000CC",1,"round01_m[1].gif","round01_m[2].gif",3,3,0,0,"#E6EFF9","#000000","#FFFFFF","#FFFFFF","10pt Tahoma","bold 10pt Tahoma",0,0],80,0);
stm_aix("p0i1","p0i0",[0,"Новости","","",-1,-1,0,"http://www.mysite.ru/modules.php?name=news","_self","","","","",0,0,0,"","",0,0,0,1,1,"#E6EFF9",1,"#FFD602"],80,0);
stm_aix("p0i2","p0i1",[0,"О компании","","",-1,-1,0,"http://www.mysite.ru/modules.php?name=company"],80,0);
stm_aix("p0i3","p0i1",[0,"Где купить","","",-1,-1,0,"http://www.mysite.ru/modules.php?name=gde_kupit"],80,0);
stm_aix("p0i4","p0i1",[0,"Партнерам","","",-1,-1,0,"http://www.mysite.ru/modules.php?name=partner"],80,0);
stm_aix("p0i5","p0i1",[0,"Контакты","","",-1,-1,0,"http://www.mysite.ru/modules.php?name=contact"],80,0);
stm_aix("p0i6","p0i1",[0,"Информация","","",-1,-1,0,"http://www.mysite.ru/modules.php?name=nujno_znat"],80,0);
stm_ep();
stm_em();
//-->
</script>
</td></tr>
</TABLE>
</td>
<td WIDTH="28" background="themes/Corp/images/pix.jpg"></td>
</tr></TABLE>
</TD>
</TR>
</TABLE>
</TD>
<TD></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD WIDTH=100% HEIGHT=204 ALT="" valign="top">
<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD background="themes/Corp/images/left_px.jpg"><IMG SRC="themes/Corp/images/spacer.gif" WIDTH=28 HEIGHT=1 ALT=""></TD>
<TD WIDTH=100% HEIGHT=250 ALT="" valign="top">
<table width="100%" height="410" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="1"><div><img src="themes/Corp/images/spacer.gif" width="1" height="1"></div>
картинки кнопок гружу в ту же папку где и header
так же пробывал упаковать в 1.js и прописывал путь типа
<script type="text/javascript" language="JavaScript1.2" src="1.js"></script>
по предложенному вами коду, картинки и js файл должны находиться в корне сайта, а не в папке темы. Следует изменить путь.
vladimirm
29.07.2009, 11:19
спасибо помогло.
MyNuke.ru