Get the style used by the control on the moss page

Source: Internet
Author: User

In the SDK for Windows SharePoint Services 3.0, you can obtain the styles used by various controls on the page to modify the default styles, you do not need to spend a long time searching in the style list.

 

Add a Content Editor Web part on the page for getting the style

 


Open the source editor in the Content Editor settings and enter the following code:

<Script language = "jscript">

Function classinfo ()

{

If (window. event. srcelement. classname! = NULL)

{

Stsclass. innertext = Window. event. srcelement. classname;

}

Else

{

Stsclass. innertext = "";

}

}

 

Required parameter Doc ument. Body. onmouseover = classinfo; </SCRIPT>

 

<Div style = "border-style: solid; border-width: 1px; width: 281px; Height: 34px;

Position: absolute; left: 286px; top: 41px; Z-index: 15; padding-left: 4px;

Padding-Right: 4px; padding-top: 2px; padding-bottom: 2px; Background-color: # eeeef4 ">

<P id = "stsclasstitle"> <font face = "tahoma" id = "font1"> classname: </font>

<Font face = "tahoma" id = "stsclass"> </font>

</P> </div>

Click OK. When you move the cursor over a widget on the page, the style name used by the widget is displayed.

If the position is not good, you can modify the position value in the style to change the position.

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.