参照:YouTube Chromeless Video Player
寝てるとこ うろうろ<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Language" content="ja" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="imagetoolbar" content="no" /> <title>設置サンプル</title> <link rel="stylesheet" type="text/css" href="/content/lib/global.css" /> <!-- JS --> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" ></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> <script type="text/javascript" src="/content/lib/jquery/jquery.ytchromeless.js"></script> <script type="text/javascript"> $(function(){ $('a.video-link').ytchromeless(); }); </script> <!-- CSS --> <style type="text/css"> .video-player { margin:20px; width:300px; } .video-controls { background:#dedede; height:30px; margin:-4px 0 0; position:relative; width:300px; } .status { height:20px; left:30px; position:absolute; top:5px; width:115px; } .bar { background:#a4a4a4; height:10px; position:relative; top:5px; } .loaded { background:#bbb; height:10px; left:0; position:absolute; top:0; } .indicator { background:#212121; display:block; height:10px; left:0; position:absolute; top:0; width:20px; } .play-pause, .volume { background:url(/content/img/ajax/btn-controls.png) no-repeat; display:block; height:20px; overflow:hidden; position:absolute; text-indent:-9999px; top:5px; width:20px; } .play-pause { left:5px; } .playing { background-position:0 -20px; } .volume { background-position:0 -60px; right:110px; } .muted { background-position:0 -40px; } .view-youtube { color:#000; display:block; float:right; font-size:9px; line-height:30px; padding:0 5px 0 0; text-decoration:none; text-transform:uppercase; letter-spacing:-1px; } </style> <link rel="stylesheet" type="text/css" href="/common/css/example.css"></head> <body id='example3' class='example'><div class="ads" style="margin:32px auto;text-align:center;"></div><h1 class='h'><a href='/'>PHP & JavaScript Room</a> :: 設置サンプル</h1> <h3 class='h'>実行結果</h3> <h1>設置サンプル</h1> <p>参照:<a href='http://www.viget.com/inspire/youtube-chromeless-video-jquery-plugin/' target='_blank'>YouTube Chromeless Video Player</a></p> <!-- CODE --> <a class="video-link" href="http://www.youtube.com/watch?v=9YEEl52u8XE">寝てるとこ</a> <a class="video-link" href="http://www.youtube.com/watch?v=8e_wXc0m97w">うろうろ</a> <!-- / CODE --> </body> </html>