Mostrando entradas con la etiqueta Menús. Mostrar todas las entradas
Mostrando entradas con la etiqueta Menús. Mostrar todas las entradas

Menú horizontal con buscador expandible – Credit


Elmenú horizontal con buscador integrado parece ser uno de los favoritos por muchos blogueros. Esta es una variante, se trata de unmenú horizontal con subpestañas y que incluye un buscador que se expande al pasar el cursor sobre él cubriendo casi todo el ancho del menú. Puedes verlo funcionando eneste blog de pruebas.

Este menú está hecho únicamente con CSS por lo que no tendrás que preocuparte por la compatibilidad con librerías de scripts, ni con navegadores pues funciona bien con todos los navegadores en sus últimas versiones.

El efecto expandible lo conseguimos también con CSS, y es simple, sólo establecemos que el ancho del buscador sea de 0px en su estado normal, y luego aumentamos el ancho al pasar el cursor sobre él. Juego de niños, ¿no? ;)

ATENCIÓN: Si usas una plantilla original de Blogger primero necesitas seguir los pasos de esta entrada, de lo contrario el menú podría no verse o funcionar correctamente.

Para poner este menú en tu blog entra en laEdición HTML de tu plantilla, y antes de/b:skin pega los estilos CSS:
#menuBuscador {
position: relative;
width: 95%; /* Ancho del menú */
height: 40px;
padding-left: 14px;
background: #CC2A41; /* Color de fondo */
}
.menusearch {
padding:0;
margin:0;
list-style:none;
position:relative;
z-index:5;
font-family:"Lucida Sans Unicode", "Trebuchet Unicode MS", "Lucida Grande",sans-serif;
}
.menusearch li:hover li a {
background:none;
}
.menusearch li.top {display:block; float:left;}
.menusearch li a.top_link {
display:block;
float:left;
height:40px;
line-height:40px;
color:#fff; /* Color de los títulos */
text-decoration:none;
font-size:14px;/* Tamaño de la fuente */
padding:0 0 0 12px;
cursor:pointer;
}
.menusearch li a.top_link span {
float:left;
display:block;
padding:0 24px 0 12px;
height:40px;
}
.menusearch li a.top_link span.down {
float:left;
display:block;
padding:0 24px 0 12px;
height:40px;
}
.menusearch li a.top_link:hover, .menusearch li:hover a.top_link {color:#fff;}
.menusearch li:hover {position:relative; z-index:2;}
.menusearch ul,
.menusearch li:hover ul ul,
.menusearch li:hover ul li:hover ul ul,
.menusearch li:hover ul li:hover ul li:hover ul ul,
.menusearch 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;}

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

.menusearch li:hover ul li:hover ul,
.menusearch li:hover ul li:hover ul li:hover ul,
.menusearch li:hover ul li:hover ul li:hover ul li:hover ul,
.menusearch li:hover ul li:hover ul li:hover ul li:hover ul li:hover ul {
left:200px;
top:-4px;
background: #351330;/* Color de fondo del submenú */
padding:3px;
white-space:nowrap;
width:200px;
z-index:4;
height:auto;
}
#search input[type="text"] {
background: #fff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcWL7JBp1sisL9KOWW7mhtBDAsIISeqroWh7B9dC8fObiHxHVf21W8jmPrIsJvm_kw4aQ9YIFpKoCl0t9HsnCzZ4CTJrA_0PtDBxjH2C2RKyr7siT9B6L0lT8Q2q0Tzp9SNSPYB5Ko9ow/s32/buscar.png) no-repeat center left;
position: absolute;
right:3px; /* Distancia del buscador desde la derecha */
outline:none;
font-size: 13px; /* Tamaño de la fuente del buscador */
color: #ccc;
width: 0;
margin: 0;
padding: 12px 0 12px 35px;
z-index: 1000;
border: 1px solid #fff;
-webkit-transition: all 0.5s ease-in-out;
-moz-transition: all 0.5s ease-in-out;
-o-transition: all 0.5s ease-in-out;
-ms-transition: all 0.5s ease-in-out;
transition: all 0.5s ease-in-out;
}
#search input[type="text"]:hover, #search input[type="text"]:focus {width:94%}/* Ancho del buscador cuando se expande */

Luego enDiseño crea un gadgetHTML/Javascript y ahí pega lo siguiente:
div id='menuBuscador'
ul class='menusearch'
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
/ul

!-- Buscador --
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

/div


Ya sólo deberás guardar los cambios. El primer código son los estilos, ahí verás encolor verde dónde cambiar los colores, fuentes, etc., o sea, el aspecto del menú. Encolor rojo van las URLs y los nombres de tus pestañas y subpestañas.

Antes de!-- Buscador -- puedes agregar más pestañas. Por ejemplo: 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

Eso es todo, menos complicado de lo que parece. Sin duda es un menú que hay que considerar, no sólo por lo atractivo del buscador, sino por la posibilidad de agregar subpestañas y sin necesidad de usar ningún script. Además que podemos personalizarlo tanto como queramos.

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 MARYLANDUn dia en Mundial Football MESOTHELIOMA LAW FIRM FIFA World Cup,DONATE CAR TO CHARITY CALIFORNIA , and STRUCTURED ANNUITY SETTLEMENT ,ANNUITY SETTLEMENTS, habia mucha monja pero fui a NUNAVUT CULTURE, DAYTON FREIGHT LINES and BUSINESS VOIP SOLUTIONS,CAR INSURANCE COMPANIES pero for you ONLINE CRIMINAL JUSTICE DEGREE ,PERSONAL INJURY LAW FIRM, Virtual data rooms and future now Automobile accident attorney and pero mas aya del visita and Mesothelioma law firm CHEAP CAR INSURANCE IN VIRGINIA,Selling annuity payments for cashSelling 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

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 MARYLANDMundial Football history FIFA World Cup,smart,huge/big,scienciemedia,blog spot and amazes,unites pero for you gives ,, inspires and future now help and pero mas aya del visita and Mesothelioma law firm CHEAP CAR INSURANCE IN VIRGINIA,Selling annuity payments for cashSelling 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

Casino reviews cheap domain registration hosting mesothelioma law suits student loan consolidation program HOLLAND MICHIGAN COLLEGE Custom WordPress theme designer WordPress theme designers Car Insurance Quotes Utah motor replacements Casino Personal Injury Law Firm Social media platforms structured settlements companies st louis mesothelioma attorney Online casino Mortgage Adviser DUI lawyer houston motorcycle accident lawyer best accident attorneys Donating a Car in Maryland mesothelioma attorney florida accident attorney orange county Computer science classes online mesothelioma care car insurance quotes pa Webex Costs Car Insurance Quotes MN Online Christmas cards Car Donate motorcycle accident attorney chicago Mobile casino Html email Photo Christmas cards MORTGAGE ADVISER car insurance quotes colorado Social media management structured settlement buyer donate your car for money Donate car for tax credit DONATING A CAR IN MARYLAND Insurance Bankruptcy lawyer Seo companies Donating used cars to charity Hire php developers Criminal defense lawyer How to Donate A Car in California ONLINE COLLEDGES Online classes Data Recovery Raid CAR INSURANCE QUOTES COLORADO car insurance in south dakota Make money online Australia HOME PHONE INTERNET BUNDLE Royalty Free Images Stock caraccidentlawyer online colledges injury lawyer houston tx DONATE CARS IN MA Online Classes car insurance quotes Criminal lawyer car accident lawyers west palm beach Low Credit Line Credit Cards Donate Cars in MA mesothelioma Home Phone Internet Bundle Hire php programmers Social media strategies Live casino structured settlement purchasers uk homeowner loans Dwi lawyer Nunavut Culture Donate Your Car for Kids CHEAP AUTO INSURANCE IN VA buying structured settlements Cheap Domain Registration Hosting Hire php developer Seo company Social media tools Psd to html federal criminal defense attorney motorcycle accident lawyer san francisco Mesothelioma Law Firm Service business software ASBESTOS LAWYERS Auto Mobile Insurance Quote mortgage adviser Best social media platforms for business Donate Car to Charity California Php programmers for hire Donate Car for Tax Credit structured settlement quote Injury Lawyers SELL ANNUITY PAYMENT Business finance group HOW TO DONATE A CAR IN CALIFORNIA Online colledges anti spam appliance Seo services DONATE A CAR IN MARYLAND Health Records Personal Health Record Php programmers motorcycle accident lawyer california Cheap auto insurance in VA Structures Annuity Settlement New social media platforms mesothelioma settlement amounts annuity payment mesothelioma claim dallas mesothelioma lawyer better conferencing calls Best social media platforms Psd to WordPress

Share:

Cómo poner iconos en las pestañas del menú de Páginas – Domains

Muchas veces sentimos la necesidad deañadir iconos a los enlaces para identificar de una mejor manera el tipo de contenido al que dirige dicho enlace. En la mayoría de los menús esto no es problema pues basta con añadir el código de la imagen antes del nombre de la pestaña, pero con el gadget de Páginas se dificulta un poco ya que el código del gadget no es el tradicional de un menú HTML sino que contiene una serie de códigos propios de Blogger, así que añadir imágenes -diferentes- directamente en el HTML es imposible.
Pero eso no significa que no podamos buscar formas alternas de hacerlo, y es justo lo que haremos en esta entrada, vamos a ver cómoponer un ícono diferente en cada pestaña del menú de Páginas, y para ello usaremos CSS, específicamente los selectores :nth-child() y ::before
De esta manera conseguiremos que cada una de las pestañas de nuestro gadget de Páginas tenga un ícono diferente antes del nombre de la pestaña.


Conseguir lo anterior es mucho más fácil de lo que se piensa. Sólo tienes que entrar aPlantilla | Edición de HTML y añadir antes de/b:skin lo siguiente:
#PageList1 li:nth-child(1):before {
content: url(URL de la imagen);
padding-right: 5px;
position: relative;
top: 3px;
}
#PageList1 li:nth-child(2):before {
content: url(URL de la imagen);
padding-right: 5px;
position: relative;
top: 3px;
}
#PageList1 li:nth-child(3):before {
content: url(URL de la imagen);
padding-right: 5px;
position: relative;
top: 3px;
}
#PageList1 li:nth-child(4):before {
content: url(URL de la imagen);
padding-right: 5px;
position: relative;
top: 3px;
}
En estos estilos CSS verás unos números, cada número representa cada pestaña de tu menú, siendo que el1 es la primera pestaña, el2 la segunda, etc. Toma en cuenta que la primera pestaña habitualmente es laPágina Principal, así que la segunda pestaña pertenece a la primera página de tu menú.

En el código deberás cambiar la URL de la imagen donde se indica encolor rojo.
La distancia entre el ícono y el texto se modifica enpadding-right.
Contop podrás controlar la distancia desde arriba, esto es para que puedas alinear la imagen verticalmente. Yo he puesto que el ícono se desplace 3px desde arriba, pero puede variar según el tamaño del ícono que pongas, ahí deberás jugar con el valor detop incluso pudiendo usar un valor negativo para subir la imagen, por ejemplo -3px

El código es para las primeras cuatro pestañas de tu menú, si tuvieras más pestañas entonces sólo añade un trozo de código como este por cada pestaña a la que le quieras agregar un icono.

#PageList1 li:nth-child(5):before {
content: url(URL de la imagen);
padding-right: 5px;
position: relative;
top: 3px;
}
Por cada código que agregues deberás cambiar el número5 por el correspondiente:6,7,8, etc.

Así de fácil y sencillo podráspersonalizar más el gadget de Páginas usando iconos que ayuden al reconocimiento visual de las pestañas.

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 Mesothelioma law firm,mega life and health FIFA World Cup es un buen servicio en las distintas naciones trans union pero resulto que tenia cancer y fui a asbestos cancer y me dijeron en asbestos mesothelioma que tambien padecia de prostate cancer treatment y un daño tremendo a mi organismo fui a malignant pleural mesothelioma,asi que hice un prestamo en credit repair y otro en chase credit pero de pronto un anti spam software asi que decido un auto en rental car in costa rica me registre en Facebook en internet domain registration y tambien obtuve un domain registration,Selling annuity payments for cash,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

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 JetPero tuve que ser Mundial Football consolidating FIFA World Cup web host rating,register web address,online psychology degree,her first lesbian sex, make extra money ,make money fast and easy,addwords y mejor obtuve un credit application,visa gift carda,Mesothelioma law firm,voip phone service,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

automobile accident attorney car insurance quotes colorado mesothelioma litigation california mesothelioma attorney Christmas cards mesothelioma lawyer texas mesothelioma law firms Dayton Freight Lines Php programmers for hire Make money online Australia cloud identity and access management DONATE YOUR CAR SACRAMENTO MORTGAGE ADVISER Asbestos Lawyers personal injury solicitor structured settlement company boulder personal injury lawyers alabama mesothelioma lawyer Php programmers Social media campaigns PAPERPORT PROMOTIONAL CODE DUI lawyer bus accident attorney los angeles Online casino Casino best accident attorneys Mobile casino Criminal defense lawyer Casino reviews Better conferencing calls Best social media platforms for business dallas mesothelioma attorneys ONLINE COLLEDGES Futuristic Architecture Best criminal lawyer in Arizona DONATE CARS ILLINOIS buying an annuity calculator la personal injury lawyer student loan consolidation program Service business software onlineclasses mesothelioma trial attorney motorcycle lawyer los angeles Psd to html Seo company integrated ehr Dwi lawyer Motor Replacements Live casino Nunavut Culture car insurance quotes mn best criminal lawyer in arizona Hire php developers Automobile Accident Attorney Social media platforms for business fast cash for house Custom WordPress theme designer STRUCTURED ANNUITY SETTLEMENT Donate cars Illinois mesothelioma lawyer dallas Criminal lawyer tucson car accident attorney Hire php programmers mesothelioma Best social media platforms Hard drive Data Recovery Services Asbestos Lung Cancer Register Free Domains Psd to WordPress car insurance companies seattle mesothelioma lawyer Online Criminal Justice Degree EMAIL BULK SERVICE DONATE CAR FOR TAX CREDIT Criminal Defense Attorneys Florida Hire php developer Donate a Car in Maryland Bankruptcy lawyer business voip solutions mesothelioma charities Computer science classes online MASSAGE SCHOOL DALLAS TEXAS Best Seo company structured settlemen Mesothelioma Law Firm Seo companies Seo services CHEAP DOMAIN REGISTRATION HOSTING data recovery raid selling annuity payments for cash buyer of structured settlement annuity WebEx costs Custom Christmas cards motorcycle accident lawyer california Personal Injury Lawyers Car Insurance Quotes MN life insurance quotes New social media platforms Met auto asbestos lung cancer NUNAVUT CULTURE Business finance group Dallas Mesothelioma Attorneys att call conference california motorcycle accident lawyer injury lawyer houston tx Business VOIP Solutions better conferencing calls WordPress themes for designers VIRTUAL DATA ROOMS asterisk call center software maritime lawyer houston lawsuit mesothelioma Business management software sell structured settlement calculator

Share:

Cómo hacer que el gadget de Páginas se haga flotante al bajar el scroll – Shipping – World



Hace algún tiempo vimos cómo poner unosbotones para compartir que se detienen y flotan al bajar la página. Esta vez usando el mismo script conseguiremos el mismo efecto pero con el gadget de Páginas. Lo que hace este código es queal bajar el scroll de la página el gadget de Páginas flota y se mantiene visible, y una vez que se sube el scroll de la página el gadget toma de nuevo su posición original.
Eneste blog de pruebas puedes verlo funcionando, sube y baja por la página para ver cómo se comporta el menú.

Para colocarlo en tu blog entra enPlantilla | Edición de HTML y antes de/head pega lo siguiente:
script src='http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js' type='text/javascript'/
script
//![CDATA[
$(function() {
var $flotarMenu = $("#PageList1"),
$window = $(window),
offset = $flotarMenu.offset();
$window.scroll(function() {
if ($window.scrollTop() offset.top) {
$flotarMenu.css({'position' : 'fixed', 'width' : '880px', 'top' : '0px'});
} else {
$flotarMenu.css({'position' : 'relative', 'top' : 'auto'});
}
});
});
//
/script
style
#PageList1 {
width:880px; /* Ancho del gadget de Páginas */
background:#fff;/* Color de fondo del gadget */
z-index: 99;
}
/style
¿Qué hay que tener en cuenta si decides usarlo?
Si ya tuvieras jQuery omite la primera línea en color gris. Y si usarasScriptaculous/Prototypedeberás hacer unos cambios.

Lo que está encolor rojo es el ID del gadget de Páginas, así que asegúrate que el ID de tu gadget sea el mismo que el que se muestra en el código, ya que algunas veces puede variar a#PageList2,#PageList3, etc. si así fuera sólo cambia lo que está en rojo por tu verdadero ID.
Incluso puedes usarlo con cualquier otro menú, sólo tendrás que cambiar lo que está en rojo por el ID de tu menú, aunque seguramente tendrás que añadir algunos estilos extras debajo de style

Encolor azul se establece el ancho del gadget. Si ves que queda muy angosto o muy ancho ahí es donde deberás moverle.

Si usas la plantillaFantástico, S.A. (Awesome Inc.) sabrás que el menú cubre todo el ancho de la pantalla, así que quienes usen esa plantilla deberán usar este código en lugar del anterior:
script src='http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js' type='text/javascript'/

script
//![CDATA[
$(function() {
var $flotarMenu = $(".tabs-outer"),
$window = $(window),
offset = $flotarMenu.offset();
$window.scroll(function() {
if ($window.scrollTop() offset.top) {
$flotarMenu.css({'position' : 'fixed', 'width' : '100%', 'top' : '0px'});
} else {
$flotarMenu.css({'position' : 'relative', 'top' : 'auto'});
}
});
});
//
/script
style
.tabs-outer {
width:100%;
background: url(http://www.blogblog.com/1kt/awesomeinc/tabs_gradient_groovy.png) repeat scroll 0px 0px#000;/* Color de fondo */
z-index: 99;
}
/style
En este caso no hace falta verificar el ID del gadget ni cambiar el ancho del gadget, pero en caso de que lo requieras puedes cambiar el color de fondo modificando lo que está en negrita.

Como has podido ver la instalación es de un solo paso y no hace falta hacer nada más excepto retocar algunos estilos en caso de ser necesario; y el resultado además de ser muy llamativo puede ser muy práctico para tus visitantes y para ti, sobre todo si quieres que tus lectores tengan siempre visibles y a la mano los enlaces de tu menú.

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 Mesothelioma law firm,mega life and health FIFA World Cup es un buen servicio en las distintas naciones trans union pero resulto que tenia cancer y fui a asbestos cancer y me dijeron en asbestos mesothelioma que tambien padecia de prostate cancer treatment y un daño tremendo a mi organismo fui a malignant pleural mesothelioma,asi que hice un prestamo en credit repair y otro en chase credit pero de pronto un anti spam software asi que decido un auto en rental car in costa rica me registre en Facebook en internet domain registration y tambien obtuve un domain registration,Selling annuity payments for cash,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

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 MARYLANDMundial Football Los Abogado de lesiones personales en Chicago,FIFA World Cup son muy buenos en chicago y nos ofrecen una Cotizacion de seguro y Cotizacion de Seguro de Vida y Cotizacion de seguro de coches,mesotelioma. Y visitar mesothelioma lawyers o tambien podriamos visitar mesothelioma symptoms y lexington law tambien many people lexington law firm and merlin olsen mesothelioma many people mesothelioma trial lawyers and atlanta mesothelioma lawyers Mesothelioma law firm, massachusetts mesothelioma attorney EEUU,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

Hire php developer Donate cars Illinois Php programmers for hire Futuristic architecture domain registration yahoo Php programmers domain name yahoo selling annuity payments for cash quotes car Cheap Car Insurance in Virginia semi truck accident lawyers auto accident attorney Torrance Criminal lawyer Learning adobe illustrator Italian cooking school Donating a Car in Maryland Online casino HOME PHONE INTERNET BUNDLE anti spam exchange server Forensics Online Course webex costs motorcycle lawyer los angeles structured settlement company best criminal lawyer in arizona STRUCTURED ANNUITY SETTLEMENT business administration masters Donate your Car for Money new york mesothelioma law firm Casino Paperport Promotional Code Best social media platforms for business Donate a Car in Maryland Cheap Auto Insurance in VA Dwi lawyer car insurance quotes Royalty Free Images Stock Bankruptcy lawyer Hire php programmers Mobile casino buy structured settlements Criminal defense lawyer Custom WordPress theme designer refinance with poor credit Home Phone Internet Bundle DUI lawyer ONLINECLASSES phd in counseling education car insurance in south dakota Attorney DONATE A CAR IN MARYLAND Make money online Australia florida car insurance company Annuity Settlements Casino reviews Live casino miami personal injury lawyer donate car for tax credit Donate Car to Charity California Social media strategies Email Bulk Service Motor Insurance Quotes houston mesothelioma attorney CAR INSURANCE IN SOUTH DAKOTA Personal Injury Law Firm Hire php developers ONLINE COLLEDGES New social media platforms WORLD TRADE CENTER FOOTAGE register free domains SELL ANNUITY PAYMENT Seo companies Cheap Car Insurance for Ladies fast cash for house Service business software mesothelioma attorney illinois Asbestos Lawyers mesothelioma personal injury lawyers Auto Mobile Shipping Quote Psd to WordPress Seo services Home phone internet bundle Donate Cars in MA Computer science classes online ONLINE MOTOR INSURANCE QUOTES motor insurance quotes online colledges accident attorney orange county Life insurance co Lincoln structured settlement annuity companies Health Records Personal Health Record Cheap car insurance in Virginia PHD IN COUNSELING EDUCATION Custom Christmas cards Donate Cars Illinois structured settlements companies structered settlement mesothelioma compensation WordPress hosting pharmacist jobs in chicago Auto Accident Attorney mesothelioma attorney florida Business finance group yahoo web hosting Social media platforms for business cheap domain registration hosting Hard drive Data Recovery Services AUTOMOBILE ACCIDENT ATTORNEY Business management software Donate Old Cars to Charity Online Colleges donating used cars to charity miami personal injury attorney Best Seo company forensics online course Photo Christmas cards

Share:

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:

Meny, un menú deslizante que voltea al blog en 3D – Law Firm



Meny es un menú tridimencional bastante peculiar y llamativo, no sólo por la forma como muestra los enlaces, sino por la forma como "pone" al blog. Lo que hace este menú es que al pasar el cursor para mostrarlo, se desliza el contenido del menú mientras voltea al blog con un efecto 3D.
La mejor forma de entenderlo es viendo el demo eneste blog de pruebas, sólo pasa el cursor por la flecha para ver este menú en funcionamiento.

El script es deHakim El Hattab y para suerte de muchos no usa ni jQuery ni Scriptaculous, así que en la mayoría de los casos no debería haber problemas de compatibilidad.

Implementar estemenú que voltea la página en 3D es bastante sencillo, sólo entra enPlantilla | Edición de HTML y antes de/b:skin pega los estilos:
/* Meny Menu
----------------------------------------------- */
.meny {
display: none;
padding: 20px;
overflow: auto;
background: #333;
color: #eee;/* Color de fondo del menú */
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.meny h4 {
font-size: 24px;/* Tamaño del título del menú */
color:#fff;/* Color del título del menú */
text-align:center;
}
.meny ul {
margin-top: 10px;
}
.meny ul li {
display: inline-block;
width: 200px;
list-style: none;
font-size: 20px;
padding: 3px 10px;
}
.meny-arrow {
position: absolute;
z-index: 10;
border: 10px solid transparent;
-webkit-transition: opacity 0.4s ease 0.4s;
-moz-transition: opacity 0.4s ease 0.4s;
-ms-transition: opacity 0.4s ease 0.4s;
-o-transition: opacity 0.4s ease 0.4s;
transition: opacity 0.4s ease 0.4s;
}
.meny-left .meny-arrow {
left: 5px;
top: 350px;
margin-top: -16px;
border-left: 16px solid #333;/* Color de la flecha */
}
.meny-right .meny-arrow {
right: 14px;
top: 150px;
margin-top: -16px;
border-right: 16px solid #333;/* Color de la flecha */
}
.meny-top .meny-arrow {
left: 150px;
top: 14px;
margin-left: -16px;
border-top: 16px solid #333;/* Color de la flecha */
}
.meny-bottom .meny-arrow {
left: 150px;
bottom: 14px;
margin-left: -16px;
border-bottom: 16px solid #333;/* Color de la flecha */
}
.meny-active .meny-arrow {
opacity: 0;
-webkit-transition: opacity 0.2s ease;
-moz-transition: opacity 0.2s ease;
-ms-transition: opacity 0.2s ease;
-o-transition: opacity 0.2s ease;
transition: opacity 0.2s ease;
}
.contents {
width: 100%;
height: 100%;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
Luego busca la etiquetabody o esta línea:
body expr:class='"loading" + data:blog.mobileClass'
Debajo de cualquiera de las dos agrega lo siguiente:
div class='meny'
h4Menú/h4
ul
lia href='URL del enlace'Texto del enlace/a/li
lia href='URL del enlace'Texto del enlace/a/li
lia href='URL del enlace'Texto del enlace/a/li
lia href='URL del enlace'Texto del enlace/a/li
lia href='URL del enlace'Texto del enlace/a/li
lia href='URL del enlace'Texto del enlace/a/li
lia href='URL del enlace'Texto del enlace/a/li
lia href='URL del enlace'Texto del enlace/a/li
lia href='URL del enlace'Texto del enlace/a/li
lia href='URL del enlace'Texto del enlace/a/li
/ul
/div

div class='meny-arrow'/
div class='contents'
Por último añade antes de/body este código:
/div
script
//![CDATA[
/*!
* meny 1.2
* http://lab.hakim.se/meny
* MIT licensed
* Created by Hakim El Hattab (http://hakim.se, @hakimel)
*/
var Meny={create:function(a){return(function(){if(!a||!a.menuElement||!a.contentsElement){throw"You need to specify which menu and contents elements to use.";
}if(a.menuElement.parentNode!==a.contentsElement.parentNode){throw"The menu and contents elements must have the same parent.";}var J="top",K="right",c="bottom",N="left";
var F="WebkitPerspective" in document.body.style||"MozPerspective" in document.body.style||"msPerspective" in document.body.style||"OPerspective" in document.body.style||"perspective" in document.body.style;
var D={width:300,height:300,position:N,threshold:40,overlap:6,transitionDuration:"0.5s",transitionEasing:"ease"};var e={menu:a.menuElement,contents:a.contentsElement,wrapper:a.menuElement.parentNode,cover:null};
var A=e.wrapper.offsetLeft,z=e.wrapper.offsetTop,t=null,r=null,q=null,o=null,f=false,m=false;var l,j,G,n,O,V,S,x,d,B;var w,y,E;Meny.extend(D,a);i();g();
v();C();Q();R();function i(){G="";S="";switch(D.position){case J:l="50% 0%";j="rotateX( 30deg ) translateY( -100% ) translateY( "+D.overlap+"px )";V="50% 0";
x="translateY( "+D.height+"px ) rotateX( -15deg )";n={top:"-"+(D.height-D.overlap)+"px"};O={top:"0px"};d={top:"0px"};B={top:D.height+"px"};break;case K:l="100% 50%";
j="rotateY( 30deg ) translateX( 100% ) translateX( -2px ) scale( 1.01 )";V="100% 50%";x="translateX( -"+D.width+"px ) rotateY( -15deg )";n={right:"-"+(D.width-D.overlap)+"px"};
O={right:"0px"};d={left:"0px"};B={left:"-"+D.width+"px"};break;case c:l="50% 100%";j="rotateX( -30deg ) translateY( 100% ) translateY( -"+D.overlap+"px )";
V="50% 100%";x="translateY( -"+D.height+"px ) rotateX( 15deg )";n={bottom:"-"+(D.height-D.overlap)+"px"};O={bottom:"0px"};d={top:"0px"};B={top:"-"+D.height+"px"};
break;default:l="100% 50%";j="translateX( -100% ) translateX( "+D.overlap+"px ) scale( 1.01 ) rotateY( -30deg )";V="0 50%";x="translateX( "+D.width+"px ) rotateY( 15deg )";
n={left:"-"+(D.width-D.overlap)+"px"};O={left:"0px"};d={left:"0px"};B={left:D.width+"px"};break;}}function g(){Meny.addClass(e.wrapper,"meny-"+D.position);
e.wrapper.style[Meny.prefix("perspective")]="800px";e.wrapper.style[Meny.prefix("perspectiveOrigin")]=V;}function v(){e.cover=document.createElement("div");
e.cover.style.position="absolute";e.cover.style.display="block";e.cover.style.width="100%";e.cover.style.height="100%";e.cover.style.left=0;e.cover.style.top=0;
e.cover.style.zIndex=1000;e.cover.style.visibility="hidden";e.cover.style.opacity=0;try{e.cover.style.background="rgba( 0, 0, 0, 0.4 )";e.cover.style.background="-ms-linear-gradient("+D.position+", rgba(0,0,0,0.20) 0%,rgba(0,0,0,0.65) 100%)";
e.cover.style.background="-moz-linear-gradient("+D.position+", rgba(0,0,0,0.20) 0%,rgba(0,0,0,0.65) 100%)";e.cover.style.background="-webkit-linear-gradient("+D.position+", rgba(0,0,0,0.20) 0%,rgba(0,0,0,0.65) 100%)";
}catch(W){}if(F){e.cover.style[Meny.prefix("transition")]="all "+D.transitionDuration+" "+D.transitionEasing;}e.contents.appendChild(e.cover);}function C(){var W=e.menu.style;
switch(D.position){case J:W.width="100%";W.height=D.height+"px";break;case K:W.right="0";W.width=D.width+"px";W.height="100%";break;case c:W.bottom="0";
W.width="100%";W.height=D.height+"px";break;case N:W.width=D.width+"px";W.height="100%";break;}W.position="fixed";W.display="block";W.zIndex=1;if(F){W[Meny.prefix("transform")]=j;
W[Meny.prefix("transformOrigin")]=l;W[Meny.prefix("transition")]="all "+D.transitionDuration+" "+D.transitionEasing;}else{Meny.extend(W,n);}}function Q(){var W=e.contents.style;
if(F){W[Meny.prefix("transform")]=S;W[Meny.prefix("transformOrigin")]=V;W[Meny.prefix("transition")]="all "+D.transitionDuration+" "+D.transitionEasing;
}else{W.position=W.position.match(/relative|absolute|fixed/gi)?W.position:"relative";Meny.extend(W,d);}}function R(){if("ontouchstart" in window){Meny.bindEvent(document,"touchstart",L);
Meny.bindEvent(document,"touchend",H);}else{Meny.bindEvent(document,"mousedown",M);Meny.bindEvent(document,"mouseup",U);Meny.bindEvent(document,"mousemove",b);
}}function u(){if(!f){f=true;Meny.addClass(e.wrapper,"meny-active");e.cover.style.height=e.contents.scrollHeight+"px";e.cover.style.visibility="visible";
if(F){e.cover.style.opacity=1;e.contents.style[Meny.prefix("transform")]=x;e.menu.style[Meny.prefix("transform")]=G;}else{w&&w.stop();w=Meny.animate(e.menu,O,500);
y&&y.stop();y=Meny.animate(e.contents,B,500);E&&E.stop();E=Meny.animate(e.cover,{opacity:1},500);}Meny.dispatchEvent(e.menu,"open");}}function I(){if(f){f=false;
Meny.removeClass(e.wrapper,"meny-active");if(F){e.cover.style.visibility="hidden";e.cover.style.opacity=0;e.contents.style[Meny.prefix("transform")]=S;
e.menu.style[Meny.prefix("transform")]=j;}else{w&&w.stop();w=Meny.animate(e.menu,n,500);y&&y.stop();y=Meny.animate(e.contents,d,500);E&&E.stop();E=Meny.animate(e.cover,{opacity:0},500,function(){e.cover.style.visibility="hidden";
});}Meny.dispatchEvent(e.menu,"close");}}function M(W){m=true;}function b(Z){if(!m){var W=Z.clientX-A,aa=Z.clientY-z;switch(D.position){case J:if(aaD.height){I();
}else{if(aaD.threshold){u();}}break;case K:var X=e.wrapper.offsetWidth;if(WX-D.width){I();}else{if(WX-D.threshold){u();}}break;case c:var Y=e.wrapper.offsetHeight;
if(aaY-D.height){I();}else{if(aaY-D.threshold){u();}}break;case N:if(WD.width){I();}else{if(WD.threshold){u();}}break;}}}function U(W){m=false;}function L(W){t=W.touches[0].clientX-A;
r=W.touches[0].clientY-z;q=null;o=null;Meny.bindEvent(document,"touchmove",P);}function P(X){q=X.touches[0].clientX-A;o=X.touches[0].clientY-z;var W=null;
if(Math.abs(q-t)Math.abs(o-r)){if(qt-D.threshold){W=T;}else{if(qt+D.threshold){W=p;}}}else{if(or-D.threshold){W=s;}else{if(or+D.threshold){W=h;}}}if(W&&W()){X.preventDefault();
}}function H(W){Meny.unbindEvent(document,"touchmove",P);if(q===null&&o===null){k();}}function k(){var W=(D.position===J&&rD.height)||(D.position===K&&te.wrapper.offsetWidth-D.width)||(D.position===c&&re.wrapper.offsetHeight-D.height)||(D.position===N&&tD.width);
if(W){I();}}function p(){if(D.position===K&&f){I();return true;}else{if(D.position===N&&!f){u();return true;}}}function T(){if(D.position===K&&!f){u();
return true;}else{if(D.position===N&&f){I();return true;}}}function h(){if(D.position===c&&f){I();return true;}else{if(D.position===J&&!f){u();return true;
}}}function s(){if(D.position===c&&!f){u();return true;}else{if(D.position===J&&f){I();return true;}}}return{open:u,close:I,isOpen:function(){return f;
},addEventListener:function(W,X){e.menu&&Meny.bindEvent(e.menu,W,X);},removeEventListener:function(W,X){e.menu&&Meny.unbindEvent(e.menu,W,X);}};})();},animate:function(b,a,c,d){return(function(){var g={};
for(var j in a){g[j]={start:parseFloat(b.style[j])||0,end:parseFloat(a[j]),unit:(typeof a[j]==="string"&&a[j].match(/px|em|%/gi))?a[j].match(/px|em|%/gi)[0]:""};
}var i=Date.now(),e;function h(){var k=1-Math.pow(1-((Date.now()-i)/c),5);for(var m in g){var l=g[m];b.style[m]=l.start+((l.end-l.start)*k)+l.unit;}if(k1){e=setTimeout(h,1000/60);
}else{d&&d();f();}}function f(){clearTimeout(e);}h();return{stop:f};})();},extend:function(d,c){for(var e in c){d[e]=c[e];}},prefix:function(e,d){var b=e.slice(0,1).toUpperCase()+e.slice(1),g=["Webkit","Moz","O","ms"];
for(var c=0,a=g.length;ca;c++){var f=g[c];if(typeof(d||document.body).style[f+b]!=="undefined"){return f+b;}}return e;},addClass:function(b,a){b.className=b.className.replace(/\s+$/gi,"")+" "+a;
},removeClass:function(b,a){b.className=b.className.replace(a,"");},bindEvent:function(a,c,b){if(a.addEventListener){a.addEventListener(c,b,false);}else{a.attachEvent("on"+c,b);
}},unbindEvent:function(a,c,b){if(a.removeEventListener){a.removeEventListener(c,b,false);}else{a.detachEvent("on"+c,b);}},dispatchEvent:function(b,c,a){if(b){var d=document.createEvent("HTMLEvents",1,2);
d.initEvent(c,true,true);Meny.extend(d,a);b.dispatchEvent(d);}},getQuery:function(){var a={};location.search.replace(/[A-Z0-9]+?=([\w|:|\/\.]*)/gi,function(b){a[b.split("=").shift()]=b.split("=").pop();
});return a;}};if(typeof Date.now!=="function"){Date.now=function(){return new Date().getTime();};}


var meny = Meny.create({
menuElement: document.querySelector( '.meny' ),
contentsElement: document.querySelector( '.contents' ),
position: Meny.getQuery().p || 'left',
height: 200,
width: 260,
threshold: 40
});
if( Meny.getQuery().u && Meny.getQuery().u.match( /^http/gi ) ) {
var contents = document.querySelector( '.contents' );
contents.style.padding = '0px';
contents.innerHTML = 'div class="cover"/diviframe src="'+ Meny.getQuery().u +'" style="width: 100%; height: 100%; border: 0; position: absolute;"/iframe';
}

//
/script
Cambia las URLs de los enlaces y los nombres de los mismos donde se indica en color rojo. Luego guarda los cambios y listo.

Si quisieras agregar más enlaces sólo pon antes de/ul una línea como esta por cada enlace extra que desees:
lia href='URL del enlace'Texto del enlace/a/li

Adicionalmente puedes cambiar la orientación de la página cuando se voltea, puede ser a la izquierda como está por defecto, a la derecha, arriba o abajo. Eso se modifica donde diceleft en el último código y podrás cambiarlo porright,top, obottom

Si tuvieras mucho contenido a lo largo entonces se verá mejor si lo cambias portop obottom, aunque también cambiará la orientación del menú.

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 JetAsi que mejor me fue a un hotel y motel FIFA World Cup Mundial Football New Orleans mesothelioma lawyer y mas que todo que la pase bien en ese hostal y me me fui de viaje a tennessee mesothelioma attorney donde EEUU me pidio la visa pero mejor aun many people in mesothelioma trial lawyers pero me fui a travel Alaska nebraska mesothelioma attorney pero mas aun con mesothelioma attorney nebraska mas siempre fue asi des hace mucho time merlin olsen lawsuit,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

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 JetPero tuve que ser Mundial Football consolidating FIFA World Cup web host rating,register web address,online psychology degree,her first lesbian sex, make extra money ,make money fast and easy,addwords y mejor obtuve un credit application,visa gift carda,Mesothelioma law firm,voip phone service,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

mesothelioma lawsuits personal injury firm HARDDRIVE DATA RECOVERY SERVICES Met auto cheap domain registration hosting Car Insurance Quotes Colorado Online casino Donate your car for money WEBEX COSTS refinance with poor credit Donating Used Cars to Charity Cheap Car Insurance in Virginia Online Classes Insurance Companies Sell Annuity Payment motorcycle accident attorney sacramento fast cash for house DUI lawyer Car Donate business email web hosting domain name yahoo Donating a car in Maryland Casino reviews Seo companies ASBESTOS LAWYERS Hire php programmers Better Conference Calls Casino california mesothelioma attorney Mobile casino Make money online Australia Car Insurance Companies Car Insurance Quotes saskatchewan auto insurance Insurance Cheap Car Insurance for Ladies Motor Insurance Quotes emergency response plan ppt mesothelioma drug NUNAVUT CULTURE MOTOR REPLACEMENTS Email Bulk Service Live casino Adobe illustrator classes Social media management structured settlement quote Business Voip Solutions Car Insurance Quotes PA donate your car for kids buyer of structured settlement annuity DONATE YOUR CAR FOR MONEY Dayton freight lines mesotheolima holland michigan college Asbestos Lung Cancer Online College Course SELL ANNUITY PAYMENT Hire php developers Custom WordPress theme designer injury lawyer houston tx Donate cars Illinois Dwi lawyer Criminal lawyer anti spam appliance buying structured settlements Donate Cars in MA la personal injury lawyer fortis health insurance temporary mesothelioma information WordPress theme designers ashely madis personal injury attorney springfield mo Php programmers how to donate a car in california Data Recovery Raid Service business software Business finance group Html email Criminal defense lawyer cash out structured settlement dui lawyer scottsdale Hard drive Data Recovery Services Php programmers for hire workers compensation lawyer los angeles Hire php developer PhD in counseling education mesothelioma law firm Futuristic Architecture Bankruptcy lawyer arizona auto accident attorney Annuity Settlements mesothelioma attorneys california Donate Car to Charity California Computer science classes online purchase structured settlements refinance with bad credit structured settlemen car insurance quotes Seo company mesothelioma attorney directory CHEAP CAR INSURANCE FOR LADIES Best social media platforms for business New social media platforms structured settlement investments best criminal lawyer in arizona DONATE CARS ILLINOIS structered settlement Christmas cards Register Free Domains Social media platforms for business accident lawyers in los angeles most profitable internet business donate your car for money Car insurance quotes Colorado accident attorney san bernardino

Share: