ulvis.paste.net - pastebin

Paste Search Dynamic
Recent pastes
/AC_ActiveX.js
  1. //v1.1
  2. //Copyright 2006 Adobe Systems, Inc. All rights reserved.
  3. function AC_AX_RunContent(){
  4.   var ret = AC_AX_GetArgs(arguments);
  5.   AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
  6. }
  7.  
  8. function AC_AX_GetArgs(args){
  9.   var ret = new Object();
  10.   ret.embedAttrs = new Object();
  11.   ret.params = new Object();
  12.   ret.objAttrs = new Object();
  13.   for (var i=0; i < args.length; i=i+2){
  14.     var currArg = args[i].toLowerCase();    
  15.  
  16.     switch (currArg){   
  17.       case "pluginspage":
  18.       case "type":
  19.       case "src":
  20.         ret.embedAttrs[args[i]] = args[i+1];
  21.         break;
  22.       case "data":
  23.       case "codebase":
  24.       case "classid":
  25.       case "id":
  26.       case "onafterupdate":
  27.       case "onbeforeupdate":
  28.       case "onblur":
  29.       case "oncellchange":
  30.       case "onclick":
  31.       case "ondblClick":
  32.       case "ondrag":
  33.       case "ondragend":
  34.       case "ondragenter":
  35.       case "ondragleave":
  36.       case "ondragover":
  37.       case "ondrop":
  38.       case "onfinish":
  39.       case "onfocus":
  40.       case "onhelp":
  41.       case "onmousedown":
  42.       case "onmouseup":
  43.       case "onmouseover":
  44.       case "onmousemove":
  45.       case "onmouseout":
  46.       case "onkeypress":
  47.       case "onkeydown":
  48.       case "onkeyup":
  49.       case "onload":
  50.       case "onlosecapture":
  51.       case "onpropertychange":
  52.       case "onreadystatechange":
  53.       case "onrowsdelete":
  54.       case "onrowenter":
  55.       case "onrowexit":
  56.       case "onrowsinserted":
  57.       case "onstart":
  58.       case "onscroll":
  59.       case "onbeforeeditfocus":
  60.       case "onactivate":
  61.       case "onbeforedeactivate":
  62.       case "ondeactivate":
  63.         ret.objAttrs[args[i]] = args[i+1];
  64.         break;
  65.       case "width":
  66.       case "height":
  67.       case "align":
  68.       case "vspace":
  69.       case "hspace":
  70.       case "class":
  71.       case "title":
  72.       case "accesskey":
  73.       case "name":
  74.       case "tabindex":
  75.         ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
  76.         break;
  77.       default:
  78.         ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
  79.     }
  80.   }
  81.   return ret;
  82. }
Parsed in 0.018 seconds