Created
December 5, 2014 06:55
-
-
Save daijinload/d6679e1a382358e12622 to your computer and use it in GitHub Desktop.
youtubeとcolorboxのサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="https://code.google.com/p/pwi/source/browse/trunk/jquery.pwi/js/jquery.colorbox/colorbox.css" /> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script src="https://code.google.com/p/pwi/source/browse/trunk/jquery.pwi/js/jquery.colorbox/jquery.colorbox-min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
$(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:390}); | |
$("#click").click(function(){ | |
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here."); | |
return false; | |
}); | |
}); | |
</script> | |
<body> | |
<p><a class='youtube' href="//www.youtube-nocookie.com/embed/xxxxxx?rel=0&autoplay=1&wmode=transparent&vq=highres | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment