B i t s O f S h a r e P o i n t C o n s u l t i n g L L C > ExamplePoint > Code List  

Code List

Modify settings and columns
List of code for examples, webpart and .js files.
  
View: 
Sort by AttachmentsUse SHIFT+ENTER to open the menu (new window).
CodeFilterPage LinkFilter
LoadTipUse SHIFT+ENTER to open the menu (new window).
LoadTip WebPartLoadtTip JQuery File
  1. <style type="text/css">
  2. #loadTip{  
  3.     background: #6F9DD9;  
  4.     color: #fff;
  5.     border: 2px solid #6F9DD9;  
  6.     font-size: 10px;  
  7.     padding: 3px;  
  8.     width: 342px;
  9.     display: none;
  10.     position: absolute;
  11.     text-align: right;
  12. }
  13. #tipContent {
  14.     background: #fff;
  15.     padding: 3px;
  16. }
  17. </style>
  18.  
  19. <script type="text/javascript">
  20. if(typeof jQuery=='undefined'){
  21.     var jQPath = 'http://ajax.googleapis.com/ajax/libs/jquery/1.3/'
  22.     document.write('<script src="',jQPath,'jquery.min.js" type="text/javascript"><\/script>');
  23. }
  24. </script>
  25. <script type="text/javascript">
  26. function handleError() {
  27.     return true;
  28. }
  29. function initLoadTip(group) {
  30.     var loadTip = $("#loadTip");
  31.     if (!group) group = "#MSO_ContentTable";
  32.     var arrayList = $(group+" a[href*='DispForm.aspx']");
  33.     $.each(arrayList, function(i,e){
  34.         var a = $(e).attr("href").split("#");
  35.         $.data(e,"dispTarget",a[0]);
  36.         $(e).mouseenter(function(event){
  37.             var cssShow = {"top":event.pageY, "left":event.pageX+10};
  38.             if ($.data(loadTip,"dispTarget") && $.data(loadTip,"dispTarget") == $.data(e,"dispTarget")) {
  39.                 loadTip.css(cssShow).show();
  40.             }else{
  41.                 if (loadTip.timer) clearTimeout(loadTip.timer);
  42.                 loadTip.timer = setTimeout(function () {
  43.                     $("#tipContent").load(a[0]+" .ms-formtable", function(){
  44.                         loadTip.css(cssShow).show();
  45.                         $.data(loadTip,"dispTarget",a[0]);
  46.                     });
  47.                 }, 200);
  48.             }
  49.         });
  50.         loadTip.click(function(){
  51.             loadTip.hide();
  52.         });
  53.     });
  54. }
  55. function ExpGroupRenderData(htmlToRender, groupName, isLoaded) {
  56.     $("#tbod"+groupName+"_").attr("isloaded",isLoaded)
  57.         .html(htmlToRender)
  58.         .show("fast",initLoadTip("#tbod"+groupName+"_"));
  59. }
  60. $(function() {
  61.     window.onerror = handleError;
  62.     $(document.createElement("div")).attr("id","loadTip")
  63.         .html("<span>click to close </span><img style='vertical-align:text-top;' src='/_layouts/images/menudark.gif' alt=''/>")
  64.         .appendTo("body");
  65.     $(document.createElement("div")).attr("id","tipContent")
  66.         .appendTo("#loadTip");
  67.     initLoadTip();
  68. });
  69. </script>