123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <html>
- <head>
- <meta name="viewport" content="width=device-width">
- <script src="/WeiXinAPP/lib/jquery-1.7.2.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- function GetQueryString(name) {
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
- var r = location.search.substr(1).match(reg);
-
- if (r != null) return unescape(decodeURI(r[2])); return null;
- }
- </script>
- </head>
- <body style="margin: 0px;">
- <audio style="margin-left: 30%; width: 360px;height: 48px;" controls="" autoplay="" name="media">
- <source src="" type="audio/mp3">
- <div id="myAudioDiv" style=" float: left; width: 360px;height: 48px;">
-
- </div>
- </audio>
- <script type="text/javascript">
- $(document).ready(function () {
- var audio = GetQueryString("audio");
- if (audio)
- {
- $("source").attr({
- src: audio
- });
- $("#myAudioDiv").html('<object style=" float: left; width: 350px;height: 45px;" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"><param name="AutoStart" value="1" /><param id="myaudio" name="Src" value="'+audio+'" /></object>');
-
- }
-
- });
- </script>
- </body>
- </html>
|