⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mono.js

📁 本源代码为终点小说连载系统 v1.15 Build 0430 SQL清风修改版,欢迎大家下载,学习与交流
💻 JS
字号:
      var mousey, currentpos, timer; 
      function currentmousey() {
       mousey = window.event.y;

      //得到鼠标在网页中的Y坐标,请注意 event 的大小写

      }
      function initialize(){ 
      timer = setTimeout("scrollwindow()",mousey/2);
	//document.body.style.cursor="hand";
      //用鼠标在网页中的Y坐标来决定执行scrollwindow()函数的频率,从而动态改变网页的滚动速度

      }
      function stopscroll(){
       clearInterval(timer);
	//document.body.style.cursor="";
      }
      function scrollwindow(){
      currentpos = document.body.scrollTop;
      window.scroll(0,++currentpos); 
      if (currentpos != document.body.scrollTop){
      stopscroll();
      }else{
      initialize();
      }
      }
      document.ondblclick = initialize;
      document.onmousedown = stopscroll;
      document.onmousemove = currentmousey; 

      //当在网页上触了鼠标的移动事件,就运行currentmousey函数

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -