?!DOCTYPE html> 安全视频-易安|?/title> <!--安全视频Ud?-> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://apps.bdimg.com/libs/jquerymobile/1.4.5/jquery.mobile-1.4.5.min.css"> <style type="text/css"> #ul_jptj li { list-style:none; } </style> <script src="http://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script> <script src="http://apps.bdimg.com/libs/jquerymobile/1.4.5/jquery.mobile-1.4.5.min.js"></script> <script type="text/javascript"> function GetArgsFromHref(sHref, sArgName) { var args = sHref.split("?"); var retval = ""; if (args[0] == sHref) /*参数为空*/ { return retval; /*无需做Q何处?/ } var str = args[1]; args = str.split("&"); for (var i = 0; i < args.length; i++) { str = args[i]; var arg = str.split("="); if (arg.length <= 1) continue; if (arg[0] == sArgName) retval = arg[1]; } return retval; } $(document).ready(function () { $.getJSON("http://yacustom.esafety.cn/handler/Hdler_gettop10_mp4.ashx", function (jsondata) { var obj = jsondata; if (obj == "0") { $('#div_vd').html("获取视频时发生了异常Q请查!"); return; } $('#ul_jptj').empty(); var str_xgtj = ""; var str_vd = ""; var gid = GetArgsFromHref(window.location.href, "gid"); var bvar = false;//是否存在要查扄gid var firstvurl = ""; var firsttitle = ""; $.each(obj.sjmp4, function (i, item) { if (i == 0) { firstvurl = item.downloadurl; firsttitle = item.title; } if (bvar==false && gid == item.generalid) { str_vd = "<h4>" + item.title + "</h4><video id='media' width='290' height='240' controls='controls' autoplay='autoplay'><source src=" + item.downloadurl + "></video>"; bvar = true; } else { str_xgtj += "<li><div class='ui-block-a'><a href='http://www.enbhyf.live/video/spsjb.htm?gid=" + item.generalid + "' target='_blank'><img width='100' height='80' src=" + item.cover + " alt=" + item.title + "/></a></div><div class='ui-block-b' style='font-size:14px;WORD-BREAK: break-all; WORD-WRAP: break-word;width:130px;'><a href='http://www.enbhyf.live/video/spsjb.htm?gid=" + item.generalid + "' target='_blank'>" + item.title + "<br/>" + item.inputtime + "</a></div></li>"; } }); if (bvar == false) { str_vd = "<h4>" + firsttitle + "</h4><video id='media' width='290' height='240' controls='controls' autoplay='autoplay'><source src=" + firstvurl + "></video>"; } $('#div_vd').html(str_vd); $('#ul_jptj').html(str_xgtj); }); }); </script> <meta http-equiv="Cache-Control" content="no-transform" /> <meta http-equiv="Cache-Control" content="no-siteapp" /> </head> <body> <div data-role="page" id="pageone"> <div data-role="header"> <h1>易安视频</h1> </div> <div data-role="content"> <div class="ui-grid-solo"> <div class="ui-block-a" id="div_vd"> </div> </div> <!--下面是相x?-> <h3>相关推荐</h3> <div class="ui-grid-a" id="div_xgtj"> <ul id="ul_jptj"></ul> </div> </div> <div data-role="footer"> <h1>感谢收看!</h1> </div> </div> <a href="http://www.enbhyf.live/"><span class="STYLE1">18ѡ7</span></a> <script>(function(){ var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743":"https://jspassport.ssl.qhimg.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body> </html>