breadcrumb navigation using pure CSS3
A Pen by Secret Sam on CodePen.
// JavaScript Document | |
// Inicialización de AJAX multiplataforma | |
// Otra alternativa para instanciar el objeto. | |
// Sólo es necesario crear un nuevo objeto con el nombre de la instancia | |
// ej: XMLHttp = crearInstancia(); | |
function crearInstancia() { | |
XMLHttp = false; |
<?php | |
############################################################################# | |
## Función para comparar fechas extraídas | |
## de un sql query. | |
## Lo que hace la función es convertir | |
## las fechas gregorianas en fechas julianas | |
## y calcular los días de diferencia | |
## | |
## Créditos: http://www.webtutoriales.com/articulos/comparar-fechas-en-php |
<?php | |
#### | |
## Eliminar una imagen | |
#### | |
if(isset($_GET['eliminar'])){ | |
$archivo = $_GET['eliminar']; | |
$directorio = dirname(__FILE__); | |
if(unlink($directorio.'/'.$archivo)){ | |
header("Location: cargarImagen.php?accion=eliminado"); |
<?php | |
/** | |
* SCRIPT PARA ENVIAR CORREOS DESDE PHP | |
* | |
* Script sencillo para enviar datos de un formulario | |
* por correo mediante MAIL de PHP | |
* | |
* @author: Fernando Magrosoto V | |
* @copyright: Febrero 2000 |
Estas son las sentencias básicaS para manejar MySQL con PHP. | |
// Estos son los datos de conexión | |
$dbhost = 'localhost'; // Servidor de la BD | |
$dbuser = 'root'; // Usuario | |
$dbpass = 'password'; // Password | |
$dbname = 'somedatabase'; // Base de datos | |
// Conexión |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Dropdown menu</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<style> | |
nav ul { | |
font-family:sans-serif; | |
list-style:none; |
/** | |
* FORMATEAR FECHA | |
* | |
* Formatear la fecha de formato MySQL a formato humanamente legible. | |
* Incluye opción para mostrar la hora o no. | |
* @author Fernando Magrosoto | |
*/ | |
function formatearFecha($fecha, $phora){ | |
$fechaO = explode(" ",$fecha); |
<!DOCTYPE html> | |
<html lang="es-MX"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Elementos en sticky mode</title> | |
<link href='http://fonts.googleapis.com/css?family=Raleway:400,200' | |
rel='stylesheet' type='text/css'> | |
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> | |
<style> | |
breadcrumb navigation using pure CSS3
A Pen by Secret Sam on CodePen.
<!DOCTYPE html> | |
<html lang='es-MX'> | |
<head> | |
<meta charset='UTF-8' /> | |
<title>Mensaje en Pop-up</title> | |
<style> | |
body { | |
font-family: Georgia, serif; | |
font-size: 100%; | |
color: rgb(51,51,51); |