add movieposterdb

This commit is contained in:
j 2009-07-15 20:19:56 +02:00
commit c267b258be
3 changed files with 17 additions and 17 deletions

View file

@ -14,13 +14,13 @@ $(function(){
$.each(posters, function(key, urls) {
var id = 'row' + key.replace('.', '_');
var row = '<tr id="'+id+'">';
row += '<td id="'+id+'_title">' + key + '</td>';
$.each(urls, function(i, poster) {
row += '<td id="'+id+'_title" valign="top">' + key + '</td>';
row += '<td>';
row += '<img src="'+poster.url+'" height="256">';
row += '<div>' + poster.width + 'x'+ poster.height + '</div>';
row += '</td>';
$.each(urls, function(i, poster) {
row += '<div style="float: left; height: 280px;padding-right: 4px;"><img src="'+poster.url+'" height="256">';
row += '<div>' + poster.width + 'x'+ poster.height + '</div></div>';
});
row += '</td>';
row += '</tr>';
$("#posters").append(row);
$('#'+id+'_title').click(function() {