| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>听取录音</title>
- <link href="/Content/layui/css/layui.css" rel="stylesheet" />
- <link href="/Content/css/public.css" rel="stylesheet" />
- <link href="/Content/layui/css/modules/layui-icon-extend/iconfont.css" type="text/css" rel=" stylesheet" />
- <link href="/Content/css/font-awesome/css/font-awesome.min.css" type="text/css" rel=" stylesheet" />
- <script src="/Content/js/jquery-1.8.3.min.js"></script>
- <script type="text/javascript" src="/Content/layui/layui.js"></script>
- <script type="text/javascript">
- function LoadList() {
- //window.open(document.getElementById("WindowsMediaPlayer1").URL);
- document.getElementById("frameTelList").src = "@Model.downpath";
- }
- function PlayUrl(url) {
- document.getElementById("divPlist").innerHTML = "<embed id=\"embedPlay\" type=\"audio/mp3\" src=\"" + url + "\" autostart=\"true\" loop=\"false\" />";
- }
- function OpenPlayUrl(url) {
- window.open(url, "_blank", "scrollbars=yes,resizable=1,modal=false,alwaysRaised=yes");
- }
- function Init() {
- var strpath = document.getElementById("txtPath").value;
- if(strpath){
- var arr = strpath.split('^');
- var html = "点击播放<br />";
- for (var i = 0; i < arr.length; i++) {
- var c = i + 1;
- if (i == 0) {
- PlayUrl(arr[i]);
- }
- html += "<span onclick='OpenPlayUrl(\"" + arr[i]+"\")'>"+c + "、" + arr[i]+"</span><br />";
- }
- } else{
- html = "暂无留言"
- $("#embedText").show()
- $("#embedPlay").hide()
- }
-
- document.getElementById("divFileList").innerHTML = html;
- }
- </script>
- </head>
- <body onload="Init();" class="childrenBody">
- <div class="layui-fluid">
- <div class=" layui-col-space15">
- <div class="layui-card">
- <div class="layui-card-body">
- <div class="layui-row layui-col-space15 searchfilter">
- <div id="divPlist" class="layui-col-md12">
- <embed id="embedPlay" type="audio/mp3" src="" autostart="true" loop="false" />
- <div id="embedText" style="display: none; height:120px; padding:20px">无留言</div>
- </div>
- <div class="layui-col-md12">
- <input id="txtPath" value="@Model.downpath" style="display:none;" />
- <div id="divFileList">@Model.downpath</div>
- </div>
- </div>
- </div>
- </div>
- <div class="layui-card layui-form">
- <div class="layui-card-body layui-row layui-col-space10" style="text-align:center;">
- @* <a href="@Model.downpath" download="w3logo">下载</a> *@
- <button class="layui-btn" data-type="reload" onclick="LoadList();">
- <i class="layui-icon"> 下载</i>
- </button>
- <iframe id="frameTelList" src="" width="0" height="0" style="display:none;" frameborder="0"></iframe>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
|