Guest User

HPSM Stuff

a guest
Jun 12th, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function doOnloads()
  2.       {
  3.         // order is everything - don't change it
  4.  
  5.         initFW();
  6.         loadFrameContents();
  7.         prepLyr('cwc_threadtabs');
  8.         document.onkeyup = cwcKeyHandler;
  9.         document.onkeypress = stopEventForF1;
  10.         checkShowHideMasthead("<%= user.getUserName() %>");
  11.         if (typeof cwc.navmenu != 'undefined' && window.YAHOO)
  12.           YAHOO.util.Event.addListener(window, "beforeunload", cwc.navmenu.breadCrumb.saveCrumbs, cwc.navmenu.breadCrumb, true);
  13.         cwc.Dom.preLoadImages();
  14.        hi();
  15.       }
  16.  
  17.     function hi()
  18.     {
  19.     // do the magic thing
  20.      jQuery("#detail").load(
  21.         function()
  22.         {
  23.             //alert("<%=request.getServerName() %>");
  24.            
  25.             //var remoteaddr = "<%=request.getRemoteAddr() %>";
  26.             //if (remoteaddr=="http://172.21.20.30:8080/webtier-7.11/ess.do")
  27.            
  28.             var remotehost = "<%=request.getRemoteHost() %>";
  29.             if (document.location.href=="http://172.21.20.30:8080/webtier-7.11/ess.do" || document.location.href=="http://172.21.20.30:8080/webtier-7.11/index.do" || document.location.href=="http://172.21.20.30:8080/webtier-7.11/ess.do?essuser=true")
  30.             {
  31.                 //IMAGENES
  32.                 //jQuery("#detail").contents().find("img[src|='images/obj16/image_obj.gif']")[0].src="images/obj16/alert_log.gif"              
  33.                  
  34.                 //LINKS
  35.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].innerText="Banco";
  36.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].href="http://www.google.cl?banco";
  37.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].target="_new";
  38.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].title="Haga Click aqui para resetaer su password";
  39.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].setAttribute('className', 'LinkBlanco');
  40.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].setAttribute('class', 'LinkBlanco');
  41.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].style.left ="6.1%";
  42.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].style.top = "317px";
  43.  
  44.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].innerText="AFP";
  45.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].href="http://www.google.cl?banco";
  46.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].target="_new";
  47.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].title="Haga Click aqui para resetaer su password";
  48.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].setAttribute('className', 'LinkBlanco');
  49.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].setAttribute('class', 'LinkBlanco');
  50.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].style.left ="12.1%";
  51.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].style.top = "317px";
  52.                
  53.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].innerText="GRUPO BBVA";
  54.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].href="http://www.google.cl?banco";
  55.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].target="_new";
  56.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].title="Haga Click aqui para resetaer su password";
  57.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].setAttribute('className', 'LinkBlanco');
  58.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].setAttribute('class', 'LinkBlanco');
  59.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].style.left ="18.1%";
  60.                 jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].style.top = "317px";
  61.                
  62.                 jQuery("#detail").contents().find("input[ButtonId|='user']")[0].parentNode.style.left ="16.1%";
  63.                 jQuery("#detail").contents().find("input[ButtonId|='user']")[0].parentNode.style.top ="168px";
  64.                 jQuery("#detail").contents().find("input[ButtonId|='pass']")[0].parentNode.style.left ="16.1%";
  65.                 jQuery("#detail").contents().find("input[ButtonId|='pass']")[0].parentNode.style.top ="192px";             
  66.                 jQuery("#detail").contents().find("input[ButtonID|='0']")[0].parentNode.style.left ="6.2%";
  67.                 jQuery("#detail").contents().find("input[ButtonID|='0']")[0].parentNode.style.top ="230px";            
  68.                 jQuery("#detail").contents().find("input[ButtonID|='3']")[0].parentNode.style.left ="25.2%";
  69.                 jQuery("#detail").contents().find("input[ButtonID|='3']")[0].parentNode.style.top ="230px";
  70.                 // TEXTOS
  71.                 jQuery("#detail").contents().find("span").filter(
  72.                     function (index)
  73.                     {
  74.                         if (jQuery(this).html().indexOf("Usuario:",0)!=-1)
  75.                         {
  76.                             //jQuery(this).html(jQuery(this).html().replace("texto1","1.- Ingrese su usuario, corresponde al 'H' en mayúsculas."));
  77.                                                 jQuery(this)[0].style.top = "172px";
  78.                             jQuery(this)[0].style.left = "6.2%";
  79.                             jQuery(this)[0].style.color = "#FFFFFF";
  80.                             return true;
  81.                         }
  82.                         if (jQuery(this).html().indexOf("Contraseña:",0)!=-1)
  83.                         {
  84.                             //jQuery(this).html(jQuery(this).html().replace("texto1","1.- Ingrese su usuario, corresponde al 'H' en mayúsculas."));
  85.                                                 jQuery(this)[0].style.top = "197px";
  86.                             jQuery(this)[0].style.left = "6.2%";
  87.                             jQuery(this)[0].style.color = "#FFFFFF";
  88.                             return true;
  89.                         }
  90.                    
  91.  
  92.                         if (jQuery(this).html().indexOf("texto1",0)!=-1)
  93.                         {
  94.                             jQuery(this).html(jQuery(this).html().replace("texto1","1.- Ingrese su usuario, corresponde al 'H' en mayúsculas."));
  95.                                                 //jQuery(this)[0].style.left = "33.8%";
  96.                             jQuery(this)[0].style.left = "41.8%";
  97.                             jQuery(this)[0].style.color = "#FFFFFF";
  98.                             return true;
  99.                         }
  100.                         if (jQuery(this).html().indexOf("texto2",0)!=-1)
  101.                         {
  102.                             jQuery(this).html(jQuery(this).html().replace("texto2","2.- Ingrese su contraseña, la primera vez corresponde al 'H' en mayúsculas."));
  103.                                                 //jQuery(this)[0].style.left = "33.8%";
  104.                             jQuery(this)[0].style.left = "41.8%";
  105.                             jQuery(this)[0].style.color = "#FFFFFF";
  106.                             return true;
  107.                         }
  108.                         if (jQuery(this).html().indexOf("texto3",0)!=-1)
  109.                         {
  110.                             jQuery(this).html(jQuery(this).html().replace("texto3","Señor usuario ¿olvidó su clave de Windows?."));
  111.                                                 jQuery(this)[0].style.top = "297px";
  112.                             jQuery(this)[0].style.left = "6.2%";
  113.                             jQuery(this)[0].style.color = "#FFFFFF";
  114.                             return true;
  115.                         }
  116.                         if (jQuery(this).html().indexOf("texto4",0)!=-1)
  117.                         {
  118.                             jQuery(this).html(jQuery(this).html().replace("texto4","o"));
  119.                                                 jQuery(this)[0].style.top = "317px";
  120.                             jQuery(this)[0].style.left = "10.1%";
  121.                             jQuery(this)[0].style.color = "#FFFFFF";
  122.                             return true;
  123.                         }
  124.                         if (jQuery(this).html().indexOf("texto5",0)!=-1)
  125.                         {
  126.                             jQuery(this).html(jQuery(this).html().replace("texto5","o"));
  127.                                                 jQuery(this)[0].style.top = "317px";
  128.                             jQuery(this)[0].style.left = "16.1%";
  129.                             jQuery(this)[0].style.color = "#FFFFFF";
  130.                             return true;
  131.                         }
  132.  
  133.  
  134.                     });
  135.             }
  136.         });
  137.     }
  138.  
  139.     addLoadEvent(doOnloads);
Advertisement
Add Comment
Please, Sign In to add comment