MENU AL DAR CLIC DERECHO EN WEB

Ver el tema anterior Ver el tema siguiente Ir abajo

MENU AL DAR CLIC DERECHO EN WEB

Mensaje  WEB MASTER TRANCE el Sáb Jun 27, 2009 7:26 am

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

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
Admin

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

Ver perfil de usuario http://hacktivismo.t35.com

Volver arriba Ir abajo

Re: MENU AL DAR CLIC DERECHO EN WEB

Mensaje  webtaller2 el Dom Ago 09, 2009 10:32 pm

le faltaria una
vista previa

para ver como es

Salu2 Smile

webtaller2
junior
junior

Cantidad de envíos: 17
Fecha de inscripción: 09/08/2009

Ver perfil de usuario

Volver arriba Ir abajo

Ver el tema anterior Ver el tema siguiente Volver arriba

- Temas similares

Permiso de este foro:
No puedes responder a temas en este foro.