Forums
This topic is locked
color scroll bar
Posted 03 Jul 2001 11:42:09
1
has voted
03 Jul 2001 11:42:09 thitipong mahamee posted:
Hi...anyone who know about how to make the color scroll bar...can I do in DW. or should have any script.?
thanks.
Pong
Replies
Replied 04 Jul 2001 10:27:47
04 Jul 2001 10:27:47 Bo Johansen replied:
Hi.
Put this between your head tag
<style>
body {
scrollbar-face-color: #6c7198;
scrollbar-shadow-color: #FFFFFF;
scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #6c7198;
scrollbar-darkshadow-color: #6c7198;
scrollbar-track-color: #6c7198;
scrollbar-arrow-color: #FFFFFF;
}
</style>
Put this between your head tag
<style>
body {
scrollbar-face-color: #6c7198;
scrollbar-shadow-color: #FFFFFF;
scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #6c7198;
scrollbar-darkshadow-color: #6c7198;
scrollbar-track-color: #6c7198;
scrollbar-arrow-color: #FFFFFF;
}
</style>
Replied 04 Jul 2001 10:28:39
04 Jul 2001 10:28:39 Bo Johansen replied:
Note that you must be running IE 5.5 or higher
Replied 04 Jul 2001 12:27:21
04 Jul 2001 12:27:21 Waldo Smeets replied:
We have an extension to do this: www.UDzone.com/go?574
Waldo Smeets - www.UDzone.com Webmaster
------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
------------------------------------------
Waldo Smeets - www.UDzone.com Webmaster
------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
------------------------------------------
Replied 09 Jul 2001 18:23:38
09 Jul 2001 18:23:38 Jesse Muller replied:
he there is also a mouseover scrollbar script
it is long but if you had found out the first this will be easy...
put this in your head:
<script language="JavaScript1.2">
<!--
/*---------------[IE 5.5 Scrollbars colorer]--------------------*/
function scrollBar(line,face,theme)
{
if (!line||!face)
{
line=null;
face=null;
switch(theme) // Predefined themes
{
case "blue":
var line="#78AAFF";
var face="#EBF5FF";
break;
case "orange":
var line="#FBBB37";
var face="#FFF9DF";
break;
case "red":
var line="#FF7979";
var face="#FFE3DD";
break;
case "green":
var line="#00C600";
var face="#D1EED0";
break;
case "neo":
var line="#BC7E41";
var face="#EFE0D1";
break;
}
}
with(document.body.style)
{
scrollbarDarkShadowColor=line;
scrollbar3dLightColor=line;
scrollbarArrowColor="black";
scrollbarBaseColor=face;
scrollbarFaceColor=face;
scrollbarHighlightColor=face;
scrollbarShadowColor=face;
scrollbarTrackColor="#F3F3F3";
}
}
/*------------------[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('#000080','#BFDFFF'); // Your colors
else scrollBar(null,null,"neo" // A predefined theme
}
if (document.all){
scrollBar(null,null,"neo"
document.onmousemove=colorBar;
}
//-->
</script>
POWER TO THE POSITIVE PEOPLE!!!
it is long but if you had found out the first this will be easy...
put this in your head:
<script language="JavaScript1.2">
<!--
/*---------------[IE 5.5 Scrollbars colorer]--------------------*/
function scrollBar(line,face,theme)
{
if (!line||!face)
{
line=null;
face=null;
switch(theme) // Predefined themes
{
case "blue":
var line="#78AAFF";
var face="#EBF5FF";
break;
case "orange":
var line="#FBBB37";
var face="#FFF9DF";
break;
case "red":
var line="#FF7979";
var face="#FFE3DD";
break;
case "green":
var line="#00C600";
var face="#D1EED0";
break;
case "neo":
var line="#BC7E41";
var face="#EFE0D1";
break;
}
}
with(document.body.style)
{
scrollbarDarkShadowColor=line;
scrollbar3dLightColor=line;
scrollbarArrowColor="black";
scrollbarBaseColor=face;
scrollbarFaceColor=face;
scrollbarHighlightColor=face;
scrollbarShadowColor=face;
scrollbarTrackColor="#F3F3F3";
}
}
/*------------------[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('#000080','#BFDFFF'); // Your colors
else scrollBar(null,null,"neo" // A predefined theme
}
if (document.all){
scrollBar(null,null,"neo"
document.onmousemove=colorBar;
}
//-->
</script>
POWER TO THE POSITIVE PEOPLE!!!