<html>
<head>
<style type="text/css">
body { background-color: black; }
a:hover { text-decoration: none; }
a:link { color: black; }
a:visited { color: black; }
#main {
position: absolute;
left: 0%;
top: 0%;
width: 100%;
height: 100%;
padding: 0%;
z-index: 10;
}
</style>
</head>
<body id="body">
<script type="text/javascript">
// Nominal original size. If the embed is smaller than this, the play and logo
// images get scaled appropriately. These are actually 3/4 of the sizes suggested
// by youtube, so the images don't get too tiny.
defHeight = 258;
defWidth = 318;
function setup() {
var width = document.body.clientWidth;
var height = document.body.clientHeight;
var canvas = document.getElementById("canvas");
// Resize the canvas to the right size
canvas.width = width;
canvas.height = height;
var ctx = canvas.getContext('2d');
var loadcount = 0;
function doload() {
if (++loadcount == 3) {
// All images are loaded, so display them.
// (Note that the images are loaded from javascript, so might load
// after document.onload fires)
ctx.drawImage(background, 0, 0, width, height);
playWidth = play.width;
playHeight = play.height;
logoWidth = logo.width;
logoHeight = logo.height;
var ratio = 1;
// If the page is smaller than it 'should' be in either dimension
// we scale the play button and logo according to the dimension that
// has been shrunk the most.
if (width / height > defWidth / defHeight && height < defHeight) {
ratio = height / defHeight;
} else if (width / height < defWidth / defHeight && width < defWidth) {
ratio = width / defWidth;
}
playWidth *= ratio;
playHeight *= ratio;
logoWidth *= ratio;
logoHeight *= ratio;
playLeft = (width - playWidth) / 2;
playTop = (height - playHeight) / 2;
ctx.drawImage(play, playLeft, playTop, playWidth, playHeight);
ctx.globalAlpha = 0.7
ctx.drawImage(logo, width - logoWidth, height - logoHeight, logoWidth, logoHeight);
// To make it slightly easier to hit, the click target is twice the width/height of the unscaled play button
targetLeft = width / 2 - play.width;
targetRight = width / 2 + play.width;
targetTop = height / 2 - play.height;
targetBottom = height / 2 + play.height;
canvas.addEventListener("click", function(e) {
var posx = e.clientX-canvas.offsetLeft;
var posy = e.clientY-canvas.offsetTop;
if (posx >= targetLeft && posx <= targetRight &&
posy >= targetTop && posy <= targetBottom) {
top.location.href = "vnd.youtube:VIDEO_ID";
}
}, false);
}
}
var background = new Image();
background.onload = doload;
background.src = "http://img.youtube.com/vi/VIDEO_ID/0.jpg";
play = new Image();
play.onload = doload;
play.src = "play.png";
logo = new Image();
logo.onload = doload;
logo.src = "youtube.png";
}
window.onload = setup;
</script>
<div id="main">
<canvas id="canvas"></canvas>
</div>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
Apk_Manager_4.9
共2000个文件
png:1525个
xml:1019个
html:93个
5星 · 超过95%的资源 需积分: 35 100 下载量 131 浏览量
2011-09-10
13:45:34
上传
评论 2
收藏 10.3MB RAR 举报
温馨提示
Apk_Manager_4.9 支持对APK文件的编译和反编译,非常方便,还有更多额外强大的功能
资源推荐
资源详情
资源评论
收起资源包目录
Apk_Manager_4.9 (2000个子文件)
resources.arsc 3.54MB
Script.bat 19KB
signer.bat 499B
libgomp-1.dll 278KB
AdbWinApi.dll 94KB
mgwz.dll 85KB
pthreadgc2.dll 70KB
zlib1.dll 68KB
AdbWinUsbApi.dll 60KB
aapt.exe 5.19MB
adb.exe 2.41MB
sox.exe 2.37MB
zipalign.exe 614KB
7za.exe 524KB
roptipng.exe 248KB
youtube.html 4KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1KB
nodomain.html 1000B
nodomain.html 1000B
nodomain.html 999B
nodomain.html 999B
nodomain.html 996B
nodomain.html 996B
nodomain.html 988B
nodomain.html 988B
nodomain.html 986B
nodomain.html 986B
nodomain.html 976B
nodomain.html 976B
nodomain.html 968B
nodomain.html 968B
nodomain.html 928B
nodomain.html 928B
nodomain.html 917B
nodomain.html 917B
nodomain.html 907B
nodomain.html 907B
nodomain.html 865B
nodomain.html 865B
nodomain.html 859B
nodomain.html 859B
nodomain.html 855B
nodomain.html 855B
nodomain.html 829B
nodomain.html 829B
loaderror.html 705B
loaderror.html 705B
loaderror.html 686B
loaderror.html 686B
loaderror.html 682B
loaderror.html 682B
loaderror.html 678B
loaderror.html 678B
loaderror.html 677B
loaderror.html 677B
loaderror.html 676B
loaderror.html 676B
loaderror.html 659B
loaderror.html 659B
loaderror.html 656B
loaderror.html 656B
loaderror.html 654B
loaderror.html 654B
loaderror.html 648B
loaderror.html 648B
loaderror.html 635B
loaderror.html 635B
loaderror.html 633B
loaderror.html 633B
loaderror.html 628B
loaderror.html 628B
loaderror.html 628B
loaderror.html 628B
loaderror.html 622B
loaderror.html 622B
loaderror.html 613B
loaderror.html 613B
loaderror.html 612B
loaderror.html 612B
loaderror.html 607B
loaderror.html 607B
loaderror.html 605B
loaderror.html 605B
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
geliner
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页