commit 48d2a16d5fc7f6bc9ebabc7ba14523208741506b Author: Last <32554200+InvisibleFuture@users.noreply.github.com> Date: Thu Nov 15 17:33:22 2018 +0800 Add files via upload diff --git a/z_top/conf.json b/z_top/conf.json new file mode 100644 index 0000000..7097ca6 --- /dev/null +++ b/z_top/conf.json @@ -0,0 +1,10 @@ +{ + "name": "返回顶部", + "brief": "从DZ移植来的 「萌化返回顶部 2.2」,
原插件http://addon.discuz.com/?@cat_backtop.plugin
暂时只有基础功能 待改进.. ", + "version": "1.0", + "bbs_version": "4.0", + "installed": 0, + "enable": 0, + "hooks_rank": [], + "dependencies": [] +} \ No newline at end of file diff --git a/z_top/hook/footer_js_after.htm b/z_top/hook/footer_js_after.htm new file mode 100644 index 0000000..57fa8b8 --- /dev/null +++ b/z_top/hook/footer_js_after.htm @@ -0,0 +1,5 @@ + + + + +
diff --git a/z_top/icon.png b/z_top/icon.png new file mode 100644 index 0000000..8a03833 Binary files /dev/null and b/z_top/icon.png differ diff --git a/z_top/install.php b/z_top/install.php new file mode 100644 index 0000000..54aab5e --- /dev/null +++ b/z_top/install.php @@ -0,0 +1,17 @@ +'2'); + setting_set('z_top_setting', $setting); +} + +?> \ No newline at end of file diff --git a/z_top/js/top.js b/z_top/js/top.js new file mode 100644 index 0000000..582710f --- /dev/null +++ b/z_top/js/top.js @@ -0,0 +1,16 @@ + jQuery(document).ready(function(){ + jQuery("#backTop").hide(); + jQuery(function () { + jQuery(window).scroll(function(){ + if (jQuery(window).scrollTop()>1000){ + jQuery("#backTop").fadeIn(1000); + }else{ + jQuery("#backTop").fadeOut(1000); + } + }); + jQuery("#backTop").click(function(){ + jQuery("body,html").animate({scrollTop:0},1000); + return false; + }); + }); + }); \ No newline at end of file diff --git a/z_top/list/1/img.png b/z_top/list/1/img.png new file mode 100644 index 0000000..ed58275 Binary files /dev/null and b/z_top/list/1/img.png differ diff --git a/z_top/list/1/style.css b/z_top/list/1/style.css new file mode 100644 index 0000000..dcf186a --- /dev/null +++ b/z_top/list/1/style.css @@ -0,0 +1,4 @@ +#backTop { opacity: 0.9;filter: alpha(opacity=90);position: fixed; _position:absolute; z-index:9999; bottom:0; right:0; display:none; height: 303px;width: 166px;background: url("img.png"); cursor:pointer} +#backTop a { display:block; overflow:hidden} +#backTop:hover {opacity: 1;filter: alpha(opacity=100)} +#scrolltop {display:none!important} \ No newline at end of file diff --git a/z_top/list/2/img.png b/z_top/list/2/img.png new file mode 100644 index 0000000..27cdbe4 Binary files /dev/null and b/z_top/list/2/img.png differ diff --git a/z_top/list/2/style.css b/z_top/list/2/style.css new file mode 100644 index 0000000..ebad01b --- /dev/null +++ b/z_top/list/2/style.css @@ -0,0 +1,4 @@ +#backTop { opacity: 0.9;filter: alpha(opacity=90);position: fixed; _position:absolute; z-index:9999; bottom:0; right:0; display:none; height: 278px;width: 130px;background: url("img.png"); cursor:pointer} +#backTop a { display:block; overflow:hidden} +#backTop:hover {opacity: 1;filter: alpha(opacity=100)} +#scrolltop {display:none!important} \ No newline at end of file diff --git a/z_top/list/3/img.png b/z_top/list/3/img.png new file mode 100644 index 0000000..674db1c Binary files /dev/null and b/z_top/list/3/img.png differ diff --git a/z_top/list/3/style.css b/z_top/list/3/style.css new file mode 100644 index 0000000..52f5ce7 --- /dev/null +++ b/z_top/list/3/style.css @@ -0,0 +1,4 @@ +#backTop { opacity: 0.9;filter: alpha(opacity=90);position: fixed; _position:absolute; z-index:9999; bottom:0; right:0; display:none; height: 258px;width: 172px;background: url("img.png"); cursor:pointer} +#backTop a { display:block; overflow:hidden} +#backTop:hover {opacity: 1;filter: alpha(opacity=100)} +#scrolltop {display:none!important} \ No newline at end of file diff --git a/z_top/setting.htm b/z_top/setting.htm new file mode 100644 index 0000000..a38047d --- /dev/null +++ b/z_top/setting.htm @@ -0,0 +1,99 @@ + + + + +
+
+
+
+
" method="post" id="form"> +

萌化返回顶部插件

+
+ '; + echo '
'; + echo ''.$file[$x].$txt.' '; + echo ''; + } + + ?> + +
+ +
+
+ +
+ +
+ + +
+
+
+
+
+
+
+ + + + \ No newline at end of file diff --git a/z_top/setting.php b/z_top/setting.php new file mode 100644 index 0000000..86fe16d --- /dev/null +++ b/z_top/setting.php @@ -0,0 +1,28 @@ + \ No newline at end of file diff --git a/z_top/unstall.php b/z_top/unstall.php new file mode 100644 index 0000000..aee2989 --- /dev/null +++ b/z_top/unstall.php @@ -0,0 +1,8 @@ + \ No newline at end of file