The following Javascript code can be used to design a Fading Scrollbar. The code uses tricks of CSS & Javascript and can be operated on Internet EX. 5 & Above.
<html>
<head><title>Changing the color of scrollbars. using style sheets.</title>
<script langugae="javascript1.2">
<!--
var clrcodes=new Array("#4362a1","#5267a7","#5c72af","#697eb6","#6f83b9","#7b8ebf","#91a0ca",
"#a9b6d6","#b9c4dd","#d1d9e9","#dde2ee","#f2f4f9","#ffffff");
var counter=0;
function blink(){
document.body.style.scrollbarBaseColor=clrcodes[counter];
var timer=setTimeout("blink()",100)
counter++
if(counter>=14){counter=0;}
}
//-->
</script>
</head>
<body onLoad="blink()">
<p align="justify" style="width:300;height:100">
<b>FADING SCROLLBAR.</b>
<BR>Code By.. <br><b>Peeyush Nigam</b><br>PARI WEB SERVICES™<BR>[email protected]
</p>
</body>
</html>
Comments