Results 1 to 3 of 3

Thread: Scrollable content II All, Change BGColor

  1. #1
    Join Date
    Jan 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Scrollable content II All, Change BGColor

    Scrollable content II All
    http://dynamicdrive.com/dynamicindex11/scrollc2.htm

    This seems like such a simple question, but How do I change the background color? Or insert a background image?

    Thanks.

  2. #2
    Join Date
    Dec 2004
    Posts
    177
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default

    find this line:
    Code:
    document.write('<div id="container" style="position:relative;width:175px;height:160px;border:1px solid black;overflow:hidden">')
    change to:
    Code:
    document.write('<div id="container" style="position:relative;width:175px;height:160px;border:1px solid black;overflow:hidden;background:white">')
    where white is either a common color name, RGB values (#RRGGBB), or an image [... :url(./images/myBG.jpg)]
    Verzeihung!

  3. #3
    Join Date
    Jan 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks a million! It worked like a charm.

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
  •