Menú horizontal con subpestañas y buscador integrado 2 – Domains



Hace algún tiempo vimos elmenú horizontal con subpestañas y buscador integrado y desde eso me han preguntado cómo hacer ese mismo menú pero de varios niveles, es decir,que las subpestañas del menú también tengan subpestañas. El menú a continuación tiene esa característica, además de conservar el buscador dentro del menú.
Los estilos redondeados en los submenús se han quitado por cuestiones estéticas, pero ya saben que cualquiera de estas monerías pueden personalizarse a consideración y gusto propio.

El menú puedes verlo eneste blog de pruebas.

ATENCIÓN: Si usas una plantilla hecha a través del Diseñador de plantillas de Blogger primero necesitas seguir los pasos de esta entrada.


Para poner este menú horizontal con submenús en tu blog entra en laEdición HTML de tu plantilla, y antes de/b:skin pega los estilos:
/* Menu horizontal con buscador
----------------------------------------------- */
#menuWrapper {
width:100%; /* Ancho del menú */
height:35px;
padding-left:14px;
background:#333;/* Color de fondo */
border-radius:20px;/* Bordes redondeados de la barra principal */
}
.menu {
padding:0;
margin:0;
list-style:none;
height:35px;
position:relative;
z-index:5;
font-family:arial, verdana, sans-serif;
}
.menu li:hover li a {
background:none;
}
.menu li.top {display:block; float:left;}
.menu li a.top_link {
display:block;
float:left;
height:35px;
line-height:34px;
color:#ccc;
text-decoration:none;
font-family:"Lucida Sans Unicode", "Trebuchet Unicode MS", "Lucida Grande",sans-serif;
font-size:13px;/* Tamaño de la fuente */
font-weight:bold;
padding:0 0 0 12px;
cursor:pointer;
}
.menu li a.top_link span {
float:left;
display:block;
padding:0 24px 0 12px;
height:35px;
}
.menu li a.top_link span.down {
float:left;
display:block;
padding:0 24px 0 12px;
height:35px;
}
.menu li a.top_link:hover, .menu li:hover a.top_link {color:#fff; }
.menu li:hover {position:relative; z-index:2;}
.menu ul,
.menu li:hover ul ul,
.menu li:hover ul li:hover ul ul,
.menu li:hover ul li:hover ul li:hover ul ul,
.menu li:hover ul li:hover ul li:hover ul li:hover ul ul
{position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;}

.menu li:hover ul.sub {
left:0;
top:35px;
background:#333; /* Color de fondo del submenú */
padding:3px;
white-space:nowrap;
width:200px;
height:auto;
z-index:3;
}
.menu li:hover ul.sub li {
display:block;
height:30px;
position:relative;
float:left;
width:200px;
font-weight:normal;
}
.menu li:hover ul.sub li a{
display:block;
height:30px;
width:200px;
line-height:30px;
text-indent:5px;
color:#ccc;
text-decoration:none;
}
.menu li ul.sub li a.fly {
/* Color de fondo del submenú */
background:#333 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAxI_E2cNiOPRcLHCdfkRuK0L94dpPOz1EV5Qruys_rBF52F2y5H783iRDSNcmsIncQyVpBfHLwF3dAoa9725qj7YrX445WWn9qCX6ix70jRcQIuoXGb1x6hs-eWNSlpQ2LKWnInavu1jC/) 185px 10px no-repeat;}
.menu li:hover ul.sub li a:hover {
background:#2580a2;/* Color de fondo al pasar el cursor */
color:#fff;
}
.menu li:hover ul.sub li a.fly:hover, .menu li:hover ul li:hover a.fly {
/* Color de fondo al pasar el cursor */
background:#2580a2 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAxI_E2cNiOPRcLHCdfkRuK0L94dpPOz1EV5Qruys_rBF52F2y5H783iRDSNcmsIncQyVpBfHLwF3dAoa9725qj7YrX445WWn9qCX6ix70jRcQIuoXGb1x6hs-eWNSlpQ2LKWnInavu1jC/) 185px 10px no-repeat; color:#fff;}

.menu li:hover ul li:hover ul,
.menu li:hover ul li:hover ul li:hover ul,
.menu li:hover ul li:hover ul li:hover ul li:hover ul,
.menu li:hover ul li:hover ul li:hover ul li:hover ul li:hover ul {
left:200px;
top:-4px;
background: #333; /* Color de fondo del submenú */
padding:3px;
white-space:nowrap;
width:200px;
z-index:4;
height:auto;
}
#search {
width: 228px;/* Ancho del buscador */
height: 22px;
float: right;
text-align: center;
margin-top: 6px;
margin-right: 6px;
/* Imagen de fondo del buscador */
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitwoLeM5xamvZcEhl0vM1UwXeDK3rJ-mt7C-zWcSxXCHgi4KQ3qpKOEQmFWOJAou117Iwaw8rrRkYkJzwng4tScITxlLZOJV5x09yL1fq4iR211m-Z-BfTdsoxZRa70eE7nv3X6Rs4UiQ/s1600/search-bar.png) no-repeat;
}
#search-box {
margin-top: 3px;
border:0px;
background: transparent;
text-align:center;
}
Luego entra enDiseño y en un gadgetHTML/Javascript pega lo siguiente:
div id='menuWrapper'
ul class='menu'
li class='top'a class='top_link' href='URL del enlace'spanPestaña 1/span/a/li

li class='top'a class='top_link' href='#'span class='down'Pestaña 2/span/aul class='sub'lia class='fly' href='#'Pestaña 2.1/aul
lia href='URL del enlace'Pestaña 2.1.1/a/li
lia href='URL del enlace'Pestaña 2.1.2/a/li
lia href='URL del enlace'Pestaña 2.1.3/a/li
/ul
/li
li class='mid'a class='fly' href='#'Pestaña 2.2/a
ul
lia href='URL del enlace'Pestaña 2.2.1/a/li
lia href='URL del enlace'Pestaña 2.2.2/a/li
lia href='URL del enlace'Pestaña 2.2.3/a/li
lia class='fly' href='#'Pestaña 2.2.4/a
ul
lia href='URL del enlace'Pestaña 2.2.4.1/a/li
lia href='URL del enlace'Pestaña 2.2.4.2/a/li
lia href='URL del enlace'Pestaña 2.2.4.3/a/li
/ul
/li
lia href='URL del enlace'Pestaña 2.2.5/a/li
lia class='fly' href='#'Pestaña 2.2.6/a
ul
lia href='URL del enlace'Pestaña 2.2.6.1/a/li
lia href='URL del enlace'Pestaña 2.2.6.2/a/li
/ul
/li
/ul
/li
lia href='URL del enlace'Pestaña 2.3/a/li
lia href='URL del enlace'Pestaña 2.4/a/li
lia href='URL del enlace'Pestaña 2.5/a/li
/ul
/li

li class='top'a class='top_link' href='#'span class='down'Pestaña 3/span/a
ul class='sub'
lia href='URL del enlace'Pestaña 3.1/a/li
lia href='URL del enlace'Pestaña 3.2/a/li
lia href='URL del enlace'Pestaña 3.3/a/li
lia href='URL del enlace'Pestaña 3.4/a/li
/ul
/li

li class='top'a class='top_link' href='#'span class='down'Pestaña 4/span/a
ul class='sub'
lia href='URL del enlace'Pestaña 4.1/a/li
lia class='fly' href='#'Pestaña 4.2/a
ul
lia href='URL del enlace'Pestaña 4.2.1/a/li
lia href='URL del enlace'Pestaña 4.2.2/a/li
lia href='URL del enlace'Pestaña 4.2.3/a/li
lia href='URL del enlace'Pestaña 4.2.4/a/li
lia href='URL del enlace'Pestaña 4.2.5/a/li
lia href='URL del enlace'Pestaña 4.2.6/a/li
/ul
/li
lia href='URL del enlace'Pestaña 4.3/a/li
lia href='URL del enlace'Pestaña 4.4/a/li
lia href='URL del enlace'Pestaña 4.5/a/li
lia href='URL del enlace'Pestaña 4.6/a/li
/ul
/li

li class='top'a class='top_link' href='#'span class='down'Pestaña 5/span/a
ul class='sub'
lia href='URL del enlace'Pestaña 5.1/a/li
lia href='URL del enlace'Pestaña 5.2/a/li
lia href='URL del enlace'Pestaña 5.3/a/li
/ul
/li


!-- Buscador --
li
form action='/search' id='search' method='get' name='searchForm' style='display:inline;'
input id='search-box' name='q' onblur='if (this.value == "") this.value = "Buscar...";' onfocus='if (this.value == "Buscar...") this.value = "";' size='28' type='text' value='Buscar...'//form
/li

/ul
/div
Guarda los cambios y listo. En color verde puedes ver las áreas para cambiar los colores.

Antes de!-- Buscador -- puedes agregar más pestañas si lo deseas.
Si quisieras añadir otra pestaña simple, agrega una línea como esta:
li class="top"a href="URL del enlace" class="top_link"spanPestaña/span/a/li
Si quisieras agregar una pestaña con subpestañas entonces agrega este código:
li class="top"a href="#" class="top_link"span class="down"Pestaña/span/a
ul class="sub"
lia href="URL del enlace"Sub pestaña/a/li
lia href="URL del enlace"Sub pestaña/a/li
lia href="URL del enlace"Sub pestaña/a/li
/ul
/li
Y si quisieras que una de las subpestañas tuviera otras subpestañas entonces elimina una línea como la que está en color naranja y cámbiala por un código como este:
lia href="#" class="fly"Sub pestaña/a
ul
lia href="URL del enlace"Otra Sub pestaña/a/li
lia href="URL del enlace"Otra Sub pestaña/a/li
lia href="URL del enlace"Otra Sub pestaña/a/li
/ul
/li

Con esta variación del menú podemos agrupar más enlaces y categorías en poco espacio, y que además, al conservar el buscador dentro del menú hace que sea un menú práctico, compacto y útil.

Donate Car To Charity CALIFORNIA DONATE CAR FOR TAX CREDITDONATE CARS IN MADONATE YOUR CAR SACRAMENTOHOW TO DONATE A CAR IN CALIFORNIA DONATE YOUR CAR FOR KIDS,CAR INSURANCE QUOTES COLORADO ,NUNAVUT CULTURE,DAYTON FREIGHT LINESHARDDRIVE DATA RECOVERY SERVICES,DONATE A CAR IN MARYLAND,MOTOR REPLACEMENTS,CHEAP DOMAIN REGISTRATION HOSTING,DONATING A CAR IN MARYLANDNos ofrece Mundial Football eloan com, FIFA World Cupuna gran variedad para contratar mesothelioma info y obtener un equity line of credit y una buena estructura de negocio SEO consolidate loans y visitar su casa matriz Mesothelioma law firm,home equity loans domain name searchSelling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

MESOTHELIOMA LAW FIRMDONATE CAR TO CHARITY CALIFORNIAHARDDRIVE DATA RECOVERY SERVICESDONATE A CAR IN MARYLAND DONATING A CAR IN MARYLAND,DONATE CARS ILLINOIS,CRIMINAL DEFENSE ATTORNEYS FLORIDA ,BEST CRIMINAL LAWYER IN ARIZONASTRUCTURED ANNUITY SETTLEMENT,ASBESTOS LAWYERS,NUNAVUT CULTURE,DAYTON FREIGHT LINES ,Bextra Bankruptcy Dental Plan Private JetMundial Football DONATE CAR TO CHARITY CALIFORNIA FIFA World Cup,DONATE CAR FOR TAX CREDIT, and DONATE CARS IN MA,DONATE YOUR CAR SACRAMENTO,HOW TO DONATE A CAR IN CALIFORNIA, SELL ANNUITY PAYMENT and DONATE YOUR CAR FOR KIDS,ASBESTOS LAWYERS pero for you STRUCTURED ANNUITY SETTLEMENT ,ANNUITY SETTLEMENTS, CAR INSURANCE QUOTES COLORADO and future now NUNAVUT CULTURE and pero mas aya del visita DAYTON FREIGHT LINES and Mesothelioma law firm HARDDRIVE DATA RECOVERY SERVICES,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

Business finance group ONLINE COLLEDGES forensics online course cheaper insurance companies Online casino structured settlement purchasers DAYTON FREIGHT LINES DONATE YOUR CAR SACRAMENTO Donate Your Car Sacramento Structures Annuity Settlement Business management software Insurance Companies Donate Car for Tax Credit mesothelioma attorneys california Photo Christmas cards Mortgage accident attorney san bernardino hair removal washington dc Personal Injury Lawyers Cheap Car Insurance in Virginia Hire php programmers Casino Dallas Mesothelioma Attorneys futuristic architecture Criminal defense lawyer Casino reviews chicago hair laser removal pharmacist jobs in chicago Christmas cards bus accident attorney los angeles wisconsin mesothelioma attorney mesotheolima online criminal justice degree adverse credit remortgage Hire php developer Donate Your Car for Kids Donate Car To Charity CALIFORNIA personal injury solicitor personal injury lawyer Criminal Defense Attorneys Florida Donate cars in ma Mobile casino Make money online Australia structured settlement investments firm law mesothelioma Cheap auto insurance in VA mesothelioma care Cheap Domain Registration Hosting mesothelioma attorney Online College Course domain yahoo Best social media platforms for business buy structured settlements DONATE CARS ILLINOIS Live casino Php programmers Email bulk service DUI lawyer Learning adobe illustrator Car Insurance in South Dakota semi truck accident lawyers Hire php developers Car Insurance Quotes Colorado HOW TO DONATE A CAR IN CALIFORNIA Sell Annuity Payment low credit line credit cards Seo companies motorcycle lawyer los angeles WordPress theme designers PhD in counseling education auto accident attorney Torrance Bankruptcy lawyer Php programmers for hire cell cycle regulation ppt car accident lawyers Dwi lawyer How to Donate A Car in California buyer of structured settlement annuity Annuity Settlements Criminal lawyer Home Phone Internet Bundle structered settlement Service business software Donate Cars Illinois WordPress hosting webex costs Italian cooking school canada personals yahoo Holland Michigan College Royalty free images stock tennessee mesothelioma lawyer what is structured settlement Computer science classes online Motor replacements motorcycle accident attorney chicago auto insurance cost by state CHEAP AUTO INSURANCE IN VA harddrive data recovery services Paperport Promotional Code New social media platforms miami personal injury lawyer How to donate a car in California structured settlement agreement google adsense domains yahoo Home phone internet bundle Custom Christmas cards Social media platforms for business Custom WordPress theme designer Social media management register free domains Seo services Social media strategies Best Seo company selling annuity

Share: