»
EnglishFrenchVietnamese

Print - ScrollBar by Using JavaScript - JavaScriptBank.com

Full version: jsB@nk » Browser » Scrollbars » ScrollBar by Using JavaScript
URL: https://www.javascriptbank.com/scrollbar-by-using-javascript.html

ScrollBar by Using JavaScript © JavaScriptBank.comThis JavaScript is upgraded version from Colorful Scrollbar script with shorter source code. Hope this version is useful for you.

Full version: jsB@nk » Browser » Scrollbars » ScrollBar by Using JavaScript
URL: https://www.javascriptbank.com/scrollbar-by-using-javascript.html



JavaScript
<SCRIPT LANGUAGE=javascript>linecolor="#8000ff";basecolor="FFFFFF";overcolor="#a2d0f7";function scrollBar(face){with(document.body.style){scrollbarDarkShadowColor=linecolor;scrollbar3dLightColor=linecolor;scrollbarArrowColor=linecolor;scrollbarBaseColor=face;scrollbarFaceColor=face;scrollbarHighlightColor=face;scrollbarShadowColor=face;scrollbarTrackColor=basecolor;}}//Copyright (c) 2002 Coyotee Labs Romania (www.coyoteelabs.go.ro)//This script can be used freely as long as all copyright messages are//intact. Visit WWW.COYOTEELABS.GO.RO for more scriptsfunction colorBar(){var w = document.body.clientWidth;var h = document.body.clientHeight;var x = event.clientX;var y = event.clientY;if(x>w) scrollBar(overcolor);else scrollBar(basecolor);}if (document.all){scrollBar(basecolor);document.onmousemove=colorBar;}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->