该问题已被锁定!
7
关注
4771
浏览

小改了一下,网站视频手机播放

AI智能回复搜索中,请稍后...

为什么被折叠? 0 个回复被折叠
sinowlc 中级会员 用户来自于: 江苏省南京市
2017-02-03 13:55
好像改成video标签也可以

NBA菜鸟 初级会员 用户来自于: 广西河池市
2017-02-01 21:38
我把所有的VideoUrlParser.php 里返回的embed改成了 iframe 在手机端还是不成功呢?
楼主能发下 具体如何实现吗?能把改好的代码发上来么?谢谢


 * @license PHP Version 3.0 {@link http://www.php.net/license/3_0.txt}
 *
 * Usage
 * require_once "VideoUrlParser.class.php";
 * $urls = "http://v.youku.com/v_show/id_XMjI4MDM4NDc2.html";
 * $urls = "http://www.tudou.com/playlist/p/l13087099.html";
 * $urls = "http://www.tudou.com/programs/view/ufg-A3tlcxk/";
 * $urls = "http://v.ku6.com/special/show_4926690/Klze2mhMeSK6g05X.html";
 * $urls = "http://www.56.com/u68/v_NjI2NTkxMzc.html";
 * $urls = "http://www.letv.com/ptv/vplay/1168109.html";
 * $urls = "http://video.sina.com.cn/v/b/46909166-1290055681.html";
 * $urls = "http://www.youtube.com/watch?v=n6NLtldvGCk";
 *
 * foreach($urls as $url){
 * $info = VideoUrlParser::parse($url);
 * //var_dump($info);
 * echo "{$info['title']}";
 * echo "
"; * echo $info['object']; * echo "
"; * } * * * * // 优酷 * http://v.youku.com/v_show/id_XMjU0NjY4OTEy.html * * * // 土豆 * http://www.tudou.com/playlist/p/a65929.html?iid=74905844 * * * // 56 * http://www.56.com/u98/v_NTkyODY2NTU.html * * * // Youtube * http://www.youtube.com/watch?v=n6NLtldvGCk * */ class Services_VideoUrlParser { const USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7'; const CHECK_URL_VALID = "/(youku\.com|tudou\.com|56\.com|(my\.)?tv\.sohu\.com|v\.qq\.com|youtube\.com)/"; /** * parse * * @param string $url * @static * @access public * @return void */ static public function parse($url = '') { $lowerurl = strtolower($url); if (strstr($lowerurl, '.swf')) { return '

'; } preg_match(self::CHECK_URL_VALID, $lowerurl, $matches); if (!$matches) { return '

'; } if (!$data = AWS_APP::cache()->get('video_parse_' . md5($url))) { switch ($matches[1]) { case 'youku.com' : $data = self::_parseYouku($url); break; case 'tudou.com' : $data = self::_parseTudou($url); break; case '56.com' : $data = self::_parse56($url); break; case 'my.tv.sohu.com' : case 'tv.sohu.com' : case 'sohu.com' : $data = self::_parseSohu($url); break; case 'v.qq.com' : $data = self::_parseQq($url); break; case 'youtube.com' : $data = self::_parseYoutube($url); break; default : return $url; } if ($data) { AWS_APP::cache()->set('video_parse_' . md5($url), $data, 3600, 'video_parser'); } } if ($data) { if ($data['iframe']) { return '

'; } else { return '

'; } } return '

'; } /** * 腾讯视频 * http://v.qq.com/cover/o/o9tab7nuu0q3esh.html?vid=97abu74o4w3_0 * http://v.qq.com/play/97abu74o4w3.html * http://v.qq.com/cover/d/dtdqyd8g7xvoj0o.html * http://v.qq.com/cover/d/dtdqyd8g7xvoj0o/9SfqULsrtSb.html * http://imgcache.qq.com/tencentvideo_v1/player/TencentPlayer.swf?_v=20110829&vid=97abu74o4w3&autoplay=1&list=2&showcfg=1&tpid=23&title=%E7%AC%AC%E4%B8%80%E7%8E%B0%E5%9C%BA&adplay=1&cid=o9tab7nuu0q3esh */ static private function _parseQq($url) { $html = self::_fget($url); preg_match('/vid:"(\w+)"/i', $html, $matches); if (!$vid = $matches[1]) { return false; } preg_match('/

/i', $html, $matches); $data['title'] = $matches[1]; preg_match('/pic :"(.+)"/i', $html, $matches); $data['img'] = $matches[1]; $data['url'] = $url; $data['swf'] = 'http://static.video.qq.com/TPout.swf?vid=' . $vid . '&auto=0'; return $data; } /** * 优酷网 * http://v.youku.com/v_show/id_XMjI4MDM4NDc2.html * http://player.youku.com/player.php/sid/XMjU0NjI2Njg4/v.swf */ static private function _parseYouku($url) { preg_match("#id\_(\w+(?:==)?)#", $url, $matches); if (empty($matches)) { preg_match("#v_playlist\/#", $url, $mat); if (!$mat) { return false; } $html = self::_fget($url); preg_match("#videoId2\s*=\s*\'(\w+)\'#", $html, $matches); if (!$matches) { return false; } } return array( 'url' => $url, 'iframe' => "http://player.youku.com/player.php/sid/{$matches[1]}/v.swf" ); $link = "http://v.youku.com/player/getPlayList/VideoIDS/{$matches[1]}/timezone/+08/version/5/source/out?password=&ran=2513&n=3"; $retval = self::_cget($link); if ($retval) { $json = json_decode($retval, true); $data['img'] = $json['data'][0]['logo']; $data['title'] = $json['data'][0]['title']; $data['url'] = $url; $data['iframe'] = "http://player.youku.com/iframe/{$matches[1]}"; return $data; } else { return false; } } /** * 土豆网 * http://www.tudou.com/programs/view/Wtt3FjiDxEE/ * http://www.tudou.com/v/Wtt3FjiDxEE/v.swf * * http://www.tudou.com/playlist/p/a65718.html?iid=74909603 * http://www.tudou.com/l/G5BzgI4lAb8/&iid=74909603/v.swf */ static private function _parseTudou($url) { $html = self::_fget($url); preg_match('/icode: \'(\w+)\'/i', $html, $matches); $icode = $matches[1]; if (!$icode) return false; preg_match('/kw: \'(.+)\'/i', $html, $matches); $data['title'] = $matches[1]; preg_match('/pic: \'(.+)\'/i', $html, $matches); $data['img'] = $matches[1]; $data['url'] = $url; $data['swf'] = 'http://www.tudou.com/v/' . $icode . '/'; return $data; } /** * 56网 * http://www.56.com/u73/v_NTkzMDcwNDY.html * http://player.56.com/v_NTkzMDcwNDY.swf */ static private function _parse56($url) { preg_match("#/v_(\w+)\.html#", $url, $matches); if (empty($matches)) { return false; } $link = "http://vxml.56.com/json/{$matches[1]}/?src=out"; $retval = self::_cget($link); if ($retval) { $json = json_decode($retval, true); $data['img'] = $json['info']['img']; $data['title'] = $json['info']['Subject']; $data['url'] = $url; $data['swf'] = "http://player.56.com/v_{$matches[1]}.swf"; return $data; } else { return false; } } // 搜狐TV http://my.tv.sohu.com/u/vw/5101536 static private function _parseSohu($url) { $html = iconv('GBK', 'UTF-8', self::_fget($url)); preg_match_all('##i', $html, $matches); $data['img'] = $matches[2][2]; $data['title'] = $matches[2][1]; $data['url'] = $url; $data['swf'] = $matches[2][0]; return $data; } static private function _parseYoutube($url) { preg_match("#\?v=([0-9a-zA-Z_\-]+)#", $url, $matches); if (!$matches[1]) { return false; } //$contents = self::_fget($url); //preg_match_all("#(<span>[</span>^<]+)<\/title>#", $contents, $contentMatches); $data<span>[</span>'img'] = "http://img.youtube.com/vi/{$matches<span>[</span>1]}/0.jpg"; //$data<span>[</span>'title'] = $contentMatches<span>[</span>1]<span>[</span>0]; $data<span>[</span>'url'] = $url; $data<span>[</span>'iframe'] = "http://www.youtube-nocookie.com/iframe/{$matches<span>[</span>1]}"; return $data; } /* * 通过 file_get_contents 获取内容 */ static private function _fget($url = '') { if (!$url) { return false; } $html = self::_vita_get_url_content($url); // 判断是否gzip压缩 if ($dehtml = self::_gzdecode($html)) { return $dehtml; } else { return $html; } } /* * 通过 fsockopen 获取内容 */ static private function _fsget($path = '/', $host = '', $user_agent = '') { if (!$path || !$host) { return false; } $user_agent = $user_agent ? $user_agent : self::USER_AGENT; $out = <<<HEADER GET $path HTTP/1.1 Host: $host User-Agent: $user_agent Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: zh-cn,zh;q=0.5 Accept-Charset: GB2312,utf-8;q=0.7,*;q=0.7\r\n\r\n HEADER; $fp = @fsockopen($host, 80, $errno, $errstr, 10); if (!$fp) return false; if (!fputs($fp, $out)) return false; while (!feof($fp)) { $html .= fgets($fp, 1024); } fclose($fp); // 判断是否gzip压缩 if ($dehtml = self::_gzdecode($html)) return $dehtml; else return $html; } /* * 通过 curl 获取内容 */ static private function _cget($url = '', $user_agent = '') { if (!$url) { return; } $user_agent = $user_agent ? $user_agent : self::USER_AGENT; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); if (strlen($user_agent)) curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); ob_start(); curl_exec($ch); $html = ob_get_contents(); ob_end_clean(); if (curl_errno($ch)) { curl_close($ch); return false; } curl_close($ch); if (!is_string($html) || !strlen($html)) { return false; } return $html; // 判断是否gzip压缩 if ($dehtml = self::_gzdecode($html)) return $dehtml; else return $html; } static private function _vita_get_url_content($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); $file_contents = curl_exec($ch); curl_close($ch); return $file_contents; } static private function _gzdecode($data) { $len = strlen($data); if ($len < 18 || strcmp(substr($data, 0, 2), "\x1f\x8b")) { return null; // Not GZIP format (See RFC 1952) } $method = ord(substr($data, 2, 1)); // Compression method $flags = ord(substr($data, 3, 1)); // Flags if ($flags & 31 != $flags) { // Reserved bits are set -- NOT ALLOWED by RFC 1952 return null; } // NOTE: $mtime may be negative (PHP integer limitations) $mtime = unpack("V", substr($data, 4, 4)); $mtime = $mtime<span>[</span>1]; $xfl = substr($data, 8, 1); $os = substr($data, 8, 1); $headerlen = 10; $extralen = 0; $extra = ""; if ($flags & 4) { // 2-byte length prefixed EXTRA data in header if ($len - $headerlen - 2 < 8) { return false; // Invalid format } $extralen = unpack("v", substr($data, 8, 2)); $extralen = $extralen<span>[</span>1]; if ($len - $headerlen - 2 - $extralen < 8) { return false; // Invalid format } $extra = substr($data, 10, $extralen); $headerlen += 2 + $extralen; } $filenamelen = 0; $filename = ""; if ($flags & 8) { // C-style string file NAME data in header if ($len - $headerlen - 1 < 8) { return false; // Invalid format } $filenamelen = strpos(substr($data, 8 + $extralen), chr(0)); if ($filenamelen === false || $len - $headerlen - $filenamelen - 1 < 8) { return false; // Invalid format } $filename = substr($data, $headerlen, $filenamelen); $headerlen += $filenamelen + 1; } $commentlen = 0; $comment = ""; if ($flags & 16) { // C-style string COMMENT data in header if ($len - $headerlen - 1 < 8) { return false; // Invalid format } $commentlen = strpos(substr($data, 8 + $extralen + $filenamelen), chr(0)); if ($commentlen === false || $len - $headerlen - $commentlen - 1 < 8) { return false; // Invalid header format } $comment = substr($data, $headerlen, $commentlen); $headerlen += $commentlen + 1; } $headercrc = ""; if ($flags & 1) { // 2-bytes (lowest order) of CRC32 on header present if ($len - $headerlen - 2 < 8) { return false; // Invalid format } $calccrc = crc32(substr($data, 0, $headerlen)) & 0xffff; $headercrc = unpack("v", substr($data, $headerlen, 2)); $headercrc = $headercrc<span>[</span>1]; if ($headercrc != $calccrc) { return false; // Bad header CRC } $headerlen += 2; } // GZIP FOOTER - These be negative due to PHP's limitations $datacrc = unpack("V", substr($data, -8, 4)); $datacrc = $datacrc<span>[</span>1]; $isize = unpack("V", substr($data, -4)); $isize = $isize<span>[</span>1]; // Perform the decompression: $bodylen = $len - $headerlen - 8; if ($bodylen < 1) { // This should never happen - IMPLEMENTATION BUG! return null; } $body = substr($data, $headerlen, $bodylen); $data = ""; if ($bodylen > 0) { switch ($method) { case 8 : // Currently the only supported compression method: $data = gzinflate($body); break; default : // Unknown compression method return false; } } else { //... } if ($isize != strlen($data) || crc32($data) != $datacrc) { // Bad format! Length or CRC doesn't match! return false; } return $data; } } </pre> </div> <div class="aw-answer-show aw-alpha-hidden" style="display: none"> <span style="cursor: pointer;"><i class="icon-chevrons-down"></i> 阅读全文</span> </div> <div class="aw-answer-hide aw-alpha-hidden mt-3" style="display: none;background:none;position: inherit;height: auto"> <span style="position: unset;float: left;cursor: pointer"><i class="icon-chevrons-up"></i> 收起全文</span> </div> </div> <!--回答操作--> <div class="answer-btn-actions mt-3"> <label class="mr-1"> <a href="javascript:;" class="aw-ajax-agree " onclick="AWS.User.agree(this,'answer','48346');"> <i class="icon-thumb_up"></i> 赞同 <span> 0</span> </a> </label> <label class="mr-3 "> <a href="javascript:;" class="aw-ajax-against " onclick="AWS.User.against(this,'answer','48346');"> <i class="icon-thumb_down"></i> </a> </label> <label class="mr-3"> <a href="javascript:;" class="answerCommentBtn" data-url="/comment/answer.html?id=48346" data-id="48346"> <i class="icon-chat"></i> <span class="answer-comment-count48346">0</span>评论 </a> </label> <div class="dropdown d-inline-block mr-3"> <a href="javascript:;" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-fw fa-share-alt font-9 d-sm-inline-block"></i> 分享 </a> <div class="dropdown-menu p-0 border-0 font-size-sm"> <div class="text-center d-block py-2" style="min-width: 100px"> <a href="javascript:;" class="dropdown-item aw-clipboard" data-clipboard-text="http://wenda.isimpo.com/question/31123-48346.html"><i class="icon-link"></i> 复制链接</a> <a href="javascript:;" onclick="AWS.User.share('小改了一下,网站视频手机播放','http://wenda.isimpo.com/question/31123-48346.html','','weibo')" class="dropdown-item "><i class="fab fa-weibo text-warning"></i> 新浪微博</a> <a href="javascript:;" onclick="AWS.User.share('小改了一下,网站视频手机播放','http://wenda.isimpo.com/question/31123-48346.html','','qzone')" class="dropdown-item "><i class="fab fa-qq text-primary"></i> 腾讯空间</a> <div class="aw-qrcode-container" data-share="http://wenda.isimpo.com/question/31123-48346.html"> <a href="javascript:;" class="dropdown-item "><i class="fab fa-weixin text-success"></i> 微信扫一扫</a> <div class="aw-qrcode text-center py-2"></div> </div> </div> </div> </div> <!--问题回答操作栏钩子--> <div class="aw-share clearfix d-inline-block"> <div class="social-share" data-disabled="google,twitter,facebook,linkedin,douban"></div> </div> </div> <!--评论框动态显示--> <div class="answerCommentBox mt-2 border" id="answerCommentBox-48346" style="display: none;margin-left: 45px"> <div class="answerCommentHeader clearfix px-3 pt-3"> <h6 class="font-10 float-left mb-1"><span class="answer-comment-count48346">0</span> 评论</h6> </div> <div class="answerCommentList px-3"></div> <div class="pageElement"></div> <div class="commentForm clearfix rounded aw-replay-box"></div> </div> </div> <div class="aw-answer-item p-3 mb-1 bg-white" data-uninterested_count="0" id="question-answer-48343" data-answer-id="48343"> <div class="user-details-card pt-0 pb-2 position-relative clearfix"> <div class="user-details-card-avatar float-left" style="position: relative"> <a href="/people/pspsps/" class="aw-username" data-id="27667" title="pspsps"> <img src="/storage/avatar/000/02/76/67_avatar_max.jpg" class="rounded" onerror="this.src='/static/common/image/default-avatar.svg'" alt="pspsps" style="width: 40px;height: 40px"> <img src="/static/common/image/people.svg" width="16" height="16" class="verifiedInfo position-absolute"> </a> </div> <div class="user-details-card-name float-left ml-2"> <a href="/people/pspsps/" data-id="27667" class="aw-username" title="pspsps">pspsps</a> <span class="badge badge-success">注册会员</span> <span class="ml-2 text-muted font-8">用户来自于: 浙江省杭州市</span> <br><span class="ml-0"> 2017-02-01 14:50 </span> </div> </div> <div class="aw-content"> <div class="aw-answer-content overflow-hidden"> 在 VideoUrlParser.php 里返回的embed改成了 iframe </div> <div class="aw-answer-show aw-alpha-hidden" style="display: none"> <span style="cursor: pointer;"><i class="icon-chevrons-down"></i> 阅读全文</span> </div> <div class="aw-answer-hide aw-alpha-hidden mt-3" style="display: none;background:none;position: inherit;height: auto"> <span style="position: unset;float: left;cursor: pointer"><i class="icon-chevrons-up"></i> 收起全文</span> </div> </div> <!--回答操作--> <div class="answer-btn-actions mt-3"> <label class="mr-1"> <a href="javascript:;" class="aw-ajax-agree " onclick="AWS.User.agree(this,'answer','48343');"> <i class="icon-thumb_up"></i> 赞同 <span> 0</span> </a> </label> <label class="mr-3 "> <a href="javascript:;" class="aw-ajax-against " onclick="AWS.User.against(this,'answer','48343');"> <i class="icon-thumb_down"></i> </a> </label> <label class="mr-3"> <a href="javascript:;" class="answerCommentBtn" data-url="/comment/answer.html?id=48343" data-id="48343"> <i class="icon-chat"></i> <span class="answer-comment-count48343">0</span>评论 </a> </label> <div class="dropdown d-inline-block mr-3"> <a href="javascript:;" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-fw fa-share-alt font-9 d-sm-inline-block"></i> 分享 </a> <div class="dropdown-menu p-0 border-0 font-size-sm"> <div class="text-center d-block py-2" style="min-width: 100px"> <a href="javascript:;" class="dropdown-item aw-clipboard" data-clipboard-text="http://wenda.isimpo.com/question/31123-48343.html"><i class="icon-link"></i> 复制链接</a> <a href="javascript:;" onclick="AWS.User.share('小改了一下,网站视频手机播放','http://wenda.isimpo.com/question/31123-48343.html','','weibo')" class="dropdown-item "><i class="fab fa-weibo text-warning"></i> 新浪微博</a> <a href="javascript:;" onclick="AWS.User.share('小改了一下,网站视频手机播放','http://wenda.isimpo.com/question/31123-48343.html','','qzone')" class="dropdown-item "><i class="fab fa-qq text-primary"></i> 腾讯空间</a> <div class="aw-qrcode-container" data-share="http://wenda.isimpo.com/question/31123-48343.html"> <a href="javascript:;" class="dropdown-item "><i class="fab fa-weixin text-success"></i> 微信扫一扫</a> <div class="aw-qrcode text-center py-2"></div> </div> </div> </div> </div> <!--问题回答操作栏钩子--> <div class="aw-share clearfix d-inline-block"> <div class="social-share" data-disabled="google,twitter,facebook,linkedin,douban"></div> </div> </div> <!--评论框动态显示--> <div class="answerCommentBox mt-2 border" id="answerCommentBox-48343" style="display: none;margin-left: 45px"> <div class="answerCommentHeader clearfix px-3 pt-3"> <h6 class="font-10 float-left mb-1"><span class="answer-comment-count48343">0</span> 评论</h6> </div> <div class="answerCommentList px-3"></div> <div class="pageElement"></div> <div class="commentForm clearfix rounded aw-replay-box"></div> </div> </div> </div> </div> </div> <div class="aw-right col-md-3 px-xs-0"> <div class="r-box mb-1"> <div class="r-title"> <h4>关于作者</h4> </div> <div class="block-content"> <dl class="overflow-hidden mb-0 pb-2 border-bottom"> <dt class="float-left"> <a href="/people/chrischang-22972/" data-pjax="pageMain" class="aw-username" data-id="22972"> <img src="/storage/avatar/000/02/29/72_avatar_max.jpg" class="rounded" width="45" height="45"> </a> </dt> <dd class="float-right" style="width:calc(100% - 55px)"> <a href="/people/chrischang-22972/" class="d-block aw-one-line aw-username" data-id="22972" target="_blank"> <strong>chrischang</strong> <span class="badge badge-success">注册会员</span> </a> <p class="mb-0 font-8 text-muted aw-one-line">这家伙很懒,还没有设置简介</p> </dd> </dl> <div class="d-flex text-center pt-3 pb-3 text-muted"> <a href="/people/chrischang-22972/answer" target="_blank" class="flex-fill mb-0"> <dl class="mb-0"> <dt>0</dt> <dd>回答</dd> </dl> </a> <a href="/people/chrischang-22972/article" target="_blank" class="flex-fill mb-0"> <dl class="mb-0"> <dt>0</dt> <dd>文章</dd> </dl> </a> <a href="/people/chrischang-22972/question" target="_blank" class="flex-fill mb-0"> <dl class="mb-0"> <dt>2</dt> <dd>问题</dd> </dl> </a> </div> </div> </div> <div class="r-box mb-2"> <div class="r-title"> <h4>问题动态</h4> </div> <div class="block-content2 pb-2"> <div class="text-center text-muted"> <dl class="clearfix mb-1"> <dt class="float-left">发布时间</dt> <dd class="float-right">2017-01-31 20:51</dd> </dl> <dl class="clearfix mb-1"> <dt class="float-left">更新时间</dt> <dd class="float-right">2017-02-03 14:04</dd> </dl> <dl class="clearfix mb-1"> <dt class="float-left">关注人数</dt> <dd class="float-right">7 人关注</dd> </dl> </div> <div> <ul id="questionFocusUsers"> </ul> </div> </div> </div> <div class="r-box mb-2"> <div class="r-title"> <h4>相关问题</h4> </div> <div class="aboutanswer"> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/16278.html">关于logo大小的问题,请管理来解答一下!</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2409 浏览</label> <label class="mr-2 mb-0">4 关注</label> <label class="mr-2 mb-0">2 回答</label> <label class="mb-0">1 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/16894.html">请教一下,WeCenter如何设置才能缓存某一个页面内容?</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2406 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/9498.html">这个网站,能作为本地社交网吗?</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">1519 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/10393.html">如何在网站实现中英文版切换?</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2812 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/17745.html">网站迁移图片不显示</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">3253 浏览</label> <label class="mr-2 mb-0">4 关注</label> <label class="mr-2 mb-0">3 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/17416.html">想给网站写一个友情链接,怎么让电脑上显示,手机不显示?</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">1779 浏览</label> <label class="mr-2 mb-0">4 关注</label> <label class="mr-2 mb-0">2 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/6100.html">网站转移服务器导致原内容标签话题全部丢失了。。。</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">1768 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/30501.html">稍微修改了一下WC,看看效果怎么样</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">1538 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/28840.html">如题,我试一下文字为什么是宋体,而不是</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2206 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/17626.html">设置伪静态后网站访问不了了</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">1435 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> </div> </div> <div class="r-box mb-2"> <div class="r-title"> <h4>推荐内容</h4> </div> <div class="aboutanswer"> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/8108.html">请问高手如何屏蔽优酷、土豆、奇艺视频前该死的广告呢?</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">3454 浏览</label> <label class="mr-2 mb-0">12 关注</label> <label class="mr-2 mb-0">8 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/7518.html">video display with http://www.youtube.com ?</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">3774 浏览</label> <label class="mr-2 mb-0">9 关注</label> <label class="mr-2 mb-0">5 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/11637.html">CKPlayer视频播放器替换wecenter视频播放器 播放自己上传的视频</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">3816 浏览</label> <label class="mr-2 mb-0">5 关注</label> <label class="mr-2 mb-0">3 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/6002.html">【Anwsion视频功能发布】支持优酷土豆等视频网站的视频【已分享】</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">9239 浏览</label> <label class="mr-2 mb-0">40 关注</label> <label class="mr-2 mb-0">26 回答</label> <label class="mb-0">3 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/18219.html">Manxiu标记,vimeo的视频支持方法</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2985 浏览</label> <label class="mr-2 mb-0">3 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/13542.html">2.5 beta4 视频测试</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">1480 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">1 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/31887.html">哔哩哔哩视频解析!</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">33080 浏览</label> <label class="mr-2 mb-0">0 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/11427.html">视频格式支持还差3家大家伙</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2817 浏览</label> <label class="mr-2 mb-0">4 关注</label> <label class="mr-2 mb-0">3 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/26869.html">如何插入iframe的代码?</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2599 浏览</label> <label class="mr-2 mb-0">4 关注</label> <label class="mr-2 mb-0">2 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/19630.html">土豆的视频显示:视频解析器当前不支持此站点</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2661 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> </div> </div> </div> </div> </div> </div> </div> <!--全局页面内容底部钩子--> <div class="foot"> <div class="container justify-content-center"> <div class="py-3 footauto clearfix"> <div class="float-left ">All Rights Reserved Powered BY <a class="font-w600" href="https://wenda.wecenter.com" target="_blank">WeCenter V4.1.0</a> © 2024 <a target="_blank" class="ml-3" rel="noopener noreferrer" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=34019202000400">皖公网安备 34019202000400号</a></div> <div class="float-right"> <ul> <li class="d-inline-block mx-1"><a href="/page/index.html?url_name=about" title="关于我们" target="_blank">关于我们</a></li> <li class="d-inline-block mx-1"><a href="/page/index.html?url_name=rule" title="社区规范" target="_blank">社区规范</a></li> </ul> </div> </div> </div> </div> <a class="aw-back-top hidden-xs" href="javascript:;" onclick="$.scrollTo(1, 600, {queue:true});"><i class="icon-arrow-up-circle"></i></a> <script> $(function () { let topNavSwiper = new Swiper('.swiper-nav-container', { speed: 600, grabCursor: true, slidesPerView: "auto", initialSlide: 0, slidesPerGroup: 1 }) }) </script> <script> //导航悬浮 var topMain = $(".navbox").height(); $(window).scroll(function(){ if ($(window).scrollTop()>topMain + 200){ $('.navbox').addClass('suspension'); } else { $('.navbox').removeClass('suspension'); } //更换logo if($('.navbox').hasClass('suspension')){ $(".logoimg").attr('src',"/static/common/image/logo.png"); }else( $(".logoimg").attr('src',"http://wenda.isimpo.com/templates/default/static/images/logo-write.png") ) }); </script> <div id="aw-ajax-box"></div> <!--自动加载js文件--> <script src="/templates/default/static/js/question/detail.js"></script> <div id="browserCheck" style="display: none;"> <div class="p-3"> <div class="mb-2"> <p>你的浏览器版本过低,可能导致网站部分内容不能正常使用!</p> <p>为了能正常使用网站功能,请使用以下浏览器</p> </div> <ul class="d-flex text-center"> <li class="flex-fill"> <img src="http://wenda.isimpo.com/static/common/image/icon_Chrome 2x.jpg"> <span class="d-block">Chrome</span> </li> <li class="flex-fill"> <img src="http://wenda.isimpo.com/static/common/image/icon_Firefox 2x.jpg"> <span class="d-block">Firefox</span> </li> <li class="flex-fill"> <img src="http://wenda.isimpo.com/static/common/image/icon_Safari 2x.jpg"> <span class="d-block">Safari</span> </li> <li class="flex-fill"> <img src="http://wenda.isimpo.com/static/common/image/icon_IE 10 2x.jpg"> <span class="d-block">IE 10+</span> </li> </ul> </div> </div> <script> var mb = AWS.common.browser(); if ("IE10" !== mb && "FF" !== mb && "Chrome" !== mb && "Safari" !== mb) { var width =$(window).width() > 600 ? '600px' : '85%'; layer.open({ title: '', type: 1, scrollbar: false, shade: 0.7, area: [width], content: $('#browserCheck').html(), }) } </script> <!--全局自定义底部html--> <script> $(document).ready(function () { $.ajax({ type: 'GET', url: "/ajax.Question/get_chat_gpt.html?question_id=31123", dataType:'json', success: function (ret) { if(ret.data.html!=='') { $('#chatGpt_answers_list').html(ret.data.html).removeClass('d-none'); } }, error: function (xhr) { let ret = {code: xhr.status, msg: xhr.statusText, data: null}; AWS.events.onAjaxError(ret, error); } }); }) $(document).on('click', '.showAllFocusUsers', function(event) { $.ajax({ type: 'GET', url: "/ajax/get_question_focus_users.html?question_id=31123", dataType:'json', success: function (ret) { var html=''; $.each(ret.data, function(i,val){ html +='<li class="px-1 d-inline-block"> <a href="'+val.url+'" class="aw-username" data-id="'+val.uid+'" title="'+val.nick_name+'" > <img src="'+val.avatar+'" width="26" height="26" style="border-radius: 50%" alt="'+val.nick_name+'"> </a> </li>'; }); $('#questionFocusUsers').html(html); }, error: function (xhr) { let ret = {code: xhr.status, msg: xhr.statusText, data: null}; AWS.events.onAjaxError(ret, error); } }); }) $(document).on('click', '#load_force_fold_answers a', function(event) { if($('#force_fold_answers_list').hasClass('d-none')) { $.ajax({ type: 'GET', url: "/ajax.Question/force_fold_answers.html?question_id=31123", dataType:'json', success: function (ret) { $('#force_fold_answers_list').html(ret.data.html).removeClass('d-none'); }, error: function (xhr) { let ret = {code: xhr.status, msg: xhr.statusText, data: null}; AWS.events.onAjaxError(ret, error); } }); }else{ $('#force_fold_answers_list').html('').addClass('d-none'); } }) $(document).ready(function () { var openEnable="Y"; var answerId = parseInt("0"); var showAll = $('#show-all'); if(openEnable==='Y') { $('.aw-question-show').click(); $('.aw-answer-show').click(); if(showAll.height() >= 120) { $('.aw-question-hide').show(); } }else{ if(showAll.height() >= 120) { showAll.show().css('height','120px'); $('.aw-question-show').show(); } } $(document).on('click', '.aw-question-show', function (e) { $('.aw-question-show').hide(); showAll.show().css('height','auto'); $('.aw-question-hide').show(); }); $(document).on('click', '.aw-question-hide', function (e) { $('.aw-question-hide').hide(); showAll.show().css('height','120px'); $('.aw-question-show').show(); }); $('.aw-answer-item .aw-answer-content').each(function(){ if($(this).height() >= 200) { if(openEnable==='Y') { $(this).css('height','auto'); $(this).parents('.aw-answer-item').find('.aw-answer-hide').show(); }else{ if(answerId) { $(this).css('height','auto'); $(this).parents('.aw-answer-item').find('.aw-answer-hide').show(); }else{ $(this).css('height','200px'); $(this).parents('.aw-answer-item').find('.aw-answer-show').show(); } } } }); $(document).on('click', '.aw-answer-show', function (e) { $(this).hide(); $(this).parents('.aw-answer-item').find('.aw-answer-content').show().css('height','auto'); $(this).parents('.aw-answer-item').find('.aw-answer-hide').show(); }); $(document).on('click', '.aw-answer-hide', function (e) { $(this).hide(); $(this).parents('.aw-answer-item').find('.aw-answer-content').show().css('height','200px'); $(this).parents('.aw-answer-item').find('.aw-answer-show').show(); }); }); </script> <form id="attach-download-form" action="/upload/download.html" method="post"> <input type="hidden" id="attach-name" name="name" value=""> <input type="hidden" id="attachType" name="type" value="0"> </form> </body> </html>