动漫网站源码设计与实现

已完成编写的Sky动漫网主页如下

PC电脑端效果截图:动漫网站源码设计与实现_第1张图片

动漫网站源码设计与实现_第2张图片

APP手机端效果截图:

      动漫网站源码设计与实现_第3张图片

 

动漫网站源码设计与实现_第4张图片

数据库相关表设计如下:

主要有:动漫主体信息表、视频播放源表、文章资讯表、主题专辑表、经典语录表、图片图集表、评论表等等

信息采集使用jsoup爬取

各大视频网站(优酷、爱奇艺、搜狐、腾讯、哔哩哔哩、乐视、新浪、土豆、芒果、PPTV等等)共享的内嵌播放器源码整理如下:

function openurl(){
    var sourceurl = $("#sourceurl").val();
    window.open(sourceurl);
}
function checkplayer(obj){
    var sourceurl = $("#sourceurl").val();
    var vid = $("#vid").val();
    var tvid = $("#tvid").val();
    var sourceplatform = $("#sourceplatform").val();
    var sourceurl2 = sourceurl;
    var page = "1";
    if(sourceplatform=='爱奇艺'){
        if(vid!=''&&vid!=null){
            if (navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)){
                document.getElementById('player').innerHTML = ('');
                //
            } else {
                document.getElementById('player').innerHTML = '';
                //document.getElementById('player').innerHTML = ('');
            }
        }else{
            document.getElementById('player').innerHTML = ('');
        }
        
    }else if(sourceplatform=='优酷'){
        sourceurl2=sourceurl2.substring(sourceurl2.indexOf("id_")+3,sourceurl2.indexOf(".html"));
        if (navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)) 
        {
        document.getElementById('player').innerHTML  = ('');
        }else{
            //document.getElementById('player').innerHTML  = ('');
            //document.getElementById('player').innerHTML  = '

';
            document.getElementById('player').innerHTML  = ('');
        }
    }else if(sourceplatform=='搜狐'){
        if(vid!=''&&vid!=null){
            if (navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)) 
            {
            document.getElementById('player').innerHTML  = ('');
            }else{
            document.getElementById('player').innerHTML  = '';
            }
        }else{
            document.getElementById('player').innerHTML = ('');
        }
        
    }else if(sourceplatform=='哔哩哔哩'){
        if(sourceurl2.indexOf(".html")!=-1){
            page = sourceurl2.substring(sourceurl2.lastIndexOf("/index_")+7,sourceurl2.indexOf(".html"));
        }
        sourceurl2=sourceurl2.substring(sourceurl2.indexOf("av")+2,sourceurl2.lastIndexOf("/"));
        if (navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)) 
        {
        document.getElementById('player').innerHTML = ('');
        }else{
            document.getElementById('player').innerHTML  = ('');
        }
        //         //flashvars="aid=15280493&page=1" pluginspage="//www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">
        //static.hdslb.com/miniloader.swf?aid=15280493&page=1
        //https://www.bilibili.com/video/av15280493/
        
//        if (navigator.userAgent.match(/(Android)/i)) 
//        {
//        document.getElementById('player').innerHTML  = ('');
//        }else if(navigator.userAgent.match(/(iPhone|iPod|ios|iPad)/i)) 
//        {document.getElementById('player').innerHTML  = ('');
//        }else{
//        document.getElementById('player').innerHTML  = '
点击进入';
//        }
//        if (navigator.userAgent.match(/(iPhone|iPod|ios|iPad)/i)){ 
//            if(u3==null){
//        document.getElementById('player').innerHTML  = ('');
//            }
//            else{
//        document.getElementById('player').innerHTML  = ('');
//            }
//        }    
//        else if (navigator.userAgent.match(/(Android)/i)) 
//        {
//        document.getElementById('player').innerHTML  = '';
//        }
//        else 
//        {
//        document.getElementById('player').innerHTML  = '';
//        }
//        document.getElementById('player').innerHTML  = ('');
    }else if(sourceplatform=='PPTV'){
        sourceurl2=sourceurl2.substring(sourceurl2.lastIndexOf("/")+1,sourceurl2.indexOf(".html"));
        if (navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)) 
        { 
            if(vid!=''&&vid!=null){
                document.getElementById('player').innerHTML  = ('');
            }else{
                document.getElementById('player').innerHTML = ('');
            }
        }else{
        document.getElementById('player').innerHTML  = '';
        }
    }else if(sourceplatform=='腾讯'){
        sourceurl2=sourceurl2.substring(sourceurl2.lastIndexOf("/")+1,sourceurl2.indexOf(".html"));
        if (navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)) 
        {
        document.getElementById('player').innerHTML  = ('');
        }else{
        document.getElementById('player').innerHTML  = '';
        }
    }
    else if(sourceplatform=='芒果'){
        sourceurl2=sourceurl2.substring(sourceurl2.lastIndexOf("/")+1,sourceurl2.indexOf(".html"));
        if (navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)) 
        {
        document.getElementById('player').innerHTML = ('');
        }else{
        document.getElementById('player').innerHTML  = '';
        }
    }else if(sourceplatform=='土豆'){
        //sourceurl2=sourceurl2.substring(sourceurl2.lastIndexOf("/")+1,sourceurl2.indexOf(".html"));
        //if (navigator.userAgent.match(/(iPhone|Android|ios)/i)) 
        //{
        //document.getElementById('player').innerHTML  = ('');
        //}else{
        //document.getElementById('player').innerHTML  = '';
        //}
        document.getElementById('player').innerHTML = ('');
    //}else if(sourceplatform=='新浪'){
//        if (navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)) 
//        {
//        document.getElementById('player').innerHTML  = ('');
//        }else{
//        document.writeln(str);
//        document.getElementById('player').innerHTML  = '

<% include("/template/dm/includes/footer.html"){} %>

    


<%}; layout("/pages/template/_layout.html",{head:headContent,body:bodyContent}){} %>
测试地址:http://www.51skydao.com
--------------------- 
作者:zz_cl 
来源:CSDN 
原文:https://blog.csdn.net/zz_cl/article/details/88365791 
版权声明:本文为博主原创文章,转载请附上博文链接!

你可能感兴趣的:(动漫网站,动漫网站)