Coloring scrollbar. One works. One doesn't"

Discussion in 'ASP .Net' started by AAaron123, Aug 22, 2008.

  1. AAaron123

    AAaron123 Guest

    hree questions. Number 3 is the tough one!


    {
    var htmlStyle = document.getElementsByTagName('html')[0].style;
    var x = document.body.style;
    x.scrollbarShadowColor = htmlStyle.scrollbarShadowColor = "maroon"
    ....snip...
    The above script works but I have some questions:


    1) my document does not say so but it looks like javascript allows
    z=x=5 to set z and x to 5
    correct?

    2)Doesn't the body get the attributes, including style, of the html tag?
    Why is it necessary to set the body attributes?


    3) Most important question:
    The body contains a table containing
    <asp:TableCell ID=...
    <asp:ContentPlaceHolder ID="MainMasterLeftDataID" ...
    </asp:TableCell>

    The asp:Content is basically
    <iframe id="MissionScheduleID" frameborder="0" src="Schedule.htm"...


    The end result is that Schedule.htm shows with a scrollbar.
    But the scrollbar is not colored.
    I assume it's the iframe that creates the scrollbat. Correct?

    How can I get that scrollbar to be colored???
     
    AAaron123, Aug 22, 2008
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jan Paul van de Berg

    CDO.message: one from address works, other doesn't

    Jan Paul van de Berg, Dec 28, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    704
    Jan Paul van de Berg
    Dec 31, 2006
  2. Luminari
    Replies:
    23
    Views:
    1,023
    Wings
    Feb 11, 2007
  3. Gary
    Replies:
    6
    Views:
    669
    Richard
    Aug 6, 2006
  4. KL
    Replies:
    1
    Views:
    678
    eb303
    Apr 20, 2010
  5. petersonrj
    Replies:
    0
    Views:
    234
    petersonrj
    Sep 17, 2004
  6. Dominick Baier
    Replies:
    2
    Views:
    487
    Patrick.O.Ige
    Oct 21, 2004
  7. Alex

    ScrollBar? Does it exist just WEB ScrollBar Control?

    Alex, Apr 1, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    452
    Alvin Bruney [MVP]
    Apr 4, 2004
  8. Luminari
    Replies:
    0
    Views:
    236
    Luminari
    Feb 8, 2007
Loading...