Bueno Aqui Vamos!!!!
Confirmar al salir de la pag.
<script language="javascript" type="text/javascript">
var warn = 1
function removeWarning() {
warn = 0
}
UNLOAD_MSG = 'Taringa By PablitoElCuervo';
function doBeforeUnload(){
if(warn == 1){
if(window.event){
window.event.returnValue = UNLOAD_MSG;
}else{
return UNLOAD_MSG;
}
}
}
if(window.body){
window.body.onbeforeunload = doBeforeUnload;
}else{
window.onbeforeunload = doBeforeUnload;
}
</script>
Frace aleatoria
<Script Language="JavaScript">
hoje = new Date()
numero_de_textos = 4
segundos = hoje.getSeconds()
numero = segundos % numero_de_textos
if (numero == 0){
texto = "A amo ruin, mozo malsín"
}
if (numero == 01){
texto = "Ingresa el segundo texto aquí"
}
if (numero == 02){
texto = "Ingresa el tercer texto aquí"
}
if (numero == 03){
texto = "Ingresa el cuarto texto aquí"
}
document.write('' + texto +'')
</script>
Terremoto en la pantalla
<BODY> <script language="JavaScript1.2">
function tremer(n) {
if (self.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}}}}
tremer(5)
</script> </BODY>
http://s2.***/imagen/718465cesarsamuel1.gif
Vercion del navegador
<!-- this script and more found at A1javascripts.com --> Your browser version is <SCRIPT>
<!--
document.write(navigator.appVersion)
//-->
</SCRIPT>
Desavilitar el teclado
<!-- www.codesweb.es.tl--> <script language="JavaScript">
function keypresed() {
alert('TU TECLADO ESTA INUTILIZADO <img src="http://smilies.webme.com/smiles/rolleyes.gif" border="0">');
}
document.onkeydown=keypresed;
// -->
</script>
Imprimir pagina
<a href="javascript:print()" _fcksavedurl="javascript:print()">Imprimir</a>
Horoscopo chino
<html> <head> <title>Year of the?</title> <!-- BEGIN YEAR OF THE? SCRIPT --> <!-- This part of the script goes between your HEAD tags --> <script LANGUAGE="JavaScript">
<!--
function getpet () {
var toyear = 1997;
var birthyear = document.frm.inyear.value;
var birthpet="Ox"
x = (toyear - birthyear) % 12
if ((x == 1) || (x == -11)) {
birthpet="Rata" }
else {
if (x == 0) {
birthpet="Ox" }
else {
if ((x == 11) || (x == -1)) {
birthpet="Tigre" }
else {
if ((x == 10) || (x == -2)) {
birthpet="Conejo" }
else {
if ((x == 9) || (x == -3)) {
birthpet="Dragon" }
else {
if ((x == <img src="http://smilies.webme.com/smiles/cool.gif" border="0"> || (x == -4)) {
birthpet="Serpiente" }
else {
if ((x == 7) || (x == -5)) {
birthpet="Caballo" }
else {
if ((x == 6) || (x == -6)) {
birthpet="Cabra" }
else {
if ((x == 5) || (x == -7)) {
birthpet="Mono" }
else {
if ((x == 4) || (x == -8)) {
birthpet="Pollo" }
else {
if ((x == 3) || (x == -9)) {
birthpet="Perro" }
else {
if ((x == 2) || (x == -10)) {
birthpet="Cerdo" }
}
}
}
}
}
}
}
}
}
}
}
document.frm.birth.value = birthpet;
}
// -->
</script> <!-- END HEAD TAG PART --> </head> <body BGCOLOR="#ffffff" link="#CC0033" vlink="#333399" alink="#FF0000"> <!-- This part of the script goes between your BODY tags --> <form NAME="frm"> <p><input TYPE="text" SIZE="4" NAME="inyear"> <input TYPE="button" VALUE="Introduce el año y te dire tu horóscopo" onClick="getpet()"> <br> </p> <p><input TYPE="text" SIZE="10" NAME="birth"> </p> </form> <!-- END BODY TAG PART --> <!-- END YEAR OF THE? SCRIPT --> </body> </html>
Averiguar la letra D.N.I
<html> <head> <FCK:meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> <FCK:meta name="GENERATOR" content="Microsoft FrontPage 4.0" /> <FCK:meta name="ProgId" content="FrontPage.Editor.Document" /> <title>Introduce tu DNI</title> <SCRIPT LANGUAGE="JavaScript">
function DNI(n){
var d =(n/23)
d = Math.floor(d);
var e=d*23
var r=n-e
if (r==0)
return "T"
if (r==1)
return "R"
if (r==2)
return "W"
if (r==3)
return "A"
if (r==4)
return "G"
if (r==5)
return "M"
if (r==6)
return "Y"
if (r==7)
return "F"
if (r==8)
return "P"
if (r==9)
return "D"
if (r==10)
return "X"
if (r==11)
return "B"
if (r==12)
return "N"
if (r==13)
return "J"
if (r==14)
return "Z"
if (r==15)
return "S"
if (r==16)
return "Q"
if (r==17)
return "V"
if (r==18)
return "H"
if (r==19)
return "L"
if (r==20)
return "C"
if (r==21)
return "K"
if (r==22)
return "E"
}
</script> </head> <body> <h2><b><font size="3">¿ Se te ha olvidado la letra del D.N.I. ? </font></b></h2> <h2><b><font size="0"> </font><font size="3"><font face="Arial">Codes web te la recuerda</font> </font></b></h2> <h2><b><font size="0"> <CENTER> <form> <p> Introduce tu DNI <INPUT TYPE="text" NAME="input" size=8 maxlength="8"></p> <P> <INPUT TYPE="button" VALUE="Deducir la letra... " onClick="this.form.output.value = DNI(this.form.input.value)"><P> La letra es la... <INPUT TYPE="text" NAME="output" size=1> </form> </CENTER> </body> </html> Pues ya la tienes !!!
Boton de actualizar, atras, adelante
<input type="button" value="Atras" onclick_fckprotectedatt=" onclick="history.back()"" style="font-family: Verdana; font-size: 8 pt"> <input type="button" value="Actualizar" onclick_fckprotectedatt=" onclick="window.location.reload()"" style="font-family: Verdana; font-size: 8 pt"> <input type="button" value="Adelante" onclick_fckprotectedatt=" onclick="history.forward()"" style="font-family: Verdana; font-size: 8 pt">
Detectar el Navegador
<script language="JavaScript">
<!--
function esIE30(){
var browserType=navigator.userAgent;
if (browserType.indexOf("MSIE"==-1)
return false;
else
return true;
}
<!-- Cargar la página según el explorador -->
function cargar(){
if (esIE30())
window.location.href="indice_ie.htm";
else
window.location.href="indice_netscape.htm";
}
//-->
</script>
Leer una cokie
<SCRIPT language=JavaScript>
<!--
var visitas = Contador();
if ( visitas == 1 ) {
document.write("Esta es la primera vez que visitas esta web";
Cuando();
}
else
document.write("Has visitado esta Web <b>" + visitas + "</b> veces. La zltima fue en <b>" + Cuando() +"</b>. "
//-->
</SCRIPT>
Cursor que gira
<!-- www.taringa.net --> <script>
var cursores = new Array("e-resize","ne-resize","n-resize","se-resize"
var i = 0
function voltear(){
document.body.style.cursor=cursores
i++
if (i==cursores.length) i=0
setTimeout("voltear()",75)
}
window.onload=voltear
</script>
Broma de virus
<!-- 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://codesweb.es.tl -->
<!-- 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 ="Broma de virus" onClick_fckprotectedatt=" onClick="confirmClose()""> </FORM> </CENTER> <p><center> <font face="arial, helvetica" size="-2">Codigo creado <br> by <a href="http://codesweb.es.tl" _fcksavedurl="http://codesweb.es.tl">Codes web</a></font> </center>
Recomendaro pagina
<!-- Copiar este código dentro del tag BODY --> <script language="javascript">
// Los mejores códigos JavaScript en http://www.losrecursosgratis.com
function mailpage()
{
mail_str = "mailto:[email protected]?subject=visita esta página. Es muy buena!! " + document.title;
mail_str += "&body=Hola amigo. Te recomiendo que visites esta página Codes web -- " + document.title;
mail_str += ". Enlace: " + location.href;
location.href = mail_str;
}
</script> <a HREF="javascript:mailpage()" _fcksavedurl="javascript:mailpage()">Recomendar por e-mail esta página</a>
Saludos Gente, voy a ir editando el post y poniendo mas espero que les aya gustado
Si les gusto dejen puntines ,o solo comenten i me hacen feliz

