Tags: javascript

Classer par : Date / Titre /

  1. il y a 3 jours par jacinmontava
    1. if ($("div#capa_1").height() > $("div#capa_2").height()) {
    2.             $("div#capa_2").height($("div#capa_1").height())
    3. }else{
    4.             $("div#capa_1").height($("div#capa_2").height())
    5.  }
    Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/2093"></script>
  2. il y a 11 mois par jacinmontava
    1. function alertPhp($texto){
    2.         echo "<script type='text/javascript'>alert('".$texto."');</script>";
    3. }
    Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1783"></script>
  3. il y a 1 an par jacinmontava
    1. <script type="text/javascript">
    2. function pulsar(e) {
    3.   tecla = (document.all) ? e.keyCode : e.which;
    4.   return (tecla != 13);
    5. }
    6. </script>
    7. <!-- -->
    8. <form action="loquesea.asp" onkeypress = "return pulsar(event)">
    9. <input type="text" />
    10. <input type="submit" />
    11. </form>
    Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1695"></script>
  4. sponsorised links
  5. il y a 1 an par jacinmontava
    1. function stopRKey(evt) {
    2. var evt = (evt) ? evt : ((event) ? event : null);
    3. var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
    4. if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
    5. }
    6. document.onkeypress = stopRKey;
    Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1694"></script>
  6. il y a 1 an par jacinmontava
    En los parámetros del flash o FLV incluir
    <param name="wmode" value="transparent">
    
    Ahora un paso MUY IMPORTANTE para que funcione en todos los navegadores
    
    Para que tambien funcione en Firefox y Opera, etc.incluir el codigo (wmode="transparent") dentro de la etiqueta EMBED, y quede algo así como:
    <embed src="miflash.swf" wmode="transparent" quality="high" etc etc.
    Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1660"></script>
  7. il y a 1 an par aric
    html / javscript
    1. <input type="file" onchange="this.submit()" name="myfile" />
    Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1586"></script>
  8. il y a 1 an par spirit
    When the location you want is in the center of the map, copy and paste this code into the location bar of your browser and press enter
    1. javascript:void(prompt('',gApplication.getMap().getCenter()));
    Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1412"></script>
  9. il y a 1 an par spirit
    This little trick allows a Flash movie (swf) to find out the URL of the page in which it's embedded. Javascript must be enabled for this to work. if the window.location.href.toString method doesn't return a value then ExternalInterface.call will return null. Same thing happens when Javascript is disabled.
    1. // This little trick allows a Flash movie (swf) to find out the URL of the page in which it's embedded.
    2.  
    3. import flash.external.ExternalInterface;
    4.  
    5. var pageURL:String =
    6.         ExternalInterface.call('window.location.href.toString');
    Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1411"></script>
  10. il y a 1 an par spirit
    if toFixed is not defined
    1. if (!num.toFixed)
    2. {
    3.  
    4.  Number.prototype.toFixed = function(precision) {
    5.      var power = Math.pow(10, precision || 0);
    6.      return String(Math.round(this * power)/power);
    7.  }
    8.  
    9. }
    10.  
    11. // OR
    12.  
    13.   Number.prototype.toFixed = function(precision)
    14.   {
    15.      var num = (Math.round(this*Math.pow(10,precision))).toString();
    16.      return num.substring(0,num.length-precision) + "." +
    17.             num.substring(num.length-precision, num.length);
    18.   }
    Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1403"></script>
  11. il y a 1 an par jacinmontava
    1. <script language="JavaScript">
    2. function Abrir_ventana (pagina) {
    3. var opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=690, height=400, top=100, left=80";
    4. window.open(pagina,"",opciones);
    5. }
    6. </script>
    7.  
    8. <body onLoad ="Abrir_ventana('pop.html')" >// abrirlo cuando carga la pagina
    Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1393"></script>

Première / Précédent / Suivant / Dernière / Page 1 sur 4 (32 posteets)