移动边框滚动条后,滚动条会自动变色
作者:Eve Cole
更新时间:2009-06-17 17:11:35
<!-- 把下面代码加到<body>区域中 -->
<脚本语言=“JavaScript”>
<!--
颜色=新数组('ff0000','fff000','00ff00','ffa500','ff00ff','00ffff','ffffff')
函数闪光(){
var clrPos=Math.floor(Math.random()*colours.length)
与 (window.document.body.style){
滚动条轨道颜色=文档.bgColor;
滚动条FaceColor = document.bgColor;
滚动条箭头颜色=颜色[clrPos];
scrollbar3dLightColor=颜色[clrPos];
滚动条高光颜色=颜色[clrPos];
滚动条阴影颜色=颜色[clrPos];
滚动条DarkShadowColor=颜色[clrPos];
边框宽度=5;
borderStyle='实心';
borderColor=颜色[clrPos];
}
}
if (document.all)window.document.body.onscroll=flash;
//-->
</脚本>