欢迎来到m1938工作室
提交工单

苹果CMS播放页被劫持跳转至第3方网站的解决方案

  • 苹果mac教程
  • 来源:m1938
  • 编辑:m1938
  • 时间:03/08
  • 阅读:11741

对于v8版本用户:

window.onresize = function() {    if (window.name == "macopen1") {        MacPlayer.Width = $(window).width() - $(".MacPlayer").offset().left - 15;        MacPlayer.HeightAll = $(window).height() - $(".MacPlayer").offset().top - 15;        MacPlayer.Height = MacPlayer.HeightAll;        if (mac_showtop == 1) {            MacPlayer.Height -= 20        }        $(".MacPlayer").width(MacPlayer.Width);        $(".MacPlayer").height(MacPlayer.HeightAll);        $("#buffer").width(MacPlayer.Width);        $("#buffer").height(MacPlayer.HeightAll);        $("#Player").width(MacPlayer.Width);        $("#Player").height(MacPlayer.Height)    }};var MacPlayer = {    'GoPreUrl': function() {        if (this.Num > 0) {            this.Go(this.Src + 1, this.Num)        }    },    'GetPreUrl': function() {        return this.Num > 0 ? this.GetUrl(this.Src + 1, this.Num) : ''    },    'GoNextUrl': function() {        if (this.Num + 1 != this.PlayUrlLen) {            this.Go(this.Src + 1, this.Num + 2)        }    },    'GetNextUrl': function() {        return this.Num + 1 <= this.PlayUrlLen ? this.GetUrl(this.Src + 1, this.Num + 2) : ''    },    'GetUrl': function(s, n) {        return mac_link.replace('{src}', s).replace('{src}', s).replace('{num}', n).replace('{num}', n)    },    'Go': function(s, n) {        location.href = this.GetUrl(s, n)    },    'GetList': function() {        this.RightList = '';        for (i = 0; i < this.Data.from.length; i++) {            from = this.Data.from[i];            url = this.Data.url[i];            listr = "";            sid_on = 'h2';            sub_on = 'none';            urlarr = url.split('#');            for (j = 0; j < urlarr.length; j++) {                urlinfo = urlarr[j].split('$');                name = '';                url = '';                list_on = '';                from1 = '';                if (urlinfo.length > 1) {                    name = urlinfo[0];                    url = urlinfo[1];                    if (urlinfo.length > 2) {                        from1 = urlinfo[2]                    }                } else {                    name = "第" + (j + 1) + "集";                    url = urlinfo[0]                }                if (this.Src == i && this.Num == j) {                    sid_on = 'h2_on';                    sub_on = 'block';                    list_on = "list_on";                    this.PlayUrlLen = urlarr.length;                    this.PlayUrl = url;                    this.PlayName = name;                    if (from1 != '') {                        this.PlayFrom = from1                    }                    if (j < urlarr.length - 1) {                        urlinfo = urlarr[j + 1].split('$');                        if (urlinfo.length > 1) {                            name1 = urlinfo[0];                            url1 = urlinfo[1]                        } else {                            name1 = "第" + (j + 1) + "集";                            url1 = urlinfo[0]                        }                        this.PlayUrl1 = url1;                        this.PalyName1 = name1                    }                }                listr += '<li><a class="' + list_on + '" href="javascript:void(0)" onclick="MacPlayer.Go(' + (i + 1) + ',' + (j + 1) + ');return false;" >' + name + '</a></li>'            }            this.RightList += '<div id="main' + i + '" class="' + sid_on + '"><h2 onclick="MacPlayer.Tabs(' + i + ',' + (this.Data.from.length - 1) + ')">' + mac_show[from] + '</h2>' + '<ul id="sub' + i + '" style="display:' + sub_on + '">' + listr + '</ul></div>'        }    },    'ShowList': function() {        $('#playright').toggle()    },    'Tabs': function(a, n) {        var b = $('#sub' + a).css('display');        for (var i = 0; i <= n; i++) {            $('#main' + i).attr('className', 'h2');            $('#sub' + i).hide()        }        if (b == 'none') {            $('#sub' + a).show();            $('#main' + a).attr('className', 'h2_on')        } else {            $('#sub' + a).hide()        }    },    'Show': function() {        if (mac_showtop == 0) {            $("#playtop").hide()        }        if (mac_showlist == 0) {            $("#playright").hide()        }        setTimeout(function() {            MacPlayer.AdsEnd()        }, this.Second * 1000);        $("#topdes").get(0).innerHTML = '' + '正在播放:' + this.PlayName + '';        $("#playright").get(0).innerHTML = '<div class="rightlist" id="rightlist" style="height:' + this.Height + 'px;">' + this.RightList + '</div>';        $("#playleft").get(0).innerHTML = '<iframe id="buffer" src="' + this.Prestrain + '" frameBorder="0" scrolling="no" width="100%" height="' + this.Height + '" style="position:absolute;z-index:99998;"></iframe>' + this.Html + '';        document.write('<scr' + 'ipt src="' + '//union.maccms.com/html/top.js' + '"></scr' + 'ipt>')    },    'ShowBuffer': function() {        var w = this.Width - 100;        var h = this.Height - 100;        var l = (this.Width - w) / 2;        var t = (this.Height - h) / 2 + 20;        $(".MacBuffer").css({            'width': w,            'height': h,            'left': l,            'top': t        });        $(".MacBuffer").toggle()    },    'AdsEnd': function() {        $('#buffer').hide()    },    'Install': function() {        this.Status = false;        $('#install').parent().show();        $('#install').show()    },    'Play': function() {        var a = mac_colors.split(',');        document.write('<style>.MacPlayer{background: #' + a[0] + ';font-size:14px;color:#' + a[1] + ';margin:0px;padding:0px;position:relative;overflow:hidden;width:' + (this.Width == 0 ? '100%' : this.Width + 'px') + ';height:' + this.HeightAll + 'px;}.MacPlayer a{color:#' + a[2] + ';text-decoration:none}a:hover{text-decoration: underline;}.MacPlayer a:active{text-decoration: none;}.MacPlayer table{width:100%;height:100%;}.MacPlayer ul,li,h2{ margin:0px; padding:0px; list-style:none}.MacPlayer #playtop{text-align:center;height:20px; line-height:21px;font-size:12px;}.MacPlayer #topleft{width:150px;}.MacPlayer #topright{width:100px;} .MacPlayer #topleft{text-align:left;padding-left:5px}.MacPlayer #topright{text-align:right;padding-right:5px}.MacPlayer #playleft{width:100%;height:100%;overflow:hidden;}.MacPlayer #playright{height:100%;overflow-y:auto;}.MacPlayer #rightlist{width:120px;overflow:auto;scrollbar-face-color:#' + a[7] + ';scrollbar-arrow-color:#' + a[8] + ';scrollbar-track-color: #' + a[9] + ';scrollbar-highlight-color:#' + a[10] + ';scrollbar-shadow-color: #' + a[11] + ';scrollbar-3dlight-color:#' + a[12] + ';scrollbar-darkshadow-color:#' + a[13] + ';scrollbar-base-color:#' + a[14] + ';}.MacPlayer #rightlist ul{ clear:both; margin:5px 0px}.MacPlayer #rightlist li{ height:21px; line-height:21px;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.MacPlayer #rightlist li a{padding-left:15px; display:block; font-size:12px}.MacPlayer #rightlist h2{ cursor:pointer;font-size:13px;font-family: "宋体";font-weight:normal;height:25px;line-height:25px;background:#' + a[3] + ';padding-left:5px; margin-bottom:1px}.MacPlayer #rightlist .h2{color:#' + a[4] + '}.MacPlayer #rightlist .h2_on{color:#' + a[5] + '}.MacPlayer #rightlist .ul_on{display:block}.MacPlayer #rightlist .list_on{color:#' + a[6] + '} </style><div class="MacPlayer"><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><table border="0" cellpadding="0" cellspacing="0" id="playtop"><tr><td width="100" id="topleft"><a target="_self" href="javascript:void(0)" onclick="MacPlayer.GoPreUrl();return false;">上一集</a> <a target="_self" href="javascript:void(0)" onclick="MacPlayer.GoNextUrl();return false;">下一集</a></td><td id="topcc"><div id="topdes" style="height:26px;line-height:26px;overflow:hidden"></div></td><td width="100" id="topright"><a target="_self" href="javascript:void(0)" onClick="MacPlayer.ShowList();return false;">开/关列表</a></td></tr></table></td></tr><tr style="display:none"><td colspan="2" id="install" style="display:none"></td></tr><tr><td id="playleft" valign="top">&nbsp;</td><td id="playright" valign="top">&nbsp;</td></tr></table></div>');        document.write('<scr' + 'ipt src="' + this.Path + this.PlayFrom + '.js"></scr' + 'ipt>')    },    'Down': function() {},    'Init': function() {        this.Status = true;        this.Url = location.href;        this.Par = location.search;        this.Data = {            'from': mac_from.split('$$$'),            'server': mac_server.split('$$$'),            'note': mac_note.split('$$$'),            'url': mac_url.split('$$$')        };        var c = navigator.userAgent.toLowerCase();        this.Width = window.name == 'macopen1' ? mac_widthpop : (mac_width == 0 ? '100%' : mac_width);        this.HeightAll = window.name == 'macopen1' ? mac_heightpop : mac_height;        if (c.indexOf("android") > 0 || c.indexOf("mobile") > 0 || c.indexOf("ipod") > 0 || c.indexOf("ios") > 0 || c.indexOf("iphone") > 0 || c.indexOf("ipad") > 0) {            this.Width = window.name == 'macopen1' ? mac_widthpop : (mac_widthmob == 0 ? '100%' : mac_widthmob);            this.HeightAll = window.name == 'macopen1' ? mac_heightpop : mac_heightmob        }        this.Height = this.HeightAll;        if (mac_showtop == 1) {            this.Height -= 20        }        if (this.Url.indexOf('#') > -1) {            this.Url = this.Url.substr(0, this.Url.indexOf('#'))        }        this.Prestrain = mac_prestrain;        this.Buffer = mac_buffer;        this.Second = mac_second;        this.Flag = mac_flag;        var a = this.Url.match(/d+.*(htm)/g)[0].match(/d+/g);        if (a.length < 3) {            a = this.Url.match(/d+.*/g)[0].match(/d+/g)        }        var b = a.length;        this.Id = a[(b - 3)] * 1;        this.Src = a[(b - 2)] * 1 - 1;        this.Num = a[(b - 1)] * 1 - 1;        this.PlayFrom = this.Data.from[this.Src];        this.PlayServer = this.Data.server[this.Src] == 'no' ? '' : mac_show_server[this.Data.server[this.Src]];        this.PlayNote = this.Data.note[this.Src];        this.GetList();        this.NextUrl = this.GetNextUrl();        this.PreUrl = this.GetPreUrl();        this.Path = SitePath + 'player/';        if (this.Flag == "down") {            MacPlayer.Down()        } else {            MacPlayer.Play()        }    }};


全部评论(0)
推荐教程
  • 苹果cmsV10网站分类SEO优化静态设置教程
  • 苹果cmsV10网站分类SEO优化静态设置教程
  • 第1步首先在自己后台基础管理的地方,把自己网站的分类名称所有的分类先设置好。  2二部按照下面的图片进入url地址配置。按照的标志,把视频分为视频详情。视频播放一下自己静态。             3下面的图片一样,按照静态路径设置。分类视频详情视频播放。前面加的这个字母,比如news
  • 苹果cmsv10教程
  • 来源:m1938
  • 编辑:m1938
  • 时间:03/08
  • 阅读:5836
  • 苹果cmsV10程序系统后台忘记登录密码的修改教程
  • 苹果cmsV10程序系统后台忘记登录密码的修改教程
  • 如果你忘记了苹果CMSv10后台管理员的登录密码,可以通过以下步骤进行密码重置:###苹果CMSv10后台密码重置方法1.**备份数据库**    在进行任何操作之前,务必先备份数据库,防止数据丢失。2.**登录数据库管理工具**    使用`phpMyAdmin`、`Navicat`或宝塔面板的数据库管理功能,连接到苹果CMSv10
  • 苹果cmsv10教程
  • 来源:m1938
  • 编辑:m1938
  • 时间:03/08
  • 阅读:8557
  • 苹果cmsv10的程序模板安装使用常见问题
  • 苹果cmsv10的程序模板安装使用常见问题
  • A.安装苹果cmsv10时提示不支持fileinfo解决方法1.打开宝塔面板找到-软件管理一项2.选择你安装的PHP版本,打开设置我用的是7.2版本你要看下自己的php版本3.选择安装扩展,将缺少的插件安装一下就可以了 安装经常遇到的常见问题,可以进入这里查看https://www.m1938.com/maccms/question.htmlB.把模板上传之后,提示找不到模板。首先你要检查你的模板是否上传路径正确。把你购买
  • 苹果cmsv10教程
  • 来源:m1938
  • 编辑:m1938
  • 时间:03/08
  • 阅读:13723
  • 苹果CMS10影视程序自动采集教程
  • 苹果CMS10影视程序自动采集教程
  • 在建立好自己的网站添加自定义资源库后,由于手动采集方式比较耗时间和精力更新也不够及时,是不是特别希望能有一个全自动定时采集方法来帮助网站增加视频资源解放自己的双手,m1938工作室现在就教大家如何用宝塔一步一步实现这个定时采集任务。1.进入苹果CMS10后台,点击–采集2.在采集页面,点击左侧“自定义资源库,鼠标右键点击需要采集的内容,如“采集当天”、“采集本周””采集所有“,选择复制链接地址。  &nb
  • 苹果cmsv10教程
  • 来源:m1938
  • 编辑:m1938
  • 时间:03/08
  • 阅读:16406
  • 苹果cmsV10图片域名替换教程
  • 苹果cmsV10图片域名替换教程
  • 封面图片域名更换:所下图所示操作注意切记填写域名时千万不要有空格  按图片步骤操作    具体操作如下图
  • 苹果cmsv10教程
  • 来源:m1938
  • 编辑:m1938
  • 时间:03/08
  • 阅读:10748
本站声明 请在遵守中华人民共和国法律法规的情况下使用本站模板,严禁将m1938工作室的模板用在涉黄、涉黑、涉赌、涉毒、涉电信诈骗等任何涉嫌违法活动站点,本站所有代码模板仅供学习交流使用,请勿用于商业用途,及违法侵权行为使用均与本站无关!
网站首页  |   关于我们  |   广告合作  |   联系我们  |   隐私条款  |   免责声明  |   网站地图
CopyRight 2008-2024 m1938工作室        
网站客服 联系客服
QQ2538441532