Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting the page background color

Status
Not open for further replies.

KirkKelly

Programmer
Jan 5, 2001
15
US
If you store the desired hex value for the color in a session object, you can use it to set the background color of a page. I put the code in the pageGenerateBegin, but it may be better suited in the pageLoad section:

Code:
String dbColor="";
dbColor = (String) getSessionValue("pgBackGroundColor");
writeScript("document.bgColor='"+dbColor+"';");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top