0

このJavaScriptを使用して、自分のページにYouTubeの検索結果を表示しています。

これは、タイトル、説明などを表示するコードのセクションです...

li.innerHTML = '<table cellspacing="0" cellpadding="0" border="0">
<tr><td valign="top" rowspan="2"></td>
<td valign="top"><h3>'+entry.title+'</h3><span>'+this.formatDescription(entry.description)+'</span></td>
<td valign="top" style="width: 150px" class="meta">
<div>From: <a href="http://www.youtube.com/profile?user='+entry.uploader+'">'+entry.uploader+'</a></div><div>Views: '+entry.viewCount+'</div><div>'+this.formatRating(entry.rating,entry.ratingCount)+' ratings</div>Time: '+this.formatDuration(entry.duration)+'</td></tr></table>';

どうすればJavaScriptからまたは何か他のものを追加'+ytPlayerParams.videoId+''+data.id+'て、YouTubeビデオIDを表示することができますかhttp://www.youtube.com/embed/...

4

1 に答える 1