MENU AL DAR CLIC DERECHO EN WEB
Página 1 de 1. • Compartir •
MENU AL DAR CLIC DERECHO EN WEB
UNA FORMA MUY UTIL DE EVITAR COPIADO DE IMAGENES Y TEXTO ES CREANDO TU PROPIO MENU AL DAR CLICK DERECHO
AL IGUAL AYUDA PARA QUE PONGAS TUS OPCIONES Y PUEDAN NAVEGAR EN TU WEB DE UNA FORMA FACIL
AL IGUAL AYUDA PARA QUE PONGAS TUS OPCIONES Y PUEDAN NAVEGAR EN TU WEB DE UNA FORMA FACIL
- Código:
<script language="javascript">
<!--
function tMenu(a) {
var X = event.clientX;
X += document.body.scrollLeft;
var Y = event.clientY;
Y += document.body.scrollTop;
hSmellMenu.style.left=X;
hSmellMenu.style.top=Y;
if(a) {
hSmellMenu.style.display = 'block';
} else {
hSmellMenu.style.display = 'none';
}
return false;
}
function cColor(o) {
if (o.className == 'hSmellOver') {
o.className = 'hSmellCell';
} else {
o.className = 'hSmellOver';
}
}
function goMenu(str) {
window.location.href = str;
}
//-->
</script>
<style>
/*Determinamos los colores
*/
.hSmellCell {
font-family:arial;
background-color:#cc0000;
font-size:10pt;
color:#ffffff;
cursor:default;
font-weight:bold;
}
.hSmellOver {
font-family:arial;
background-color:#3366CC;
font-size:10pt;
color:#CCCCFF;
cursor:default;
font-weight:bold;
}
td.separator {
background-color:#cc0000;
}
hr.separator {
color:ffffff;
}
</style>
Pulsa con el boton derecho del raton y aparecerá el menu de navegacion
<table id="hSmellMenu" style="display:none;position:absolute;" border="1" cellspacing="0" cellpadding="2" bordercolor="#cc0000">
<tr>
<td class="hSmellCell" onMouseOver="cColor(this);" onMouseOut="cColor(this);" onClick="javascript:goMenu('http://hacktivismo.t35.com)">
Pagina principal
</td>
</tr>
<tr height="1">
<td class="separator"><hr class="separator" width="95%"></td>
</tr>
<tr>
<td class="hSmellCell" onMouseOver="cColor(this);" onMouseOut="cColor(this);" onClick="javascript:goMenu('http://www.yahoo.com')">
Yahoo.com
</td>
</tr>
<tr>
<td class="hSmellCell" onMouseOver="cColor(this);" onMouseOut="cColor(this);" onClick="javascript:goMenu('http://www.google.com')">
Google.com
</td>
</tr>
<tr>
<td class="hSmellCell" onMouseOver="cColor(this);" onMouseOut="cColor(this);" onClick="javascript:goMenu('http://www.altavista.com')">
Altavista
</td>
</tr>
</table>
<Body oncontextmenu="return tMenu(true);" onClick="tMenu(false);">

WEB MASTER TRANCE- Admin

- Cantidad de envíos: 19
Fecha de inscripción: 22/06/2009
Edad: 19

Re: MENU AL DAR CLIC DERECHO EN WEB
le faltaria una
vista previa
para ver como es
Salu2
vista previa
para ver como es
Salu2

webtaller2- junior

- Cantidad de envíos: 17
Fecha de inscripción: 09/08/2009
Temas similares» Menu de Almuerzo
» SUJETOS DEL DERECHO INTERNACIONAL
» ZARAGOZA - TUNA DE LA FACULTAD DE DERECHO DE ZARAGOZA
» [Javascript] Bloquear boton derecho del raton.
» cuantos clic puedes hacer en diez segundos
» SUJETOS DEL DERECHO INTERNACIONAL
» ZARAGOZA - TUNA DE LA FACULTAD DE DERECHO DE ZARAGOZA
» [Javascript] Bloquear boton derecho del raton.
» cuantos clic puedes hacer en diez segundos
Página 1 de 1.
Permiso de este foro:
No puedes responder a temas en este foro.