offtopic-javascript MSIE<>Netscape

From: Date: Wed, 14 Nov 2001 22:30:10 +0000
Subject: offtopic-javascript MSIE<>Netscape
Groups: php.general.es 
Request: Send a blank email to general-es+get-15670@lists.php.net to get a copy of this message
Tengo el siguiente script... Las personas usando Internet Explorer no pueden hacer click, sin embargo los usuarios de Netscape sí, qué debo cambiar??? Soy más php-ero que javascript-ero... así que no le sé mucho a esto... mucho agradecería me ayudaran y disculparan el offtopic. Gracias. <script language="JavaScript"><!-- //-- JavaScript code written by Alan Simpson - www.coolnerds.com //-- Variable below defines how many seconds to wait. var howManySeconds = 120 //--This is the function that pauses, then calls your custom function. function pause() { myTimer=setTimeout("whatToDo()",howManySeconds*1000) } //-- This is the function that's executed after the delay time is up. function whatToDo() { alert("ok"); } function noRightClick() { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2 || e.which == 1)) { alert('You can NOT click on this page -- No puedes hacer click en esta página'); } if (navigator.appName == 'Microsoft Internet Explorer' && (event.button==2||event.button==1||event.button==3)) { alert('You can NOT click on this page -- No puedes hacer click en esta página'); } } document.onmousedown=noRightClick //--></script>

« previous php.general.es (#15670) next »