PDA

View Full Version : Scrollable content II All, Change BGColor



BeverlyS
01-29-2005, 10:43 PM
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.

Minos
01-30-2005, 03:16 AM
find this line:


document.write('<div id="container" style="position:relative;width:175px;height:160px;border:1px solid black;overflow:hidden">')


change to:


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)]

BeverlyS
01-30-2005, 03:23 AM
Thanks a million! It worked like a charm.