function scrollBar(line,face,theme) { if (!line||!face) { line=null; face=null; switch(theme) // Predefined themes { case "blue": var line="#808080"; //kontur balken mouse out var face="#ffffff"; // balken mouse out break; } } with(document.body.style) { scrollbarDarkShadowColor=line; scrollbar3dLightColor=line; scrollbarArrowColor="#808080"; //pfeil scrollbalken scrollbarBaseColor=face; scrollbarFaceColor=face; scrollbarHighlightColor=face; scrollbarShadowColor=face; scrollbarTrackColor="#ffffff"; //balkenhintergrund } } /*------------------[Pointer coordinates catcher]---------------*/ 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','#e4e4e4'); // mouseover: kontur, füllung else scrollBar(null,null,"blue"); // A predefined theme } if (document.all) { scrollBar(null,null,"blue"); document.onmousemove=colorBar; }