Library code snippets
Fading Scrollbar
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>webmaster@avenues-india.com
</p>
</body>
</html>
Related articles
Related discussion
-
VB.NET: Hide and show table using radio buttons
by converter2009 (1 replies)
-
Java Script, File uploading on ftp server using java script code
by h_c_a_andersen (2 replies)
-
.NET Developer in Ghana Required....
by sysview (0 replies)
-
Problem when using TemplateField and ImageButton
by ashiquemca (15 replies)
-
problem with special characters
by avlisodraude (1 replies)
Related podcasts
-
Raleigh Code Camp reflections, Chrome wins speed tests, GroovyMag
I attended the Raleigh Code Camp last week and had a blast meeting some awesome people (but of course there's never enough time to meet everyone you'd like to!). Some great sessions I attended covered the MS MVC platform and an introduction to MS DLR, both of which I discuss here in a bit more d...
Events coming up
-
Dec
8
December Silicon Valley Ruby Meetup
Moffett Field, United States
In a World of Middleware, Who Needs Monolithic Applications? by Jon Crosby With Rack emerging as the standard for composing web applications and services, most recently with Rails adoption, an architectural shift is taking place. Learn how to create next generation web services by reusing existing Rack middleware and supplementing with your own components and micro-frameworks like Sinatra. Bio : Jon likes music, the Open Web, Ruby, Erlang, Haskell, Objective-C, JavaScript and coffee.
can u make the scrollbar to fading into different color to fade, means using multidimension array of your code?
cauze your code was:
var clrcodes=new Array("#4362a1","#5267a7","#5c72af","#697eb6","#6f83b9","#7b8ebf","#91a0ca", "#a9b6d6","#b9c4dd","#d1d9e9","#dde2ee","#f2f4f9","#ffffff");
how to add a new array so the fading will add different color to fade ? [complicated to say]
This thread is for discussions of Fading Scrollbar.