相信80后之前的人都知道磁带,它是一个时代的符号,但是现在已经被MP3和电脑给完全替代了。而今天我要给大家推荐的就是一款模拟磁带的html5播放器,能用到这款插件真的是挺让人兴奋的。相信这一定会勾起你很多美好的回忆。
1、引入以下的js和css文件
1 2 3 4 5 6 7 8 9 | < link rel = "stylesheet" type = "text/css" href = "css/demo.css" > < link rel = "stylesheet" type = "text/css" href = "css/style.css" > < link rel = "stylesheet" type = "text/css" href = "css/knobKnob.css" > < script type = "text/javascript" src = "js/modernizr.custom.69142.js" ></ script > < script src = "js/transform.js" ></ script > < script src = "js/knobKnob.jquery.js" ></ script > < script type = "text/javascript" src = "js/jquery.cassette.js" ></ script > |
2、在head标签中加入以下js代码
1 2 3 4 5 | < script type = "text/javascript" > $(function() { $('#vc-container').cassette(); }); </ script > |
3、在body标签中加入以下格式的html代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | < div id = "vc-container" class = "vc-container" > < div class = "vc-tape-wrapper" > < div class = "vc-tape" > < div class = "vc-tape-back" > < div class = "vc-tape-wheel vc-tape-wheel-left" > < div > </ div > </ div > < div class = "vc-tape-wheel vc-tape-wheel-right" > < div > </ div > </ div > </ div > < div class = "vc-tape-front vc-tape-side-a" > < span >A</ span > </ div > < div class = "vc-tape-front vc-tape-side-b" > < span >B</ span > </ div > </ div > </ div > < div class = "vc-loader" > </ div > </ div > |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com