40楼#
发布于:2023-02-11 17:11
左右没有满屏,点“左”会花屏,看能不能修复下
41楼#
发布于:2023-02-10 20:42
xiaozhuan:感谢,我再试试。回到原帖

这下真改好了


<button id="theme" class="bottom-button" style="width:12%;">暗</button>



     var skin = document.getElementById("css");
     skinX = document.getElementById("theme");
     if (skin.href.substr(-12) == "keyboard.css") {
       skinX.innerHTML = "暗";
     } else {
       skinX.innerHTML = "明";
     }

     document.getElementById("theme").ontouchstart = function () {
       if (skinX.innerHTML == "暗") {
         skin.href = skin.href.substr(0, skin.href.length - 12) + "keyboardl.css";
         console.log(skin.href);
         skinX.innerHTML = "明";
       } else {
         skin.href = skin.href.substr(0, skin.href.length - 13) + "keyboard.css";
         console.log(skin.href);
         skinX.innerHTML = "暗";
       }
     }


42楼#
发布于:2023-02-10 11:37
ryan:已更新回到原帖
感谢,我再试试。
43楼#
发布于:2023-02-10 11:02
xiaozhuan:这个方便放进你附件的皮肤测试分享吗?
我尝试了一早上,都没成功。我放进附件的皮肤里,导致皮肤无法启动。
回到原帖
已更新
44楼#
发布于:2023-02-10 10:28
ryan:搞定了

      '<button id="theme" class="bottom-button" style="width:15%;">暗</button>'

      document.getElementById(...
回到原帖
这个方便放进你附件的皮肤测试分享吗?
我尝试了一早上,都没成功。我放进附件的皮肤里,导致皮肤无法启动。
45楼#
发布于:2023-02-10 08:16
ryan:搞定了

      '<button id="theme" class="bottom-button" style="width:15%;">暗</button>'

      document.getElementById(...
回到原帖
还想着晚上你应该休息,次日动手呢。
46楼#
发布于:2023-02-10 08:15
ryan:搞定了

      '<button id="theme" class="bottom-button" style="width:15%;">暗</button>'

      document.getElementById(...
回到原帖
啊,如此神速!????????????
47楼#
发布于:2023-02-10 00:16
xiaozhuan:对,明暗这个,要移动就把这些必要但不常用的都移下来。

有劳,有劳!
回到原帖

搞定了

     '<button id="theme" class="bottom-button" style="width:15%;">暗</button>'

     document.getElementById("theme").ontouchstart = function () {
       var Ctheme = document.getElementById("css");
       tColor = document.getElementById("theme");
       if (tColor.innerHTML == "暗") {
         Ctheme.href = Ctheme.href.substr(0, Ctheme.href.length - 12) + "keyboardl.css";
         console.log(Ctheme.href);
         tColor.innerHTML = "明";
       } else {
         Ctheme.href = Ctheme.href.substr(0, Ctheme.href.length - 13) + "keyboard.css";
         console.log(Ctheme.href);
         tColor.innerHTML = "暗";
       }
     }





48楼#
发布于:2023-02-09 22:42
xiaozhuan:对,明暗这个,要移动就把这些必要但不常用的都移下来。

有劳,有劳!
回到原帖
等两天得空了看看
49楼#
发布于:2023-02-09 21:44
ryan:是指菜单按钮吗?html里面改:
document.getElementById("leftId1").ontouchstart=function (){
        App.key(KEYCODE_MENU);
      }
回到原帖
哈哈,这个移动下来也好,切换皮肤也方便很多。
游客

返回顶部