javascript - Youtube videos not working in jquery -



javascript - Youtube videos not working in jquery -

i need display youtube videos when click image, displays youtube videos new popup.

here code:

<html> <head> <meta content="text/html; charset=utf-8" http-equiv="content-type"> <title> - jsfiddle demo</title> <script src="jquery-1.9.1.js" type="text/javascript"></script> <script src="jquery-ui.js" type="text/javascript"> </script> <link href="jquery-ui.css" type="text/css" rel="stylesheet"> <script src="youtubepopup.min.js" type="text/javascript"> </script> <script type="text/javascript"> $(function(){ $("a.youtube").youtubepopup({ autoplay: 0 }); }); </script> </head> <body> <a class="youtube" href="http://www.youtube.com/watch?v=4eyspiz2fju" title="jquery youtube popup player plugin test">test me</a> </body> </html>

when click image didn't alter anything.

can help me?

thank you!!!

try

<html> <head> <meta content="text/html; charset=utf-8" http-equiv="content-type"> <title> - jsfiddle demo</title> <script src="//code.jquery.com/jquery-1.9.1.js" type="text/javascript"></script> <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js" type="text/javascript"> </script> <link href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" type="text/css" rel="stylesheet"> <script src="http://lab.abhinayrathore.com/jquery_youtube/jquery.youtubepopup.min.js" type="text/javascript"> </script> <script type="text/javascript"> $(function(){ $("img.youtube").youtubepopup({ idattribute: 'id' ,'clickoutsideclose': true,}); }); </script> </head> <body> <img id="4eyspiz2fju" class="youtube" title="..." src="http://img.youtube.com/vi/4eyspiz2fju/1.jpg"> </body> </html>

demo

javascript jquery youtube

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -