2016年3月30日 星期三

Stitch say love

變數>>迴圈>>判斷 Stitch say love


點擊2次變換圖片並顯示提示

按鍵切換圖片

判斷設定 Stitch say hi

if    else

2016年3月23日 星期三

= =為什麼案件不能弄

抱歉!瀏覽器不支援HTML5 canvas。
No canvas support in this browser

運用Google map的內建程式
點擊後出現座標:


定位座標並顯示座標位址

2016年3月16日 星期三

tast 總和

Your browser does not support the canvas element.

改變畫布

// 取得 Canvas 元素
var c=document.getElementById("myCanvas");
// 建立繪製物件
var ctx=c.getContext("2d");
// 設定顏色
ctx.fillStyle="#FF0000";
// 清空現行路徑,開始新路徑。
ctx.beginPath();
// 繪製圓形 參數依序為 x、y、半徑r、起始角度、結束角度、順時針繪製
ctx.arc(70, 18, 15, 0, Math.PI * 2, true);
// 封閉路徑
ctx.closePath();
// 執行繪製(填滿)
ctx.fill();


 一開始的圖換一張新的在畫上一個圓
Your browser does not support the canvas element.

2016年3月9日 星期三

三種指令 播放暫停/拖移/快慢

<button onclick="playVid()" type="button">播放</button>
<button onclick="pauseVid()" type="button">暂停</button>
<br />
<br />


拖移
<div id="div2" ondrop="drop(event)" ondragover="allowDrop(event)"></div>

影片快速慢速

影片放速度

指示音頻/視頻的默認播放速度。
例值:
  • 1.0 正常速度
  • 0.5 半速(更慢)
  • 2.0 倍速(更快)
  • -1.0 向後,正常速度
  • -0.5 向後,半速

function setPlaySpeed()
  { 
  myVid.defaultPlaybackRate=0.25;
  myVid.load();
  } 


2016年3月2日 星期三

tast.2-9453<撥放>



<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>tast9453</title>
</head>
<body>

<iframe width="560" height="315" src="https://www.youtube.com/embed/6P8_hBRYxjw" frameborder="0" allowfullscreen></iframe>

</body>
</html>


測試播放 <崁入語法>
youtube > 分享 > 語法
   
tast9453

tast bar