首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > HTML5的样品

HTML5的样品

  • 资源大小:355.50 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: html 样品

资 源 简 介

This project contains code samples of HTML5 and the 5th-element library. At the moment, the use of the following objects is shown: window.camera window.http window.audioRecorder window.speech window.imageKit The Camera object lets you take pictures with the built-in camera. Simply use the "capture" method: if (window.camera && window.imageKit) camera.capture(function(image) { if (typeof image != "number") { var newImage = imageKit.resize(image, 100, 100); var success = camera.send(newImage, "http://localhost:8080/test"); alert(success); } }); As can be seen, the ImageKit object can be used to manipulate images. The Speech object provides a method for speech synthesis: if (window.speech) { var result = speech.generate("excellent speech synthesis"); if
VIP VIP
0.200790s