Advertisement
alexboev

Untitled

Apr 19th, 2013
423
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2.     //ExecuteOrDelayUntilScriptLoaded(CreateCallOutPopup, "callout.js");
  3.     _spBodyOnLoadFunctionNames.push("CreateCallOutPopup"); // use the '_spBodyOnLoadFunctionNames' instead
  4.    
  5.     function CreateCallOutPopup()
  6.     {
  7.         var targetElement = document.getElementById('LaunchCallout');
  8.         var calloutOptions = new CalloutOptions();
  9.         calloutOptions.ID = 'notificationcallout';
  10.         calloutOptions.launchPoint = targetElement;
  11.         calloutOptions.beakOrientation = 'leftRight';
  12.         calloutOptions.content = 'content';
  13.         calloutOptions.title = 'title';
  14.         var displayedPopup = CalloutManager.createNew(calloutOptions);
  15.     }
  16. </script>
  17. <div id="LaunchCallout" style="width: 150px;">LaunchCallout</div>
Advertisement
RAW Paste Data Copied
Advertisement