AGAMES 討論區

 找回密碼
 快速註冊
搜索
查看: 1208|回復: 0
打印 上一主題 下一主題

滑鼠指捲軸會變色 [複製鏈接]

七級帝王會員

☆Prince★}+}|電腦王子

Rank: 7Rank: 7Rank: 7

帖子
3799
EXP
6040 點
金幣
4990 個
好友
0
註冊時間
2008-3-27

友誼之星勳章

跳轉到指定樓層
樓主
發表於 2008-11-8 18:18:17 |只看該作者 |倒序瀏覽

變色捲軸

滑鼠指捲軸會變色
但不可與任何滑鼠帶字共用
scrollbarArrowColor="white 三角形箭咀色
scrollbarArrowColor="black 捲軸底色
("pink","blue"); 是原本色
("yellow","red"); 是指向色


  1. <script language="javascript1.2">
  2. function clrBar(line,face){
  3. with(document.body.style){
  4. scrollbarDarkShadowColor=line;
  5. scrollbar3dLightColor=line;
  6. scrollbarArrowColor="white";
  7. scrollbarBaseColor=face;
  8. scrollbarFaceColor=face;
  9. scrollbarHighlightColor=face;
  10. scrollbarShadowColor=face;
  11. scrollbarTrackColor="black";
  12. }}function setcolor(){
  13. var w = document.body.clientWidth;
  14. var h = document.body.clientHeight;
  15. var x = event.clientX;
  16. var y = event.clientY;
  17. if(x>w) clrBar("yellow","red");
  18. else clrBar("pink","blue");
  19. }if (document.all){clrBar(null,null);
  20. document.onmousemove=setcolor;
  21. }</script>
複製代碼

Alta Multimedia - Youtube:http://www.youtube.com/user/altahk
您需要登錄後才可以回帖 登錄 | 快速註冊

Archiver|手機版|AGAMES 討論區

GMT+8, 2024-4-29 13:53 , Processed in 0.041711 second(s), 10 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回頂部