Tips.cl

HTML

Crea Screenshots

by MigueliTUX on May.03, 2011, under HTML, Linux, Php

Hoy necesitaba crear un Screenshots para mi nuevo sitio web llamado Alertas.cl

buscando encontre una api de WP

el uso es muy sencillo solo debes llamar a la siguiente URL

http://s.wordpress.com/mshots/v1/

pasandole como parametro la url y el ancho de la imagen a crear

por ejemplo

<?php
function getScreenShot($url, $width) {
$path = “http://s.wordpress.com/mshots/v1/”;
echo $path.urlencode($url).”?w=”.$width;
}

$LINK=”http://www.alertas.cl/”;

echo “<img src=”. getScreenShot($LINK, 320).” border=’0′/>”;

?>

Déjanos tu comentario :, , , más...

colores RGB en la páginas HTML.

by MigueliTUX on May.10, 2010, under Diseño, HTML

http://es.wikipedia.org/wiki/Colores_HTML

3 Comentarios : más...

Cuanto vale tu sitio web

by MigueliTUX on Mar.28, 2010, under HTML

si quieres saber cuanto cuesta tu sitio web

visita http://www.yourwebsitevalue.com/

Comments Off :, , , más...

Que Radio Button esta chequeado? con JQuery

by MigueliTUX on Sep.08, 2009, under HTML, JQuery, JavaScript

Si queremos conocer que Radio Button esta chequeado con JQuery debemos hacer lo siguiente

<input id="estado" name="estado" type="radio" value="NV" /> Nuevo 
<input id="estado" name="estado" type="radio" value="US" />Usado
<input id="estado" checked="true" name="estado" type="radio" value="SE" /> Sin Especificar

Con este código sabemos que valor esta chequeado

$(function() {
     var estado=$("input[@name='estado']:checked").val();
     alert(estado);
});
5 Comentarios :, , , más...

Valida Email en javascript

by MigueliTUX on Aug.25, 2009, under HTML, JavaScript

Código JavaScript:

 
function validarEmail(valor) {
      if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){
             alert("La dirección de email " + valor    + " es correcta.")
             return (true)
      } else {
             alert("La dirección de email es incorrecta.");
             return (false);
    }
}

Código HTML:

    <input type="text" name="email" size="50">
    <input type="button" value="Validar e-mail" onClick="validarEmail(this.form.email.value);">
5 Comentarios :, , , más...

Buscas algun tips?

Busca aquí:

contactate con nosotos contacto@tips.cl

Visita nuestras Web amigas!

Web Amigas...