jQuery是
$(function() {
// videoThumb is a css class found in the foreach list class="videoThumb". ytvideo is the holder ID set as div ID
$(".videoThumb4").on('click').ytplaylist({
holderId: 'ytvideo4',
html5: true,
playerWidth: '520',
autoPlay: false,
sliding: false,
listsliding: true,
social: true,
autoHide: false,
playfirst: 0,
playOnLoad: false,
modestbranding: true,
showInfo: false
});
});
主要的可点击链接是这个
<a class="videoThumb4" href="http://www.youtube.com/watch?v=' . $yValue['videoid'] . '">
' . $yValue['description'] . '
</a>
然后我希望这个链接像下面的按钮。具有相同的价值和功能。这是正确的按钮是
<input class="videoThumb4" onclick="ytplaylist();" type="button" name="previewSel" value="Preview" id="previewbut">
示例链接是YT