Created
December 17, 2009 23:33
-
-
Save tfreitas/259132 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>prueba carrusel</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script> | |
<script src="http://github.com/pure/pure/raw/master/libs/pure.js" type="text/javascript" charset="utf-8"></script> | |
</head> | |
<body> | |
<div> | |
<div class="PS"> | |
<table> | |
<thead> | |
<tr> | |
<th> </th> | |
<th><strong>Título y Descripción</strong></th> | |
<th> </th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td><a href="#" class="PI"><img src="" /></a></td> | |
<td><h4><a href="#" class="PT"></a></h4> | |
<br/> | |
<p></p> | |
</td> | |
<td> </td> | |
</tr> | |
</tbody> | |
</table> | |
<div class="PST"><a href="/inmuebles/nuevosproyectos/">Ver más </a></div> | |
<div> | |
<div> | |
<script type="text/javascript" charset="utf-8"> | |
var jsonProy = { | |
"total": 50, | |
"lista": [ | |
{ | |
"img": "http://clasificados.eluniversal.com/inmuebles/nuevosproyectos/proyectos/CimaAvila/cima_avila.jpg", | |
"url": "http://constructora.eluniversal.com/cimaavila/", | |
"titulo": "Cima Avila", | |
"ciudad": "Ciudad: Caracas", | |
"urbanizacion": "Urb. Lomas del Sol", | |
"tipo": "Apartamento", | |
"area": "Desde 55 a 110m2" | |
}, | |
{ | |
"img": "http://clasificados.eluniversal.com/inmuebles/nuevosproyectos/proyectos/CimaAvila/cima_avila.jpg", | |
"url": "http://constructora.eluniversal.com/cimaavila/", | |
"titulo": "Cima Avila", | |
"ciudad": "Ciudad: Caracas", | |
"urbanizacion": "Urb. Lomas del Sol", | |
"tipo": "Apartamento", | |
"area": "Desde 55 a 110m2" | |
}, | |
{ | |
"img": "http://clasificados.eluniversal.com/inmuebles/nuevosproyectos/proyectos/CimaAvila/cima_avila.jpg", | |
"url": "http://constructora.eluniversal.com/cimaavila/", | |
"titulo": "Cima Avila", | |
"ciudad": "Ciudad: Caracas", | |
"urbanizacion": "Urb. Lomas del Sol", | |
"tipo": "Apartamento", | |
"area": "Desde 55 a 110m2" | |
}, | |
{ | |
"img": "http://clasificados.eluniversal.com/inmuebles/nuevosproyectos/proyectos/CimaAvila/cima_avila.jpg", | |
"url": "http://constructora.eluniversal.com/cimaavila/", | |
"titulo": "Cima Avila", | |
"ciudad": "Ciudad: Caracas", | |
"urbanizacion": "Urb. Lomas del Sol", | |
"tipo": "Apartamento", | |
"area": "Desde 55 a 110m2" | |
} | |
] | |
} | |
var directivaProy={ "tbody tr":{ | |
"np<-lista":{ | |
"td a.PI@href":"np.url", | |
"td a.PI img@src":"np.img", | |
"td a.PT@href":"np.url", | |
"td a.PT":"np.titulo", | |
"td p":"#{np.ciudad} <br> #{np.urbanizacion} <br> #{np.tipo} <br> #{np.area}" | |
} | |
}, | |
"div.PST a+":"total" | |
} | |
$('div.PS').render(jsonProy,directivaProy); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment