function scrollBar(line,face,theme)
{
if (!line||!face)
{
line=null;
face=null;
switch(theme) // Predefined themes
{
case "neo":
var line="#000000";
var face="#000000";
break;
}
}
with(document.body.style)
{
scrollbarArrowColor="#000000";
scrollbarBaseColor="#000000";
scrollbarFaceColor=face;
scrollbarTrackColor="#000000";
}
}

function colorBar(){
var w = document.body.clientWidth;
var h = document.body.clientHeight;
var x = event.clientX;
var y = event.clientY;
if(x>w) scrollBar('#000000','#191970'); // Your colors
else scrollBar(null,null,"neo"); // A predefined theme
}

if (document.all){
scrollBar(null,null,"neo");
document.onmousemove=colorBar;
}