Team:TU Delft/fb photodisplay

From 2010.igem.org

(Difference between revisions)
(New page: <noinclude> This is a template page that lists all pictures from a facebook album. Either use this template or give credits the TU Delft team! If you have questions, contact me: [[User:j...)
Line 56: Line 56:
   }
   }
-
   var html = "<ul>";
+
   var html = "";
   for(j=0;j<response.data.length;j++) {
   for(j=0;j<response.data.length;j++) {
     var item = response.data[j];
     var item = response.data[j];
     var imgSmall = item.picture;
     var imgSmall = item.picture;
-
     html += '<li><a href="'+ item.link +'"><img class="</html>{{{css|fb_photo135033906513449}}}<html>" src=\"'+imgSmall+'"></a></li>';
+
     html += '<a href="'+ item.link +'"><img class="</html>{{{css|fb_photo135033906513449}}}<html>" src=\"'+imgSmall+'"></a>';
   }
   }
-
  html += "</ul>";
 
   $("#photobox" + albumID).html(html);
   $("#photobox" + albumID).html(html);
}
}

Revision as of 10:01, 28 July 2010


This is a template page that lists all pictures from a facebook album.

Either use this template or give credits the TU Delft team! If you have questions, contact me: Jelmer Cnossen


{{:Team:TU_Delft/fb_photoscroll|album=ID|animate=Animate?|count=Number of images|css=CSS class}}
Parameters: 
album: Facebook album ID
count: Number of pictures to display
css: CSS class for each image


loading facebook photo's...