Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doOnloads()
- {
- // order is everything - don't change it
- initFW();
- loadFrameContents();
- prepLyr('cwc_threadtabs');
- document.onkeyup = cwcKeyHandler;
- document.onkeypress = stopEventForF1;
- checkShowHideMasthead("<%= user.getUserName() %>");
- if (typeof cwc.navmenu != 'undefined' && window.YAHOO)
- YAHOO.util.Event.addListener(window, "beforeunload", cwc.navmenu.breadCrumb.saveCrumbs, cwc.navmenu.breadCrumb, true);
- cwc.Dom.preLoadImages();
- hi();
- }
- function hi()
- {
- // do the magic thing
- jQuery("#detail").load(
- function()
- {
- //alert("<%=request.getServerName() %>");
- //var remoteaddr = "<%=request.getRemoteAddr() %>";
- //if (remoteaddr=="http://172.21.20.30:8080/webtier-7.11/ess.do")
- var remotehost = "<%=request.getRemoteHost() %>";
- 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")
- {
- //IMAGENES
- //jQuery("#detail").contents().find("img[src|='images/obj16/image_obj.gif']")[0].src="images/obj16/alert_log.gif"
- //LINKS
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].innerText="Banco";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].href="http://www.google.cl?banco";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].target="_new";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].title="Haga Click aqui para resetaer su password";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].setAttribute('className', 'LinkBlanco');
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].setAttribute('class', 'LinkBlanco');
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].style.left ="6.1%";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO']")[0].style.top = "317px";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].innerText="AFP";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].href="http://www.google.cl?banco";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].target="_new";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].title="Haga Click aqui para resetaer su password";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].setAttribute('className', 'LinkBlanco');
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].setAttribute('class', 'LinkBlanco');
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].style.left ="12.1%";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO2']")[0].style.top = "317px";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].innerText="GRUPO BBVA";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].href="http://www.google.cl?banco";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].target="_new";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].title="Haga Click aqui para resetaer su password";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].setAttribute('className', 'LinkBlanco');
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].setAttribute('class', 'LinkBlanco');
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].style.left ="18.1%";
- jQuery("#detail").contents().find("a[ButtonID|='LINKBANCO3']")[0].style.top = "317px";
- jQuery("#detail").contents().find("input[ButtonId|='user']")[0].parentNode.style.left ="16.1%";
- jQuery("#detail").contents().find("input[ButtonId|='user']")[0].parentNode.style.top ="168px";
- jQuery("#detail").contents().find("input[ButtonId|='pass']")[0].parentNode.style.left ="16.1%";
- jQuery("#detail").contents().find("input[ButtonId|='pass']")[0].parentNode.style.top ="192px";
- jQuery("#detail").contents().find("input[ButtonID|='0']")[0].parentNode.style.left ="6.2%";
- jQuery("#detail").contents().find("input[ButtonID|='0']")[0].parentNode.style.top ="230px";
- jQuery("#detail").contents().find("input[ButtonID|='3']")[0].parentNode.style.left ="25.2%";
- jQuery("#detail").contents().find("input[ButtonID|='3']")[0].parentNode.style.top ="230px";
- // TEXTOS
- jQuery("#detail").contents().find("span").filter(
- function (index)
- {
- if (jQuery(this).html().indexOf("Usuario:",0)!=-1)
- {
- //jQuery(this).html(jQuery(this).html().replace("texto1","1.- Ingrese su usuario, corresponde al 'H' en mayúsculas."));
- jQuery(this)[0].style.top = "172px";
- jQuery(this)[0].style.left = "6.2%";
- jQuery(this)[0].style.color = "#FFFFFF";
- return true;
- }
- if (jQuery(this).html().indexOf("Contraseña:",0)!=-1)
- {
- //jQuery(this).html(jQuery(this).html().replace("texto1","1.- Ingrese su usuario, corresponde al 'H' en mayúsculas."));
- jQuery(this)[0].style.top = "197px";
- jQuery(this)[0].style.left = "6.2%";
- jQuery(this)[0].style.color = "#FFFFFF";
- return true;
- }
- if (jQuery(this).html().indexOf("texto1",0)!=-1)
- {
- jQuery(this).html(jQuery(this).html().replace("texto1","1.- Ingrese su usuario, corresponde al 'H' en mayúsculas."));
- //jQuery(this)[0].style.left = "33.8%";
- jQuery(this)[0].style.left = "41.8%";
- jQuery(this)[0].style.color = "#FFFFFF";
- return true;
- }
- if (jQuery(this).html().indexOf("texto2",0)!=-1)
- {
- jQuery(this).html(jQuery(this).html().replace("texto2","2.- Ingrese su contraseña, la primera vez corresponde al 'H' en mayúsculas."));
- //jQuery(this)[0].style.left = "33.8%";
- jQuery(this)[0].style.left = "41.8%";
- jQuery(this)[0].style.color = "#FFFFFF";
- return true;
- }
- if (jQuery(this).html().indexOf("texto3",0)!=-1)
- {
- jQuery(this).html(jQuery(this).html().replace("texto3","Señor usuario ¿olvidó su clave de Windows?."));
- jQuery(this)[0].style.top = "297px";
- jQuery(this)[0].style.left = "6.2%";
- jQuery(this)[0].style.color = "#FFFFFF";
- return true;
- }
- if (jQuery(this).html().indexOf("texto4",0)!=-1)
- {
- jQuery(this).html(jQuery(this).html().replace("texto4","o"));
- jQuery(this)[0].style.top = "317px";
- jQuery(this)[0].style.left = "10.1%";
- jQuery(this)[0].style.color = "#FFFFFF";
- return true;
- }
- if (jQuery(this).html().indexOf("texto5",0)!=-1)
- {
- jQuery(this).html(jQuery(this).html().replace("texto5","o"));
- jQuery(this)[0].style.top = "317px";
- jQuery(this)[0].style.left = "16.1%";
- jQuery(this)[0].style.color = "#FFFFFF";
- return true;
- }
- });
- }
- });
- }
- addLoadEvent(doOnloads);
Advertisement
Add Comment
Please, Sign In to add comment