Раздвижное меню желательно использовать для темных сайтов.
Установка:
Скопируйте и вставте этот код там где вы хотите увидеть меню
Code
<!--U1AAMENU1Z--><div style="display:inline;" id="menuDiv"><!-- UcoZMenu --><div style="display:inline;" id="menuDiv"><ul id="tmenu0" style="margin-left:4px">
<li class="m"><a class="m" href="http://cod-hacks.3dn.ru/">Главная</a></li>
<li class="m"><a class="color:#0f0f0f;" href="/forum/">Форум</a></li>
<li class="m"><a class="m" href="/gb/">Отзывы о сайте</a></li>
<li class="m"><a class="m" href="/faq/">FAQ</a></li>
<li class="m"><a class="m" href="/index/0-4">Правила сайта</a></li>
<li class="m"><a class="m" href="/index/0-3">Связь с администрацией</a></li>
<li class="m"><a class="m" href="/index/0-8">Битая ссылка</a></li>
<li class="m"><a class="m" href="/forum/18-28-1">Заказ скинов<sup><img src="http://s49.radikal.ru/i124/0903/e7/1586d74c19c4.gif" align="absmiddle" border="0"></sup></a></li>
<li class="expanded"><span style="font-weight:bold">Все для CoD2</span>
<ul>
<li class="m"><a class="m" href="/load/4">Читы для CoD2</a></li>
<li class="m"><a class="m" href="/forum/19-32-1">Патчи</a></li>
<li class="m"><a class="m" href="/forum/1">Форум</a></li>
<li class="m"><a class="m" href="/load/5">Моды</a></li>
<li class="m"><a class="m" href="/load/17">Скрипты</a></li>
<li class="m"><a class="m" href="/forum/6-1-1">Вопросы по запуску хаков</a></li>
<li class="m"><a class="m" href="/load/1">Все файлы</a></li>
</ul></li>
<li class="expanded"><span style="font-weight:bold">Все для CoD4</span>
<ul>
<li class="m"><a class="m" href="/load/6">Читы для CoD4 v1.0</a></li>
<li class="m"><a class="m" href="/load/7">Читы для CoD4 v1.2</a></li>
<li class="m"><a class="m" href="/load/8">Читы для CoD4 v1.6</a></li>
<li class="m"><a class="m" href="/load/9">Читы для CoD4 v1.7</a></li>
<li class="m"><a class="m" href="/load/11">Программы</a></li>
<li class="m"><a class="m" href="/load/15">Карты</a></li>
<li class="m"><a class="m" href="/load/10">Моды</a></li>
<li class="m"><a class="m" href="/load/19">Утилиты</a></li>
<li class="m"><a class="m" href="/load/16">Античиты, скрипты</a></li>
<li class="m"><a class="m" href="/forum/9-5-1">Патчи</a></li>
<li class="m"><a class="m" href="/forum/2">Форум</a></li>
<li class="m"><a class="m" href="/forum/7-2-1">Вопросы запуску хаков</a></li>
<li class="m"><a class="m" href="/forum/8-4-1">Какие хаки вы ищите</a></li>
<li class="m"><a class="m" href="/load/2">Все файлы</a></li>
</ul></li>
<li class="expanded"><span style="font-weight:bold">Все для CoD5</span>
<ul>
<li class="m"><a class="m" href="/load/12">Читы</a></li>
<li class="m"><a class="m" href="/load/14">Программы</a></li>
<li class="m"><a class="m" href="/forum/20-33-1">Патчи</a></li>
<li class="m"><a class="m" href="/forum/3">Форум</a></li>
<li class="m"><a class="m" href="/forum/13-12-1">Какие хаки вы ищите</a></li>
<li class="m"><a class="m" href="/forum/12-11-1">Вопросы по запуску хаков</a></li>
<li class="m"><a class="m" href="/load/3">Все файлы</a></li>
</ul></li>
<li class="expanded"><span style="font-weight:bold">Все для MW 2</span>
<ul>
<li class="m"><a class="m" href="/news/1-0-1">Новости</a></li>
<li class="m"><a class="m" href="/forum/15">Обсуждение</a></li>
<li class="m"><a class="m" href="/load/20">Файлы</a></li>
<li class="m"><a class="m" href="/index/0-16">Канал<sup><img src="http://s49.radikal.ru/i124/0903/e7/1586d74c19c4.gif" align="absmiddle" border="0"></sup></a></li>
</ul></li>
<li class="expanded"><span style="font-weight:bold">Читы для других игр<sup><img src="http://s49.radikal.ru/i124/0903/e7/1586d74c19c4.gif" align="absmiddle" border="0"></sup></span>
<ul>
<li class="m"><a class="m" href="/forum/25">CS 1.6</a></li>
<li class="m"><a class="m" href="/forum/26">Left 4 Dead</a></li>
<li class="m"><a class="m" href="/forum/24">Поиск читов</a></li>
</ul></li>
<li class="m"><a class="m" href="/dir/">Друзья сайта</a></li>
<li class="m"><a class="m" href="/load/">Каталог файлов</a></li>
<li class="m"><a class="m" href="/publ/">Каталог статей</a></li>
<li class="m"><a class="m" href="/search/">Поиск по сайту</a></li>
<li class="m"><a class="m" href="/blog/">Видео</a></li>
<li class="m"><a class="m" href="/forum/17">Полезные программы</a></li>
<li class="m"><a class="m" href="/forum/16-13-1">Баннеробмен</a></li>
<script type="text/javascript">
function tmenudata0()
{
this.animation_jump = 15
this.animation_delay = 2
this.imgage_gap = 4
this.plus_image = "http://stsite.ucoz.ru/menu/plus.png"
this.minus_image = "http://stsite.ucoz.ru/menu/minus.png"
this.pm_width_height = "15,15"
this.folder_image = ""
this.document_image = ""
this.icon_width_height = "15,15"
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:#CCCCCC; \
padding:1px; "
this.sub_item_styles = "text-decoration:none; \
font-weight:normal; \
font-family:Arial; \
font-size:12px; \
color:#ffffff; "
this.main_container_styles = "padding:0px;"
this.sub_container_styles = "padding-top:7px; padding-bottom:7px;"
this.main_link_styles = "color:#CCCCCC; text-decoration:none;"
this.main_link_hover_styles = "color:#ffffff; 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 language=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:url('http://graphics-xp.ucoz.ru/cursor.cur'); cursor:pointer;}";else cc20+=np_refix+" li span,.plusminus{cursor:default;}";document.write(cc20+"</style> ");}</SCRIPT><!-- /UcoZMenu --></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><!--/U1AAMENU1Z-->
</td></tr>
<li class="m"><a class="m" href="http://cod-hacks.3dn.ru/">Главная</a></li>
<li class="m"><a class="color:#0f0f0f;" href="/forum/">Форум</a></li>
<li class="m"><a class="m" href="/gb/">Отзывы о сайте</a></li>
<li class="m"><a class="m" href="/faq/">FAQ</a></li>
<li class="m"><a class="m" href="/index/0-4">Правила сайта</a></li>
<li class="m"><a class="m" href="/index/0-3">Связь с администрацией</a></li>
<li class="m"><a class="m" href="/index/0-8">Битая ссылка</a></li>
<li class="m"><a class="m" href="/forum/18-28-1">Заказ скинов<sup><img src="http://s49.radikal.ru/i124/0903/e7/1586d74c19c4.gif" align="absmiddle" border="0"></sup></a></li>
<li class="expanded"><span style="font-weight:bold">Все для CoD2</span>
<ul>
<li class="m"><a class="m" href="/load/4">Читы для CoD2</a></li>
<li class="m"><a class="m" href="/forum/19-32-1">Патчи</a></li>
<li class="m"><a class="m" href="/forum/1">Форум</a></li>
<li class="m"><a class="m" href="/load/5">Моды</a></li>
<li class="m"><a class="m" href="/load/17">Скрипты</a></li>
<li class="m"><a class="m" href="/forum/6-1-1">Вопросы по запуску хаков</a></li>
<li class="m"><a class="m" href="/load/1">Все файлы</a></li>
</ul></li>
<li class="expanded"><span style="font-weight:bold">Все для CoD4</span>
<ul>
<li class="m"><a class="m" href="/load/6">Читы для CoD4 v1.0</a></li>
<li class="m"><a class="m" href="/load/7">Читы для CoD4 v1.2</a></li>
<li class="m"><a class="m" href="/load/8">Читы для CoD4 v1.6</a></li>
<li class="m"><a class="m" href="/load/9">Читы для CoD4 v1.7</a></li>
<li class="m"><a class="m" href="/load/11">Программы</a></li>
<li class="m"><a class="m" href="/load/15">Карты</a></li>
<li class="m"><a class="m" href="/load/10">Моды</a></li>
<li class="m"><a class="m" href="/load/19">Утилиты</a></li>
<li class="m"><a class="m" href="/load/16">Античиты, скрипты</a></li>
<li class="m"><a class="m" href="/forum/9-5-1">Патчи</a></li>
<li class="m"><a class="m" href="/forum/2">Форум</a></li>
<li class="m"><a class="m" href="/forum/7-2-1">Вопросы запуску хаков</a></li>
<li class="m"><a class="m" href="/forum/8-4-1">Какие хаки вы ищите</a></li>
<li class="m"><a class="m" href="/load/2">Все файлы</a></li>
</ul></li>
<li class="expanded"><span style="font-weight:bold">Все для CoD5</span>
<ul>
<li class="m"><a class="m" href="/load/12">Читы</a></li>
<li class="m"><a class="m" href="/load/14">Программы</a></li>
<li class="m"><a class="m" href="/forum/20-33-1">Патчи</a></li>
<li class="m"><a class="m" href="/forum/3">Форум</a></li>
<li class="m"><a class="m" href="/forum/13-12-1">Какие хаки вы ищите</a></li>
<li class="m"><a class="m" href="/forum/12-11-1">Вопросы по запуску хаков</a></li>
<li class="m"><a class="m" href="/load/3">Все файлы</a></li>
</ul></li>
<li class="expanded"><span style="font-weight:bold">Все для MW 2</span>
<ul>
<li class="m"><a class="m" href="/news/1-0-1">Новости</a></li>
<li class="m"><a class="m" href="/forum/15">Обсуждение</a></li>
<li class="m"><a class="m" href="/load/20">Файлы</a></li>
<li class="m"><a class="m" href="/index/0-16">Канал<sup><img src="http://s49.radikal.ru/i124/0903/e7/1586d74c19c4.gif" align="absmiddle" border="0"></sup></a></li>
</ul></li>
<li class="expanded"><span style="font-weight:bold">Читы для других игр<sup><img src="http://s49.radikal.ru/i124/0903/e7/1586d74c19c4.gif" align="absmiddle" border="0"></sup></span>
<ul>
<li class="m"><a class="m" href="/forum/25">CS 1.6</a></li>
<li class="m"><a class="m" href="/forum/26">Left 4 Dead</a></li>
<li class="m"><a class="m" href="/forum/24">Поиск читов</a></li>
</ul></li>
<li class="m"><a class="m" href="/dir/">Друзья сайта</a></li>
<li class="m"><a class="m" href="/load/">Каталог файлов</a></li>
<li class="m"><a class="m" href="/publ/">Каталог статей</a></li>
<li class="m"><a class="m" href="/search/">Поиск по сайту</a></li>
<li class="m"><a class="m" href="/blog/">Видео</a></li>
<li class="m"><a class="m" href="/forum/17">Полезные программы</a></li>
<li class="m"><a class="m" href="/forum/16-13-1">Баннеробмен</a></li>
<script type="text/javascript">
function tmenudata0()
{
this.animation_jump = 15
this.animation_delay = 2
this.imgage_gap = 4
this.plus_image = "http://stsite.ucoz.ru/menu/plus.png"
this.minus_image = "http://stsite.ucoz.ru/menu/minus.png"
this.pm_width_height = "15,15"
this.folder_image = ""
this.document_image = ""
this.icon_width_height = "15,15"
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:#CCCCCC; \
padding:1px; "
this.sub_item_styles = "text-decoration:none; \
font-weight:normal; \
font-family:Arial; \
font-size:12px; \
color:#ffffff; "
this.main_container_styles = "padding:0px;"
this.sub_container_styles = "padding-top:7px; padding-bottom:7px;"
this.main_link_styles = "color:#CCCCCC; text-decoration:none;"
this.main_link_hover_styles = "color:#ffffff; 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 language=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:url('http://graphics-xp.ucoz.ru/cursor.cur'); cursor:pointer;}";else cc20+=np_refix+" li span,.plusminus{cursor:default;}";document.write(cc20+"</style> ");}</SCRIPT><!-- /UcoZMenu --></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><!--/U1AAMENU1Z-->
</td></tr>
Затем меняете сслки на свои.
Вы можете редактировать это меню
this.plus_image = "http://stsite.ucoz.ru/menu/plus.png"
this.minus_image = "http://stsite.ucoz.ru/menu/minus.png"
Эти две строчки отвечают за картинку возле поля.
Готово.
Посмотреть демо Темное раздвижное меню
Другие новости |
Поделиться ссылкой
|