+ Reply to Thread
Results 1 to 9 of 9

Thread: Java Scripts

  1. #1
    medina's Avatar
    medina is offline x10 Addict medina is an unknown quantity at this point
    Join Date
    Nov 2006
    Location
    Cuernavaca
    Posts
    1,837

    Java Scripts

    Bueno los Java Scripts son bastante utiles, ami en lo personal siento que ya pasaronde moda pero en fin el hehco q ya esten pasados de moda no quita que sean bastante utiles
    Al Aceptar entrar al cancelar regresar
    Funciona cuando entras a una web te aparece si deseas entrar si aceptas entras si le das cancelar te regresa a la pagina anterior
    PHP Code:
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function 
    validarENTRADA()
    {
    if (!
    confirm ("¿Desea entrar a esta página?"))
    history.go(-1);return " "
    }

    document.writeln(validarENTRADA())
    // -->
    </script> 
    Reproducir mp3 segun el dia
    Reproduce un mp3 segun el dia de la semana lo vea bastante util a mi en lo personal!... hasta con el mail del autor por si lo desean contactar xD
    NOTA:Les recuerdo que queda prohibido utilizar mp3 con derechos de autor (limita bastante esta regla con el script) pero un mp3 de una banda local o un sonido nose
    HTML Code:
    <!-- Original:  Gary Perry (gary@garyperry.com) -->
    <!-- Change the src="Dog_Growl.mp3" to the pathname and filename for the song you wish to play -->
    <!-- Change each document.write line´s src= portion for the different songs you want -->
    <script language="JavaScript">
    
    s_date = new Date();
    
    if(s_date.getDay() == 1){
    document.write(´<embed width=0 height=0 hidden="true" autostart="true" volume="5" loop="false" src="Window_pane_breaking.mp3">´);
    }
    
    
    if(s_date.getDay() == 2){
    document.write(´<embed width=0 height=0 hidden="true" autostart="true" volume="5" loop="false" src="Lightning_Strike.mp3">´);
    }
     
    
    if(s_date.getDay() == 3){
    document.write(´<embed width=0 height=0 hidden="true" autostart="true" volume="5" loop="false" src="Dog_Growl.mp3">´);
    }
     
    
    if(s_date.getDay() == 4){
    document.write(´<embed width=0 height=0 hidden="true" autostart="true" volume="5" loop="false" src="Car_Crash.mp3">´);
    }
     
    
    if(s_date.getDay() == 5){
    document.write(´<embed width=0 height=0 hidden="true" autostart="true" volume="5" loop="false" src="Lightning_Strike.mp3">´);
    }
     
    
    if(s_date.getDay() == 6){
    document.write(´<embed width=0 height=0 hidden="true" autostart="true" volume="5" loop="false" src="Dog_Growl.mp3">´);
    }
     
    
    if(s_date.getDay() == 7){
    document.write(´<embed width=0 height=0 hidden="true" autostart="true" volume="5" loop="false" src="Car_Crash.mp3">´);
    }
     
    
    if(s_date.getDay() == 0){
    document.write(´<embed width=0 height=0 hidden="true" autostart="true" volume="5" loop="false" src="Window_pane_breaking.mp3">´);
    }
    
    </script>
    Aceptar Terminos
    Esto va en el <head></head>
    HTML Code:
    <SCRIPT language="JavaScript" type="text/javascript">
    <!--
    function checkCheckBox(f){
    if (f.agree.checked == false )
    {
    alert("Por favor, debes aceptar las condiciones de uso antes de continuar");
    return false;
    }else
    return true;
    }
    //-->
    </SCRIPT>
    y ya esto en el body
    HTML Code:
    <form action="terminos_aceptados.htm" method="GET" onsubmit="return checkCheckBox(this)">
    I accept: <input type="checkbox" value="0" name="agree">
    <input type="submit" value="Continuar">
    <input type="button" value="No accepto" onclick="document.location.href=´/index.html´;">
    </form> 
    Saludo al entrar ala pagina
    Va en el head les recuerdo
    HTML Code:
    <script language=JavaScript> 
    alert("Hola") 
    </script>
    Alerta al presionar el boton izquierdo (Vaya que es muy molesto)
    HTML Code:
    <SCRIPT LANGUAGE=JavaScript>
    <!--
    function MsgBox(texto){
        alert(texto);
        return;
        }
    // -->
    </SCRIPT>
    
    <BODY OnClick="MsgBox('Eso no!!')">
    Lo mismo pero con Penalizacion (Aun mas molesto)
    HTML Code:
    <script language="Javascript">
    zaehler=0;
     function right(e) {
     if (navigator.appName == 'Netscape'){
     if (e.which == 3 || e.which == 2){
     alert("Aqui no puedes utilizar el botón derecho del mouse");
     for(i=0;i!=zaehler;i++)alert("Ya te avisé, te penalizaré con \n                 "+(zaehler-i)+"\n              clicks.");
     zaehler+=10;
     alert("¡La proxima vez que lo hagas será peor!");
     return false;}}
     if (navigator.appName == 'Microsoft Internet Explorer'){
     if (event.button == 2 || event.button == 3){
     alert("Aqui no puedes utilizar el botón derecho del mouse");
     for(i=0;i!=zaehler;i++)alert("Ya te avisé, te penalizaré con \n                 "+(zaehler-i)+"\n              clicks.");
     zaehler+=10;
     alert("¡La proxima vez que lo hagas será peor");
     return false;}}
     return true;
     }
     document.onmousedown=right;
     if (document.layers) window.captureEvents(Event.MOUSEDOWN);
     window.onmousedown=right;
     // --></script>
    ▐ Quieres Ganar $50 dólares totalmente gratis en menos de 24 horas? Visita este Post y ve como lograrlo
    http://x10hosting.com/forums/mercado/124800-gana-0-35-por-ser-mi-referido-unos-50-00-extra.html






  2. #2
    alquimistabiologico's Avatar
    alquimistabiologico is offline x10 Sophmore alquimistabiologico is an unknown quantity at this point
    Join Date
    Mar 2007
    Location
    Colombia
    Posts
    194

    Re: Java Scripts

    Ah, muy bueno, especialmente el de la penalización, yo lo use un buen tiempo.

  3. #3
    eZakto is offline x10 Lieutenant eZakto is an unknown quantity at this point
    Join Date
    May 2006
    Location
    Salta, Argentina.
    Posts
    394

    Re: Java Scripts

    Pasado de moda? xD
    AJAX es una técnica que se emplea usando javascript y te diré que es de lo más usado.

    Saludos.

  4. #4
    medina's Avatar
    medina is offline x10 Addict medina is an unknown quantity at this point
    Join Date
    Nov 2006
    Location
    Cuernavaca
    Posts
    1,837

    Re: Java Scripts

    Quote Originally Posted by eZakto View Post
    Pasado de moda? xD
    AJAX es una técnica que se emplea usando javascript y te diré que es de lo más usado.

    Saludos.
    Pasada de moda el JavaScript solo, si se q Ajax es lo q mas esta de moda y vaya q es util y se ve genial!.....


    Les recomiendo q se hechen una visita al thread de + PHP Scripts!...
    ▐ Quieres Ganar $50 dólares totalmente gratis en menos de 24 horas? Visita este Post y ve como lograrlo
    http://x10hosting.com/forums/mercado/124800-gana-0-35-por-ser-mi-referido-unos-50-00-extra.html






  5. #5
    eZakto is offline x10 Lieutenant eZakto is an unknown quantity at this point
    Join Date
    May 2006
    Location
    Salta, Argentina.
    Posts
    394

    Re: Java Scripts

    AJAX es javascript sólo. Únicamente se le añade el objeto xmlhttprequest

  6. #6
    mesabell is offline x10Hosting Member mesabell is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    Peru
    Posts
    65

    Thumbs up Re: Java Scripts

    Interesante tu aporte de java scripts

  7. #7
    biovirus's Avatar
    biovirus is offline x10 Sophmore biovirus is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Kli, Colombia
    Posts
    195

    Re: Java Scripts

    thnks medina por el aporte, personalmente utilizo JavaScript en algunas de mis paginas, thnks very much.
    Last edited by biovirus; 01-17-2008 at 10:30 PM.

  8. #8
    in3xdesign's Avatar
    in3xdesign is offline x10 Sophmore in3xdesign is an unknown quantity at this point
    Join Date
    Oct 2009
    Location
    Bogota , Colombia
    Posts
    199

    Re: Java Scripts

    Sii

    Definitivamente me kedo mucho con AJAX, apesar que para usarlo debemos saber cosas basicas como algunos Scripts QUE NOS COLOCAS AKI!!!....

    Vale por el aporte ... estamos pendientes de que mas nos sacas!!

    Gracias:hahano:

    John Harry!

  9. #9
    dar109 is offline x10Hosting Member dar109 is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    26

    Re: Java Scripts

    pues yo tambien opino q el javascript no esta pasado de moda mas bien es un lenguaje basico,ya que sin el ajax no existiria y no veriamos tantas cosas tan interesantes como los gadgets que estan hechos en ajax,bueno algunos no todos, de cualquier forma nunca esta de mas el aprender y mas si es algo base como esto de javascript,saludos

+ Reply to Thread

Similar Threads

  1. Java
    By Rhianna in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 03-07-2009, 06:22 PM
  2. Java Tutorial for Beginners.
    By satheesh in forum Tutorials
    Replies: 0
    Last Post: 10-27-2007, 06:40 PM
  3. Web de Scripts DHTML y Ajax..
    By rackfenix in forum General
    Replies: 1
    Last Post: 10-07-2007, 04:11 PM
  4. Selling Scripts And Templates Need Money
    By araniajain in forum The Marketplace
    Replies: 0
    Last Post: 09-09-2007, 11:30 AM
  5. Access problems with CGI Perl scripts
    By alcramer in forum Free Hosting
    Replies: 2
    Last Post: 08-26-2007, 12:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers