August 31, 2000 - Coloring the Scrollbar's 3D Light
August 31, 2000 Coloring the Scrollbar's 3D Light Tips: August 2000
Yehuda Shiran, Ph.D.
|
object.style.scrollbar3dLightColor = vColor;
where vColor
is a color name or an RGB value.
The following TEXTAREA
demonstrates the scrollbar3dLightColor
property (works only in IE 5.5 and up). Click one of the two links to the right of the window, and color the 3D lighted edges will turn red or green:
TEXTAREA
and links:
<TEXTAREA ID="longWord" ROWS="5">
Long Line Long Line Long Line Long Line Long Line Long Line Long Line Long Line Long Line Long
Line Long Line Long Line Long Line Long Line Long Line Long Line Long Line Long Line Long Line
Long Line Long Line Long Line Long Line Long Line Long Line Long Line Long Line Long Line Long
Line Long Line Long Line Long Line Long Line Long Line Long Line Long Line Long Line Long Line
Long Line
</TEXTAREA>
<A HREF="javascript:void(longWord.style.scrollbar3dLightColor='red')"><FONT COLOR="red">red 3D light</FONT></A>
<A HREF="javascript:void(longWord.style.scrollbar3dLightColor='green')"><FONT COLOR="green">green 3D light</FONT></A>
Notice the usage of void()
above. It is necessary to avoid overwriting of the page with the return value from the javascript:
call, which is the property assignment value (red
or green
).