Drupal 7. I'm trying to get this to work - seems simple enough. I added the .js file through my theme's .info file, and it's picking that up. I selected "Full HTML" as the format for my block, and pasted the code in (both the js and the ul). Just doesn't work.
http://www.geckonewmedia.com/blog/2009/8/14/jquery-youtube-playlist-plugin---youtubeplaylist
Any ideas? I suspect the js needs to be loaded somewhere else, that maybe it's being stripped out from the block code?
Per SoftArtisans (thanks) this is now what I have in the Body of my custom block (set to full HTML):
<script type="text/ecmascript">
(function ($) {
$("ul.aintv").ytplaylist({addThumbs:true, autoPlay: false, holderId: 'ytvideo'});
}(jQuery));
</script>
<div class="yt_holder">
<div id="ytvideo"></div>
<ul class="aintv">
<li><a href="http://www.youtube.com/watch?v=QBBWKvY-VDc">Video 1</a></li>
<li><a href="http://www.youtube.com/watch?v=ZXMQqLnRhRI">Video 2</a></li>
<li><a href="http://www.youtube.com/watch?v=Wvo-g_JvURI">Video 3</a></li>
</ul>
</div>
It's still not working. I verified the other .js file is being picked up in the source.
(jQuery)
part at the end of the function so you aren't actually aliasing$
tojQuery
at this point