Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function youtubechannel_setvideo(href) {
- youtubeid = href.replace("#","");
- $('#youtubechannel-frame').attr('src','http://www.youtube.com/embed/' + youtubeid);
- }
- Drupal.behaviors.youtubechannel = function(context) {
- youtubechannel_setvideo($('#youtubechannel-list a:first').attr('href'));
- $('#youtubechannel-list a').click(function(e) {
- youtubechannel_setvideo($(this).attr('href'));
- $(this.attr('class','active');
- return false;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement