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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Background and Font Color on demand

Status
Not open for further replies.

PDAnalyst

Technical User
Dec 2, 2005
72
US
Hi,

We are designing a Sharepoint 2007 site to be used in a 24 hour operation. The users will be doing blog updates and other messaging from their vehicles. At night time, they want to have the background color of the pages to be dark and fonts white or yellow (to preserve night vision) and at day white background, black font. I have searched threads but could not come up with anything.

Is there a way to achieve this by placing two buttons on the top of screen and have the users select which mode they want? If so where can I get the code?

Thanks

S.Egilmez
 
Hi,

I believe you can achieve this using a Java Script on the master page and link the script to activate from the button clicks.

The Java script would search for the body tag of your content and replace the font color, font or back color of the particular area. Its pretty simple. For reference you can use the following link -

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top