このコードに追加して、説明、タイトル、ビデオをiframeに取り込むにはどうすればよいですか?
JavaScript:
$(function() {
var htmlString = "<ul>";
$.getJSON('http://gdata.youtube.com/feeds/users/(MY USER)/uploads?alt=json-in-script&callback=?&max-results=3', function(data) {
$.each(data.feed.entry, function(i, item) {
var title = item['title']['$t'];
var video = item['id']['$t'];
video_link = video.replace('http://gdata.youtube.com/feeds/videos/','http://www.youtube.com/watch?v=');
video_object = video.replace('http://gdata.youtube.com/feeds/videos/','http://www.youtube.com/v/');
htmlString +='<li><p id="video_title">' + title + '</p><object width="600" height="450"><param name="movie" value="' + video_object + '"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="' + video_object + '" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="600" height="450"><noembed>Browser does not support video</noembed></embed></object></li>';
});
$('#videos').html(htmlString + "</ul>");
});
HTML:
<div id="videos"></div>