• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The Main Functions

When the page loads, the first function called is StartIt. Let's take a look at it in Example 13-6.

Example 13-6. HM_f_StartIt

function HM_f_StartIt()
{
     if(HM_AreCreated) return;
     if((typeof(document.body) == "undefined") ||
       (document.body == null)) return;

     if(HM_IE) HM_IEcanvas = HM_IECSS ?
         document.documentElement : document.body;

     HM_AreLoaded = true;
     if (HM_ClickKill)
     {
       HM_f_OtherMouseDown = (document.onmousedown) ?
       document.onmousedown :  new Function;
       document.onmousedown = function()
       {
             HM_f_PageClick();
             HM_f_OtherMouseDown()
}
     }
     else
     {
       HM_TopMilliSecondsVisible =
             HM_TopSecondsVisible * 1000;
     }
     HM_f_MakeTrees();
     HM_f_OtherOnLoad();
}


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint