AGAMES 討論區

標題: 滑鼠指捲軸會變色 [打印本頁]

作者: dlalden    時間: 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>
複製代碼






歡迎光臨 AGAMES 討論區 (http://61.244.113.49/) Powered by Discuz! X2