테두리 스크롤 막대를 이동하면 스크롤 막대의 색상이 자동으로 변경됩니다.
저자:Eve Cole
업데이트 시간:2009-06-17 17:11:35
<!-- 把하면代码加到<body>区域中 -->
<스크립트 언어="자바스크립트">
<!--
색상=새 배열('ff0000','fff000','00ff00','ffa500','ff00ff','00ffff','ffffff')
함수 플래시(){
var clrPos=Math.floor(Math.random()*colours.length)
(window.document.body.style){
scrollbarTrackColor=document.bgColor;
스크롤바FaceColor=document.bgColor;
스크롤바ArrowColor=색상[clrPos];
스크롤바3dLightColor=색상[clrPos];
스크롤바HighlightColor=색상[clrPos];
스크롤바ShadowColor=색상[clrPos];
스크롤바DarkShadowColor=색상[clrPos];
국경폭=5;
borderStyle='단색';
borderColor=색상[clrPos];
}
}
if (document.all)window.document.body.onscroll=flash;
//-->
</script>