If somebody like the post and its helpful in your work then, add comments.

Thursday, July 2, 2009

Change the Top Tool Bar color in FormServer.aspx page in SharePoint 2007

To change the color of the toolbar in the InfoPath formserver.aspx page in SharePoint2007 follow these steps:

1. Go to following location "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS".
2. Open the page "FormServer.aspx" in notepad.
3. Write the tag of scripting below page directive and copy paste this below script

//function changeColor()
//document.getElementById("__toolbar_top").style.backgroundColor = "#E96A37";

4. Call this function in the body OnLoad event tage of the page.

body OnLoad="javascript:changeColor()" style="margin: 0px;overflow:auto;"

5. The resultant change in the page

We have to adopt this approach because there is no css class is attached with this div. Inline styles are written instead of CSS Class.

1 comment:

  1. It worked for me but, still I am not able to remove the border.
    Any idea how to remove the border.