Header

From Wikimas

(Difference between revisions)
Line 18: Line 18:
<!--creado por www.geocities.com.ar/el_portal1/1.htm Netscape right--->
<!--creado por www.geocities.com.ar/el_portal1/1.htm Netscape right--->
-
<script language="JavaScript1.1">
+
<!--creado por www.geocities.com.ar/el_portal1/1.htm--->
-
<!-- Begin
+
-
function right(e) {
+
-
var msg = " ¿que queres hacer? ";if (navigator.appName == 'Netscape ' && e.which == 3) {
+
-
}
+
<!-- Botón derecho del mouse -->
-
else
+
 
-
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
+
<script LANGUAGE="JavaScript1.1">
-
alert(msg);
+
   
   
 +
function derecha(e) {
 +
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
 +
alert('Botón derecho no anda aqui')
 +
return false;
}  
}  
-
 
+
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2)){
-
}  
+
alert('Botón derecho no anda aqui')
-
document.onmousedown = right;
+
}
-
// End -->
+
}
 +
document.onmousedown=derecha
</script>
</script>

Revision as of 03:22, 22 November 2007

<style type="text/css">
  /*
     Notes: 
      -You must log as admin to edit this page
      -Whatever you enter in this page will be added to the html in the header after the standard style sheet, so you can override styles. 
      -if you want your code to look nice on this page, put a space at the beginning of each line
      -This is the default style sheet that you can override : http://editthis.info/wiki/skins/monobook/main.css 
      
      For example uncomment this next section to turn all the text green:
  */
 /*
body {
   color: green;
}
 */ 
</style>



<script LANGUAGE="JavaScript1.1">

function derecha(e) {

if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){ alert('Botón derecho no anda aqui') return false; }

else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2)){ 

alert('Botón derecho no anda aqui') } } document.onmousedown=derecha </script>

Personal tools