Hi! mis adorables conejitos pomposos que visitan hoy a MMC ~
{ El día de hoy me resulta muy bonito & feliz ... creo que se nota ¿no? ♥(ノ´∀`)}
¿ Quien se acuerda del menú magicoso que tenia en el sidebar derecho del diseño anterior ?
¿ Quien se acuerda del menú magicoso que tenia en el sidebar derecho del diseño anterior ?
Vamos a Plantilla / Edición HTML {presiona dentro del cuadro donde se encuentra el código de tu plantilla} & busca [Ctrl + F] la linea:
]]></b:skin>ARRIBA pega lo siguiente:
#BOXspace { /* CAJA DE FONDO */Edita como indica arriba en MAYÚSCULA.
background: #000 url(URL DE TU IMG DE FONDO);
padding: 5px;
width: 200px;
}
#MMCspace { /* LINKS CON SUB LINKS*/
text-decoration: none;
padding: 5px;
color: #bc89c1;
font: 10px arial;
text-transform: uppercase;
display: block;
background: #000;
opacity: 0.50;
text-align: right;
}
#MMCspace:hover {opacity: 0.70;}
a.MMCspace{ /* LINKS NORMAL */
text-decoration: none;
padding: 5px;
color: #bc89c1;
font: 10px arial;
text-transform: uppercase;
display: block;
background: #000;
opacity: 0.50;
text-align: right;
}
a.MMCspace:hover {
opacity: 0.70;
}
#popitmenu{ /* BOX SUB LINKS */
position: absolute;
background: #000;
border: 1px solid #111;
opacity: 0.60;
font: normal 10px arial;
text-transform: uppercase;
line-height: 13px;
z-index: 100;
visibility: hidden;
border-radius: 10px;
}
#popitmenu a{ /* SUB LINKS */
text-decoration: none;
padding-left: 6px;
color: #e488bd;
display: block;
text-align: center;
}
#popitmenu a:hover{ /* SUB LINKS HOVER */
background: #000;
opacity: 0.90;
color: #9ddac7;
border-radius: 10px;
}
background: COLOR O IMAGEN DE FONDO.
color: COLOR DEL TEXTO/LINK.
border: COLOR/TAMAÑO/ESTILO DE BORDE. {tutorial AQUI}
border-radius: BORDES REDONDEADOS. {aprende AQUI}
font: TAMAÑO/TIPO DE LETRA.
Una ves ya editado completo:
Vuelve a buscar en tu plantilla [Ctrl + F] lo siguiente:
</body>ARRIBA pega lo siguiente:
<script type="text/javascript">Antes de guardar, edita los "Sub links" & coloca la dirección {URL} a donde te guiara cada uno.
/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var defaultMenuWidth="150px" //set default menu width.
var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
linkset[0]='<a href="http://">Sub link</a>'
linkset[0]+='<a href="http://">Sub link2</a>'
linkset[0]+='<a href="http://">Sub link3</a>'
linkset[0]+='<a href="http://">Sub link4</a>'
linkset[1]='<a href="http://">Sub link</a>'
linkset[1]+='<a href="http://">Sub link1</a>'
linkset[1]+='<a href="http://">Sub link3</a>'
linkset[2]='<a href="http://">Sub link</a>'
linkset[2]+='<a href="http://">Sub link1</a>'
linkset[2]+='<a href="http://">Sub link2</a>'
linkset[2]+='<a href="http://">Sub link3</a>'
////No need to edit beyond here
var ie5=document.all && !window.opera
var ns6=document.getElementById
if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')
function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}
function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}
function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}
function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}
function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}
function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}
if (ie5||ns6)
document.onclick=hidemenu
</script>
Luego de guardar, vas a Diseño / Añadir un Gadget / HTML/javascript & allí adentro pegas:
<div id="BOXspace">Aquí colocas los titulos para los links con sub-links & los titulos para los links que NO tienen sub-links.
<a class="MMCspace" href="ULR">LINK NORMAL</a>
<span id="MMCspace" onMouseover="showmenu(event,linkset[0])" onMouseout="delayhidemenu()">LINK CON SUBLINKS</span>
<span id="MMCspace" onMouseover="showmenu(event,linkset[1], '180px')" onMouseout="delayhidemenu()">LINK2 CON SUBLINKS</span>
<span id="MMCspace" onMouseover="showmenu(event,linkset[2], '180px')" onMouseout="delayhidemenu()">LINK3 CON SUBLINKS</span>
<a class="MMCspace" href="URL">LINK NORMAL</a>
<a class="MMCspace" href="URL">LINK NORMAL</a>
</div>
kawaii^^me encanto el menu espero incluirlo algun dia en alguna plantilla que edite o algo asi(aun no soy tan buen asiendo eso^^')
ResponderEliminar~Saludos & kisses
mell gracias por la tutorial!!
ResponderEliminarya me preguntaba como lo hacias!!
saludos preciosa
Me Encanta!! Muchísimas Gracias <33 En Alguno De Mis Diseños Lo Voy A Usar, Lo Sé! *o*
ResponderEliminarmuy buen tutorial, gracias por el
ResponderEliminar