subaccountsbyurl.js
上传用户:zhihaomold
上传日期:2007-04-17
资源大小:43041k
文件大小:2k
源码类别:

其他

开发平台:

Objective-C

  1. function trackSubAccounts()
  2. {
  3.     //serverHash = new Hash(
  4.     //                      "focus.ti.com.cn", "DM5210172AWA"                      //TI China Acct#
  5.     //                      );
  6.                          
  7.     //pathHash   = new Hash(
  8.     //                      "cn/analog/docs", "DM5210172AWA",               //Analog China Acct#
  9.     //                      "cn/tihome/docs", "DM5210172AWA",               //Tihome China Acct#
  10.     //                      "cn/dsp/docs", "DM5210172AWA",                //DSP China Account#
  11.     //                      "cn/paramsearch/docs", "DM5210172AWA"    //Paramsearch China Account#
  12.     //                      );   
  13.     
  14.     //hostName = self.location.hostname.toLowerCase();
  15.     
  16.    // var subaccounts_list;
  17.     
  18.     //for (key in serverHash)
  19.     //{
  20.     //    if(hostName.indexOf(key) != -1 )
  21.     //    {
  22.     //        subaccounts_list = serverHash[key];            
  23.     //        break;
  24.     //    }
  25.     //}
  26.     
  27.     //if(subaccounts_list != null)
  28.     //{
  29.     //    pathName = self.location.pathname.toLowerCase();
  30.     //    var arrStrings = pathName.split("/");
  31.         
  32.     //    if(arrStrings.length >= 4 )
  33.     //    {
  34.     //        pathName = arrStrings[1] + "/" + arrStrings[2];
  35.             
  36.             // sites which have string1/string2 pattern in  pathHash          
  37.     //        if (pathHash[pathName] != null)
  38.     //        {
  39.     //            subaccounts_list +=";" + pathHash[pathName];
  40.     //        }
  41.     //        
  42.     //        // sites which have string1/string2/string3 pattern in  pathHash          
  43. //    pathName = arrStrings[1] + "/" + arrStrings[2] + "/" + arrStrings[3];             
  44.     
  45. //    if (pathHash[pathName] != null)
  46.     //        {
  47.     //            subaccounts_list +=";" + pathHash[pathName];
  48.     //        }     
  49.     //    }
  50.     //}
  51.     
  52.     //if (subaccounts_list == null)
  53.     //{
  54.     //    subaccounts_list = serverHash["focus"];
  55.     //}    
  56.     acctNo = 'DM5210172AWA';    
  57.     return;
  58. }