Ver Mensaje Individual
  #8 (permalink)  
Antiguo 13/11/2008, 13:49
martinjota
 
Fecha de Ingreso: noviembre-2008
Mensajes: 2
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: problema al bloquear boton derecho del mouse

<head>
<SCRIPT language=JavaScript>
<!--
function click() {
if (event.button== 2 ) {
alert( 'Lo siento, no se puede usar ese botón Martin J.!' );
}
}
document.onmousedown=click
// -->
</SCRIPT>
<script language="JavaScript1.2">

var clickmessage="Función Desactivada en Imágenes!"

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG" ){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG" ){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images.onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
</script>
</head>
<body>
<tr>
<td width="874" background="images/DKSS4.jpg"><p><font color="">
<iframe name="I1" src="Juegos/Deportes.php" width="1024" height="768" border="0" frameborder="0" align="left"> El explorador no admite los marcos flotantes o no est&aacute; configurado actualmente para mostrarlos. </iframe>
</font></td>
</tr>
</body>
----------------------------------------------------------------------------
//DEPORTES.PHP ESTA BLOQUEADO EL CLICK DERECHO PERO ACA EN HREF SE ABRE FIFA04C.JPG Y ES AHI DONDE SE PUEDE HACER CLICK DERECHO PARA GUARDAR LA IMAGEN
---------------------------------------------------------------------------
<a href="\juegos\deportes\fifa04c.jpg" title="Fifa 2004 2CD 10$"><img src="\juegos\deportes\fifa 04.jpg"</a>

// SE ENTIENDE? SE ABRE FIFA04.JPG EN LA MISMA PAGINA PERO NO ESTA BLOQUEADA EL CLICK DERECHO