Menú vertical drag and drop con jQuery – Credito – Curso


jGlideMenu es unmenú vertical que se puede arrastrar y soltar para que el lector lo ubique donde quiera, pero además, se puede navegar a través de sus pestañas de una forma muy peculiar y con un efecto deslizante para darle ese toque sexy.
Una de las ventajas que tiene es que puede almacenar un gran número de enlaces, y que se puede quitar el efectodrag and drop (arrastrar y soltar) si se desea.

Para que entiendas mejor este menú hay que verlo en acción en esteblog de pruebas, ahí puedes arrastrar el menú, navegar en sus pestañas, y cerrarlo.

Para poner en tu blog este menú vertical, primerodescarga este archivo, descomprímelo y súbelo a un hosting.
Luego ingresa a laEdición HTML de tu plantilla y antes de/head agrega los scripts:
script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' type='text/javascript' /
script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js' type='text/javascript' /
script src='URL del archivo' type='text/javascript'/

script type='text/javascript'
//![CDATA[
$(document).ready(function(){
$('#jGlide_001').jGlideMenu({
tileSource : '.jGlide_001_tiles' ,
demoMode : false
}).show();

$('#switch').click(function(){$(this).jGlideMenuToggle();});
});
//
/script
Coloca la URL del archivo que subiste previamente donde se indica, luego pega antes de
/b:skin los estilos:
.jGM_box {
position: absolute;/* Cambiar absolute por fixed si se quiere flotante */
top: 150px;/* Distancia desde arriba */
left: 200px;/* Distancia desde la izquierda */
width: 227px;
height: 317px;
background: #fff;/* Color de fondo */
margin: 0;
padding: 0;
border: 1px solid #ccc; /* Borde */
overflow: hidden;
}
.jGM_header {
position: absolute;
top: 0;
left: 0;
height: 18px;
width: 227px;
background: #d1d1d1;/* Color de fondo de la barra de arriba */
color: #fff;
text-align: right;
vertical-align: middle;
line-height: 18px;
cursor: move;
}
.jGM_header a {
margin-right: 12px;
text-decoration: none;
color: #000 !important;
cursor: pointer;
}
.jGM_wrapper {
position: absolute;
top: 19px;
left: 0;
width: 2270px;
height: 288px;
margin: 0;
padding: 0;
border: 0;
}
.jGM_tile {
position: absolute;
top: 0;
left: 7px;
width: 213px;
height: auto;
overflow: hidden;
margin: 0;
padding: 0;
border: 0;
display: block;
}
.jGM_cats {
width: 100%;
height: 64px;
overflow: hidden;
vertical-align: middle;
text-align: left;
}
.jGM_cats h4 {
font-family: Verdana,Arial,serif;
font-size: 1.8em;
margin: 0;
padding: 2px 0;
line-height: 1.8em;
color: #414141;
font-weight: normal;
}
.jGM_cats p {
font-family: Verdana,tahoma,arial;
font-size: 1em;/* Tamaño de la descripción */
margin: 0;
padding: 0;
line-height: 1.2em;
color: #858585;/* Color de la descripción */
font-weight: normal;
}
.jGM_pager {
height: 18px;
width: 213px;
line-height: 18px;
margin: 0;
border: 0;
padding: 0;
background: #f6f6f6;/* Color de fondo barras */
text-align: center;
vertical-align: middle;
}
.jGM_pager a {
text-decoration: none;
font-weight: bold;
text-decoration: none;
display: block;
}
.jGM_pager a:hover { background: #d1d1d1; }
.jGM_pager img { border: 0; margin: 6px 0; }
.jGM_content {
width: 213px;
height: 150px;
margin: 1px 0;
padding: 0;
border: 0;
overflow: hidden;
}
.jGM_content a {
font-family: Tahoma,arial;
text-decoration: none;
color: #333 !important;
height: 18px;
width: 100%;
display: block;
line-height: 18px;
padding: 0 0 0 10px;
background-color: #e6e7e9;
margin: 1px 0;
}
.jGM_content a:hover {
color: #fff !important;
background-color: #4D4E67;/* Color de la barra al pasar el cursor */
}
.jGM_more {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWHxh5HJqoYb4lnAI8rLsIKofexvndVyTQ_-mJ-KjU4YoMbXlFl4hMsd6kTCiYdVn_d6uXf4mOQUQl7BeSnNUxWAPNxJUW3JxNJRtvxXNiS150wDG8_J_hjvWclijP4OKUSFrMNVMjCjM/s10/arrow.gif);
background-repeat: no-repeat;
background-position: 203px 50%;
}
.jGM_back {
position: absolute;
top: 255px;
right: 0;
height: 18px;
width: 52px;
background: #d1d1d1;
line-height: 18px;
vertical-align: middle;
text-align: center;
margin: 10px 0 0 0;
padding: 0;
border: 0;
z-index: 99;
}
.jGM_back a {
height: 100%;
width: 100%;
text-decoration: none;
color: #000 !important; /* Color del enlace "atrás" */
display: block;
}
.jGM_back a:hover {
color: #fff !important; /* Color del enlace "atrás" al pasar el cursor */
background: #4D4E67;
}
.jGM_reset {
position: absolute;
top: 255px;
right: 62px;
height: 18px;
width: 52px;
background: #d1d1d1;
line-height: 18px;
vertical-align: middle;
text-align: center;
margin: 10px 0 0 0;
padding: 0;
border: 0;
z-index: 99;
}
.jGM_reset a {
height: 100%;
width: 100%;
text-decoration: none;
color: #000 !important;/* Color del enlace "inicio" */
display: block;
}
.jGM_reset a:hover {
color: #fff !important;/* Color del enlace "inicio" al pasar el cursor */
background: #4D4E67;
}

Ahora en un elementoHTML/Javascript pega la estructura del menú:
div class="jGM_box" id="jGlide_001"

!-- Aquí todos los enlaces del primer nivel --
ul id="tile_001" class="jGlide_001_tiles" title="Menú" alt="Descripción del primer nivel"
li rel="tile_002"Enlace 1/li
li rel="tile_003"Enlace 2/li
li rel="tile_004"Enlace 3/li
li rel="tile_006"Enlace 4/li
li rel="tile_007"Enlace 5/li
lia href="URL del enlace"Enlace 6/a/li
lia href="URL del enlace"Enlace 7/a/li
lia href="URL del enlace"Enlace 8/a/li
lia href="URL del enlace"Enlace 9/a/li
lia href="URL del enlace"Enlace 10/a/li
lia href="URL del enlace"Enlace 11/a/li
/ul

!-- Aquí todos los enlaces del segundo nivel --
ul id="tile_002" class="jGlide_001_tiles" title="Menú" alt="Descripción del segundo nivel"
li rel="tile_005"Enlace 1.1/li
lia href="URL del enlace"Enlace 1.2/a/li
lia href="URL del enlace"Enlace 1.3/a/li
lia href="URL del enlace"Enlace 1.4/a/li
/ul

ul id="tile_003" class="jGlide_001_tiles" title="Menú" alt="Descripción del segundo nivel"
lia href="URL del enlace"Enlace 2.1/a/li
li rel="tile_008"Enlace 2.2/li
lia href="URL del enlace"Enlace 2.3/a/li
/ul

ul id="tile_004" class="jGlide_001_tiles" title="Menú" alt="Descripción del segundo nivel"
lia href="URL del enlace"Enlace 3.1/a/li
lia href="URL del enlace"Enlace 3.2/a/li
lia href="URL del enlace"Enlace 3.3/a/li
/ul


ul id="tile_006" class="jGlide_001_tiles" title="Menú" alt="Descripción del segundo nivel"
lia href="URL del enlace"Enlace 4.1/a/li
lia href="URL del enlace"Enlace 4.2/a/li
lia href="URL del enlace"Enlace 4.3/a/li
/ul

ul id="tile_007" class="jGlide_001_tiles" title="Menú" alt="Descripción del segundo nivel"
lia href="URL del enlace"Enlace 5.1/a/li
lia href="URL del enlace"Enlace 5.2/a/li
/ul


!-- Aquí todos los enlaces del tercer nivel --
ul id="tile_005" class="jGlide_001_tiles" title="Menú" alt="Descripción del tercer nivel"
lia href="URL del enlace"Enlace 1.1.1/a/li
lia href="URL del enlace"Enlace 1.1.2/a/li
/ul


ul id="tile_008" class="jGlide_001_tiles" title="Menú" alt="Descripción del tercer nivel"
lia href="URL del enlace"Enlace 1.2.1/a/li
lia href="URL del enlace"Enlace 1.2.2/a/li
/ul


/div
Agrega las URLs de los enlaces y los nombres de las pestañas y listo.
Si quieres agregar más enlaces al primer nivel añade en esa área otra línea como esta:
lia href="URL del enlace"Enlace 12/a/li

Si quisieras que el enlace tenga otro nivel entonces la línea será así:
lirel="tile_0010"Enlace 5/li
Luego en el área del segundo o tercer nivel agregarías un fragmento así:
ulid="tile_0010" class="jGlide_001_tiles" title="Menú" alt="Descripción del segundo nivel"
lia href="URL del enlace"Enlace 5.1/a/li
lia href="URL del enlace"Enlace 5.2/a/li
/ul

Aquí hay que tener algo muy en cuenta, si te fijas el enlace lleva el atributoREL, que debe ser el mismo que elID que ponemos en el segundo nivel, estos IDs nunca se debe repetir, siempre serán únicos.
Sí, suena complicado, pero una vez que entendemos el concepto ya no lo es tanto.

En el área de los estilos están las partes que podemos personalizar. Si quisieras que el menú esté estático, es decir, que esté en la sidebar y no se arrastre, entonces elimina del primer código el script que está en cursiva. Y de los estilos elimina esta parte:
position: absolute;/* Cambiar absolute por fixed si se quiere flotante */
top: 150px;/* Distancia desde arriba */
left: 200px;/* Distancia desde la izquierda */

Cuando sean muchos enlaces entonces aparecerán unas flechitas, pasando el cursor sobre ellas se mostrarán el resto de los enlaces ya sea hacia arriba o hacia abajo.

A lo largo de la estructura del menú verás que puedes cambiar el nombre Menú así como las descripciones.

Es un menú con jQuery así que ya saben que hay que tomar en cuentala versión que sea sólo una, y lacompatibilidad con Scriptaculous.

Vía | Sonicradish

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 Jet

online motor insurance quotes Seo company mesothelioma personal injury lawyers sell annuity payment google adsense mesothelioma cases LIFE INSURANCE CO LINCOLN Mobile casino WordPress theme designers philadelphia mesothelioma lawyer Dallas mesothelioma attorneys Hire php programmers Donate Car to Charity California Psychic for Free MOTOR REPLACEMENTS Online casino donating used cars to charity Seo companies Email Bulk Service verizon sip Donate your car Sacramento ANNUITY SETTLEMENT Mortgage ONLINE MOTOR INSURANCE QUOTES refinance with poor credit DONATE YOUR CAR FOR MONEY insurance medical temporary How to Donate A Car in California mesothelioma attorneys california email bulk service la personal injury lawyer mesothelioma law suits georgia truck accident lawyer Car insurance quotes Utah NUNAVUT CULTURE boca raton personal injury attorney Casino saskatchewan auto insurance Car insurance in South Dakota Neuson structured settlement brokers Better conferencing calls Dayton Freight Lines car donate Bankruptcy lawyer Make money online Australia CAR INSURANCE QUOTES COLORADO Car Insurance Quotes Utah CAR INSURANCE IN SOUTH DAKOTA Psd to WordPress Donate Car To Charity CALIFORNIA Cheap Domain Registration Hosting Casino reviews Business finance group Nunavut culture Best social media platforms futuristic architecture online criminal justice degree Futuristic Architecture Live casino dallas mesothelioma attorneys google affiliate compare life assurance Photo Christmas cards illinois law lemon Business management software CRIMINAL DEFENSE ATTORNEYS FLORIDA Social media platforms for business WebEx costs CAR ACCIDENT LAWYERS Cheap Car Insurance for Ladies Custom Christmas cards Hire php developer city college in miami chicago hair laser removal adverse remortgage mesothelioma compensation Car Insurance in South Dakota Christmas cards DUI lawyer integrated ehr orlando criminal attorney New social media platforms Hire php developers Cheap Auto Insurance in VA harddrive data recovery services Criminal lawyer earthlink business internet st louis mesothelioma attorney Paperport Promotional Code Mortgage adviser dui lawyer scottsdale donate your car for money WordPress themes for designers Dwi lawyer diagnosed with mesothelioma CHEAP CAR INSURANCE FOR LADIES Service business software structured settlement blog Criminal defense lawyer Personal Injury Lawyers Mortgage Adviser Claim Php programmers for hire Online Colleges World trade center footage automobile accident attorney buy gift card Forensics online course Social media tools asbestos lung cancer Computer science classes online personal injury attorney torrance car insurance quotes colorado mesothelioma lawyer houston

Share: