SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    May 2002
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Colorful scrollbars

    Hi everybody,
    I checked the tutorial to make colorful scrollbars, and I made my first test. When I checked it, I saw that it does not work on my computer. (neither does the css type of colorful scrollbars) Can you please indicate to me where is my mistake.Here is the code.
    Thanking you in advance
    Hrisula

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
    <HTML>
    <HEAD> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    document.body.style.scrollbarFaceColor="red"
    document.body.style.scrollbarArrowColor="black"
    document.body.style.scrollbarTrackColor="yellow"
    document.body.style.scrollbarShadowColor="blue"
    document.body.style.scrollbarHighlightColor="red"
    document.body.style.scrollbar3dlightColor="white"
    document.body.style.scrollbarDarkshadowColor="green"

    </SCRIPT>
    <TITLE></TITLE>
    </HEAD>
    <BODY>... there is a long text here... </BODY>
    </HTML>

  2. #2
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    UK
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Doesn't want to work in the HEAD, works in BODY though, or maybe if you encapsulated it in a function and put it in the onLoad event handler of the BODY tag, that would work.

  3. #3
    SitePoint Member
    Join Date
    May 2002
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I put it in the body, still does not want to work!

    I don't know how to encapsulate it in a function

    Hrisula

  4. #4
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    UK
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Figured it out. Your current doctype doesn't seem to like IE5 (.5?)'s little gizmo, because removing the tag makes it work.

    And it can't find the object (body) when it's in the head, because the body doesn't load before the head, or something.

    This works:

    PHP Code:
    <HTML
    <
    HEAD>  
    <
    TITLE></TITLE
    </
    HEAD
    <
    BODY>
    <
    SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    document.body.style.scrollbarFaceColor="red"
    document.body.style.scrollbarArrowColor="black" 
    document.body.style.scrollbarTrackColor="yellow"
    document.body.style.scrollbarShadowColor="blue" 
    document.body.style.scrollbarHighlightColor="red"
    document.body.style.scrollbar3dlightColor="white" 
    document.body.style.scrollbarDarkshadowColor="green"
    </SCRIPT>
    ... there is a long text here...
    </BODY> 
    </HTML> 

  5. #5
    SitePoint Member
    Join Date
    May 2002
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes indeed it does.
    Thank you so much for your help
    Hrisula

  6. #6
    long gone but not forgotten AljapaCo's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any particular reason for using Java Script instead of CSS??
    T O B I A S - S T R A N D H | visit my site here
    OPERA7 /MSIE6 /FireFox 1.1/Win2000 /ADSL /17" Screen /1024x768
    god doesn't create genius, he clones me.............

  7. #7
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    UK
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sommat to do with http://www.webmasterbase.com/article/643 maybe.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •