04 2013 档案
摘要:第一,你只需要这么做:function play(file) { var embed = document.createElement("embed"); embed.setAttribute('src', file); embed.setAttribute('hidden', true); embed.setAttribute('autostart', true); document.body.appendChild(embed);}第二,完成调用如, play("song.wav"); play(&qu
阅读全文
摘要:下面是一个利用HTML5, Jquery,给页面添加音效的小组件(只是添加音效,并不是播放器)。其实很简单,就是利用HTML5中的audio标签,播放声音。不过为了照顾IE 6-8,还是用上了bgsound。兼容所有主流浏览器(非主流不在考虑之列了)闲话少说,上代码:网上找了许久只有这篇文章靠谱,转自:http://www.warting.com/web/201110/34276.html
阅读全文
摘要:1、amCharts简介amCharts is a robust charting tool that will suit any dataviz need.Available JavaScript Charts contains all regular chart types,or JavaScript Stock Chart which adds advanced Stock chart type.Our charting solution include Column, Bar, Line, Area, Step, Smoothed line, Candlestick, OHLC, Pi
阅读全文