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′/>”;
?>
colores RGB en la páginas HTML.
by MigueliTUX on May.10, 2010, under Diseño, HTML
http://es.wikipedia.org/wiki/Colores_HTML
Cuanto vale tu sitio web
by MigueliTUX on Mar.28, 2010, under HTML
Comments Off :site, sitio web, valor, web 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); });
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);">