March 10, 2004

Helpful when messing with SharePoint UI

MSDN SPS Cascading StyleSheet Info

Here is a helpful MSDN article when messing with SharePoint's UI.  Here is an implementation of the script they show on the page, slightly modified.  It displays the current style that is applied to the object under the mouse.

<SCRIPT type=text/javascript>function ClassInfo()
{
if (window.event.srcElement.className != null)
{
window.status = window.event.srcElement.className;
}
else
{
window.status = "";
}
}
</SCRIPT>
------------------------
<BODY onmouseover="ClassInfo()">
ClassInfo() Example
I found it to be semi useful and hope that it helps someone else as well.

0 Comments:

Post a Comment

<< Home