algunos codigos HTML y JAVA
2 participantes
Página 1 de 1.
algunos codigos HTML y JAVA
simulador de viruses
(solo los simula)
- Código:
<!-- Copiar este código dentro del tag HEAD--> <script LANGUAGE="Javascript"> <!-- This script and many more are available free online at --> <!-- The Javascript Source!! http://javascript.internet.com --> <!-- Begin function confirmClose() { alert("Error: 107x has occurred. A virus has begun to infect your hard drive. Please erase all infected files.") if (confirm("Please inform the the hardware vendor of this error.")) alert('The virus has been contained but the browser will shutdown to check for and prevent further internal damages.'); else alert('The problem has not been fixed, the browser must be shut downtown to prevent further contamination.'); { parent.close(); } } // End --> </script> <!-- Copiar este código dentro del tag BODY --> <CENTER> <FORM> <input type="button" value ="Javascript Virus (not really...)" onClick_fckprotectedatt=" onClick="confirmClose()""> </FORM> </CENTER> <p><center> <font face="arial, helvetica" size="-2">Free Javascripts provided<br> by <a href="http://javascriptsource.com" _fcksavedurl="http://javascriptsource.com">The Javascript Source</a></font> </center>
no dejar seleccionar el texto
- Código:
<script language="Javascript">
<!-- Begin
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
// End -->
</script>
Dificultar copia de página
Con este recurso sencillo podemos hacer más difícil el acceso al código-fuente o la copia de imágenes de nuestro sitio. Cuando el visitante haga click con el botón derecho del mouse, surgirá un mensaje creado previamente por nosotros. Recordemos que a algunas personas no les gusta este tipo de bloqueo. Nosotros tenemos que decidir si queremos incluirlo o no en nuestras páginas.
Podemos colocarlo antes de la etiqueta o después de la etiqueta :
- Código:
<script language=Javascript>
function right(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
alert("Coloca el mensaje aquí.");
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Coloca el mensaje aquí.");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
</script>
gracias
LAKX- TEAM
- Mensajes : 557
Puntos : 8743
Reputación : 24
Fecha de inscripción : 15/03/2010
Edad : 31
Re: algunos codigos HTML y JAVA
buenos codigos!
de vez en cuando probaremos algunos!
de vez en cuando probaremos algunos!
@$/€12- Admin
- Mensajes : 177
Puntos : 9814
Reputación : 22
Fecha de inscripción : 15/03/2010
Edad : 33
Localización : españa
Hoja de personaje
gustos: me gusta jugar al basket y estar en el foro.
Página 1 de 1.
Permisos de este foro:
No puedes responder a temas en este foro.
|
|