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 ...

Get Advanced JavaScript™: Insights and Innovative Techniques now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.