NameCtrl.ShowOOUI Method
Applies to: SharePoint Foundation 2010
Displays an on-object UI for a specified user name and is typically used with the onmouseover event.
expression.ShowOOUI(bstrName, iInputType, xLeft, yTop)
Parameters
expression
An expression that returns a NameCtrl Control object.
bstrName
Required String. Contains the logon name of the user (for example, someone@example.com).
iInputType
Required Long. Indicates whether the user moved the pointer over a name (in other words, whether the HTML <DIV> tag on the page received the onmouseover event) or used the keyboard to put focus on the name (the HTML <DIV> tag received the onfocusin event).
xLeft
Required Long. Specifies in pixels the x-coordinate of the location to display the on-object UI relative to the top-left corner of the application window.
yTop
Required Long. Specifies in pixels the y-coordinate of the location to display the on-object UI relative to the top-left corner of the application window.
Example
If a name is in a cell of a top-level table, and the body of the page has id = main, the top coordinate is:
obj.offsetTop + obj.offsetParent.offsetTop – main.scrollTop