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.
It worked for me but, still I am not able to remove the border.
ReplyDeleteAny idea how to remove the border.
Thanks