Skip to content

Instantly share code, notes, and snippets.

@daijinload
Created December 5, 2014 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daijinload/d6679e1a382358e12622 to your computer and use it in GitHub Desktop.
Save daijinload/d6679e1a382358e12622 to your computer and use it in GitHub Desktop.
youtubeとcolorboxのサンプル
<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&amp;autoplay=1&amp;wmode=transparent&amp;vq=highres
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment