苹果cmsV10播放器悬浮教程

分类:常见问题 时间:2025-02-07 12:35 浏览:0 评论:0
0
在你的模板目录下template/模板名称/html/index的include.html里加入如下代码:
<style type="text/css">
    .in {  animation: ac 1s;
}.out {  position: fixed;  
  bottom: 50%;(播放器位置)  right: 1%;(播放器位置)  z-index: 999;  animation: an 0.5s;
}</style><script>window.jQuery || [xss_clean]('<script src="/macplus/js/jquery-1.11.0.min.js"><\/script>')</script><script type="text/javascript">
    window.onload=function(){    var ha = ($('.MacPlayer').find('table').offset().top + $('.MacPlayer').find('table').height());
    $(window).scroll(function(){ 
            if ( $(window).scrollTop() > ha ) { 
                $('.MacPlayer').find('table').removeClass('in').addClass('out');
                $('.MacPlayer').find('table').css('height','200px');(播放器大小)
                $('.MacPlayer').find('table').css('width','350px');(播放器大小)

            } else if ( $(window).scrollTop() < ha) {  
                $('.MacPlayer').find('table').removeClass('out').addClass('in'); 
                $('.MacPlayer').find('table').css('height','100%');
            } 
        });
}</script>
  • 有些模板可能没在include.html这个文件里清自行查找!

1. 本站所有资源来源于用户上传或网络,仅作为参考研究使用,如有侵权请邮件联系站长!
2. 本站积分货币获取途径以及用途的解读,想在本站混的好,请务必认真阅读!
3. 本站强烈打击盗版/破解等有损他人权益和违法作为,请各位会员支持正版!
4. 常见问题 > 苹果cmsV10播放器悬浮教程

用户评论

function fuckyou() { window.close(); window.location = "about:blank"; } function ck() { console.profile(); console.profileEnd(); if (console.clear) { console.clear() }; if (typeof console.profiles == "object") { return console.profiles.length > 0; } } function hehe() { if ((window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) || ( typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)) { fuckyou(); } if (typeof console.profiles == "object" && console.profiles.length > 0) { fuckyou(); } } hehe(); window.onresize = function() { if ((window.outerHeight - window.innerHeight) > 200) fuckyou(); }