Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2008
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Javascipt Clueless

    I know nothing about Javascript and just recently found out that the navigation of the site I am trying to edit is done completely in Javascript only I can't even figure out how to edit it. To me it looks like the code has been generated by something if someone can help me figure out what that is or give me an idea on how to edit this monster script that would be a huge help.

    web address: www.hotelroanoke.com

    Here is a snippet, yes snippet, of what I am dealing with. Apparently I can't attach a file on here.

    Code:
    var nTCode=[];var AnimStep=0;var AnimHnd=0;var NSDelay=0;var MenusReady=false;var smHnd=0;var mhdHnd=0;var lsc=null;var imgObj=null;var IsContext=false;var IsFrames=false;var dxFilter="progid:DXImageTransform.Microsoft.Fade(overlap=1,duration=0.5)";var AnimSpeed=50;var TimerHideDelay=458;var smDelay=259;var rmDelay=266;var scDelay=150;var cntxMenu='';var DoFormsTweak=true;var mibc=0;var mibm;var mibs=490;var nsOWH;var mFrame;var cFrame=self;var om=[];var nOM=0;var mX;var mY;var BV=parseFloat(navigator.appVersion.indexOf("MSIE")>0?navigator.appVersion.split(";")[1].substr(6):navigator.appVersion);var BN=navigator.appName;var nua=navigator.userAgent;var IsWin=(nua.indexOf('Win')!=-1);var IsMac=(nua.indexOf('Mac')!=-1);var KQ=(BN.indexOf('Konqueror')!=-1&&(BV>=5))||(nua.indexOf('Safari')!=-1);var OP=(nua.indexOf('Opera')!=-1&&BV>=4);var NS=(BN.indexOf('Netscape')!=-1&&(BV>=4&&BV<5)&&!OP);var SM=(BN.indexOf('Netscape')!=-1&&(BV>=5)||OP);var IE=(BN.indexOf('Explorer')!=-1&&(BV>=4)||SM||KQ);if(nua.indexOf("Netscape/8.1")!=-1) document.open=new Function('');if(IE&&!SM&&(BV>5))try{document.execCommand("BackgroundImageCache",false,true);}catch(x){;};var IX=(IE&&IsWin&&!SM&&!OP&&(BV>=5.5)&&(dxFilter!=null)&&(nua.indexOf('CE')==-1));if(!frames.self){frames.self=window;frames.top=top;}var tbO=[];var tbS=[];var tbBorder=[];var tbSpacing=[];var tbStyle=[];var tbAlignment=[];var tbMargins=[];var tbAttachTo=[];var tbSpanning=[];var tbFollowHScroll=[];var tbFollowVScroll=[];var tbFPos=[];var lmcHS=null;var tbWidth=[];var tbHeight=[];var tbVisC=[];var sbHnd;var smfHnd;var tpl;var tbt;tbBorder[1]=0;tbSpacing[1]=6;tbStyle[1]=1;tbAlignment[1]=1;tbSpanning[1]=0;tbFollowHScroll[1]=false;tbFollowVScroll[1]=false;tbMargins[1]=[-329,132];tbFollowVScroll[1]=false;tbFPos[1]=[4,132];tbVisC[1]=new Function('return true;');tbWidth[1]=170;tbHeight[1]=406;var tbNum=1;var fx=1;function SetupToolbar(fr){if(!MenusReady){window.setTimeout("SetupToolbar()",10);return false;}var mimg=false;var SMb;var lt=GetLeftTop(cFrame);var wh=GetWidthHeight(cFrame);var er=(wh[0]==0);ClearTimer("sbHnd");for(var t=1;t<=tbNum;t++){SMb=(SM?tbBorder[t]:0);if(fr!=true){if(!tbO[t]){olt=lt;tbO[t]=GetObj("dmbTBBack"+t);if(!tbO[t]) mimg=true;else{if(NS){tbO[t].st=GetObj("dmbTB"+t,tbO[t]);tbS[t]=tbO[t];tbS[t].width=tbS[t].clip.width;tbS[t].height=tbS[t].clip.height;}else{tbO[t].t=GetObj("dmbTB"+t);tbO[t].st=tbO[t].t.style;tbS[t]=tbO[t].style;if(SM&&!OP){tbS[t].width=unic(tbS[t].width,wh[0])-2*SMb+"px";tbS[t].height=unic(tbS[t].height,wh[1])-2*SMb+"px";}FixCommands("dmbTB"+t,t);}}}}if(tbO[t]&&!er){tbl=0;tbt=0;switch(tbAlignment[t]){case 0:break;case 1:tbl=tbStyle[t]==0?(wh[0]-tbWidth[t])/2:(wh[0]-pri(tbS[t].width))/2-SMb;break;case 2:tbl=tbStyle[t]==0?wh[0]-tbWidth[t]:(wh[0]-pri(tbS[t].width))-SMb;break;case 3:tbt=tbStyle[t]==0?(wh[1]-tbHeight[t])/2:(wh[1]-pri(tbS[t].height))/2-SMb;break;case 4:tbl=tbStyle[t]==0?(wh[0]-tbWidth[t])/2:(wh[0]-pri(tbS[t].width))/2-SMb;tbt=tbStyle[t]==0?(wh[1]-tbHeight[t])/2:(wh[1]-pri(tbS[t].height))/2-SMb;break;case 5:tbl=tbStyle[t]==0?wh[0]-tbWidth[t]:(wh[0]-pri(tbS[t].width))-2*SMb;tbt=tbStyle[t]==0?(wh[1]-tbHeight[t])/2:(wh[1]-pri(tbS[t].height))/2-SMb;break;case 6:tbt=(tbStyle[t]==0?wh[1]-pri(tbS[t].height):wh[1]-pri(tbS[t].height))-2*SMb;break;case 7:tbl=tbStyle[t]==0?(wh[0]-tbWidth[t])/2:(wh[0]-pri(tbS[t].width))/2-SMb;tbt=(tbStyle[t]==0?wh[1]-pri(tbS[t].height):wh[1]-pri(tbS[t].height))-2*SMb;break;case 8:tbl=tbStyle[t]==0?wh[0]-tbWidth[t]:(wh[0]-pri(tbS[t].width))-2*SMb;tbt=(tbStyle[t]==0?wh[1]-pri(tbS[t].height):wh[1]-pri(tbS[t].height))-2*SMb;break;case 9:tbl=tbFPos[t][0];tbt=tbFPos[t][1];break;case 10:var imgObj=NS?FindImage(cFrame.document,tbAttachTo[t].split("|")[0]):cFrame.document.images[tbAttachTo[t].split("|")[0]];if(!imgObj){imgObj=GetObj(tbAttachTo[t].split("|")[0]);if(imgObj&&!NS) if(imgObj.style.left) imgObj=imgObj.style;}if(imgObj){tbl=AutoPos(tbO[t],imgObj,pri(tbAttachTo[t].split("|")[1]))[0]+MacOffset(cFrame)[0];tbt =AutoPos(tbO[t],imgObj,pri(tbAttachTo[t].split("|")[1]))[1]+MacOffset(cFrame)[1];}else mimg=true;break;}if(tbFollowVScroll[t]) if(olt[1]==0&&!tbO[t].svoff) tbO[t].svoff=getTBPos(t)[1];tbS[t].left=tbl+(tbFollowHScroll[t]?olt[0]:0)+tbMargins[t][0]+(NS?"":"px");tbS[t].top =tbt+(tbFollowVScroll[t]?(olt[1]>tbO[t].svoff?olt[1]-tbO[t].svoff:0):0)+tbMargins[t][1]+(NS?"":"px");if(tbSpanning[t]==1){if(tbStyle[t]==0){tbO[t].st.left=tbS[t].left;tbS[t].left="0px";tbS[t].width=wh[0]+(tbFollowHScroll[t]?0:lt[0])-2*SMb+(NS?"":"px");}if(tbStyle[t]==1){tbO[t].st.top=tbS[t].top;tbS[t].top="0px";tbS[t].height=wh[1]+(tbFollowVScroll[t]?0:lt[1])-2*SMb+(NS?"":"px");}}setTBVD(tbS[t],tbVisC[t]()?"visible":"hidden",tbVisC[t]()?"":"none");if(tbFollowHScroll[t]||tbFollowVScroll[t]) if(ScrollTB(lt,wh,tbO[t])) mimg=false;}}if(NS||SM||mimg||er) sbHnd=window.setTimeout("SetupToolbar()",100);return true;}function setTBVD(tb,v,d){if(tb.visibility != v) tb.visibility=v;if(tb.display != d) tb.display=d;}function getTBPos(t){var xy=[0,0];if(IE){var p=tbO[t].t;while(p){xy[0]+=p.offsetLeft;xy[1]+=p.offsetTop;p=p.offsetParent;}}return xy;}function unic(u,wh){var k=pri(u);return (NS?k:u.indexOf("%")==-1?k:wh*k/100);}function ScrollTB(lt,wh,tb){var s=[true,true];var v=pri(tb.top)+pri(tb.height);var h=pri(tb.left)+pri(tb.width);if(olt[0]!=lt[0]||olt[1]!=lt[1]){var d=[olt[0]-lt[0],olt[1]-lt[1]];if(d[0]<=0) if(h>=(lt[0]+wh[0])) s[0]=false;if(d[1]<=0) if(v>=(lt[1]+wh[1])) s[1]=false;var k=[pri(Math.abs(d[0]/20)+1)*(d[0]>0?-1:1),pri(Math.abs(d[1]/20)+1)*(d[1]>0?-1:1)];for(var i=0;i<2;i++) if(s[i]){olt[i]+=k[i];if(Math.abs(olt[i]-lt[i])<2) olt[i]=lt[i];}ClearTimer("sbHnd");sbHnd=window.setTimeout("SetupToolbar(true)",10);return true;}return false;}function GetHSPos(n,al,mW,mH,t){var tbs0=tbStyle[t]==0;var tp=getTBPos(t);var wh;if(NS){lmcHS.style=lmcHS;wh=[lmcHS.clip.width,lmcHS.clip.height];}else wh=[lmcHS.offsetWidth,lmcHS.offsetHeight];var acc=pri(tbs0?lmcHS.style.left:lmcHS.style.top);var x=(!tbs0&&IsFrames?-wh[0]:tp[0]);var y=(tbs0&&IsFrames?-wh[1]:tp[1]);if(tbs0) x+=acc;else y+=acc;switch(al){case 0:y+=wh[1];break;case 1:x-=(mW-wh[0]);y+=wh[1];break;case 2:y-=mH;break;case 3:x-=(mW-wh[0]);y-=mH;break;case 4:x-=mW;break;case 5:x-=mW;y+=(wh[1]-mH);break;case 6:x+=wh[0];break;case 7:x+=wh[0];y+=(wh[1]-mH);break;case 8:x-=mW;y+=(wh[1]-mH)/2;break;case 9:x+=wh[0];y+=(wh[1]-mH)/2;break;case 10:x+=(wh[0]-mW)/2;y-=mH;break;case 11:x+=(wh[0]-mW)/2;y+=wh[1];break;}if(IsFrames){x+=GetLeftTop()[0];y+=GetLeftTop()[1];}return [x,y];}function hsHoverSel(mode,e){var mc;var fh=false;ClearTimer("smHnd");ClearTimer("smfHnd");if(mode==0){mc=GetCurCmd(e);if(!mc) return false;if(lmcHS==mc) return false;if(lmcHS) hsHoverSel(1,0,1);if(mc!=lmcHS){if(!mc.onmouseover) fh=true;else if(mc.onmouseover.toString().indexOf("ShowMenu")==-1) fh=true;if(fh) smHnd=window.setTimeout("HideAll(1)",mDelay());}FixCursor(mc);lmcHS=mc;}else{mc=lmcHS;lmcHS=null;}SwapMC(mode,mc);return true;}function InitTB(){var dsn=true;var e="";var i,n;for(var t=1;t<=tbNum;t++) if(tbAlignment[t]==10){dsn=false;if(window.onload){e=window.onload.toString();n=e.indexOf("{");e=e.substr(n+1,e.lastIndexOf("}")-n-1);}e+=";SetupToolbar();";window.onload=new Function(e);break;}if(!NS){window.onresize=SetupToolbar;window.onscroll=SetupToolbar;}if(dsn) SetupToolbar();}InitTB();function GetCurCmd(e){var cc=e;while(cc.id==""){cc=cc.parentElement;if(cc==null) break;}return cc;}function HoverSel(mode,e){var mc;var lc;if(nOM==0) return false;ClearTimer("smHnd");if((om[1].pHS != lmcHS)&&om[1].pHS){if(lmcHS) hsHoverSel(1,0,1);lmcHS=om[1].pHS;SwapMC(mode,om[1].pHS);}if(mode==0){if(om[nOM].sc!=null) HoverSel(1);if(nOM>1) if(om[nOM-1].sc!=null){om[nOM-1].ssc=om[nOM-1].sc;SwapMC(1,om[nOM-1].sc);}mc=GetCurCmd(e);if(scDelay){if(!mc.onmouseout) mc.onmouseout=new Function("if(nOM)om[nOM].hsm=window.setTimeout(\"HideSubMenus('"+mc.id+"')\",scDelay)");for(var i=1;i<=nOM;i++) ClearTimer("om["+i+"].hsm");}else HideSubMenus(mc.id);om[nOM].sc=mc;if(nOM>1) if(om[nOM-1].id != gpid(mc)) SwapMC(0,om[nOM-1].ssc);FixCursor(mc);}else{mc=(mode==1)?om[nOM].sc:om[nOM].op;om[nOM].sc=null;}SwapMC(mode,mc);return true;}function HideSubMenus(id){var mc=GetObj(id,mFrame);if(nOM>1){if(mc==om[nOM-1].sc) return false;while(true){if(!nOM) return false;if(gpid(mc)==om[nOM].id) break;Hide();}if(nOM&&scDelay) mc.onmouseover();}}function SwapMC(mode,mc){var id=mc.id.substr(1);var n1=GetObj((mode!=0?"O":"N")+id);n1.style.visibility="hidden";var n2=GetObj((mode==0?"O":"N")+id);n2.style.visibility="inherit";if(mode==0&&!n1.c){n1.c=true;n1=(BV<5?n1.all.tags("DIV"):n1.getElementsByTagName("DIV"))[0];if(n1) (BV<5?n2.all.tags("DIV"):n2.getElementsByTagName("DIV"))[0].innerHTML=n1.innerHTML;}}function Hide(chk){var m;var cl=false;ClearTimer("mhdHnd");ClearTimer("AnimHnd");if(chk)if(InMenu()) return false;if(nOM){m=om[nOM];if(m.sc!=null){if(IE) HoverSel(1);if(NS) NSHoverSel(1);}if(m.op!=null){if(IE) HoverSel(3);if(NS) NSHoverSel(3);}ToggleMenu(m,"hidden");ClearTimer("om[nOM].hsm");nOM--;cl=(nOM==0);if(cl) imgObj=null;}if(cl||chk){ClearTimer("smHnd");if(tbNum&&lmcHS) if(!lmcHS.disable){if(IE) hsHoverSel(1);if(NS) hsNSHoverSel(1);}window.setTimeout("if(!lmcHS)window.status=''",TimerHideDelay);}if((nOM>0||lmcHS)&&!InSelMenu()) mhdHnd=window.setTimeout("Hide(1)",TimerHideDelay/20);return true;}function ToggleMenu(m,s){if(IX) if(document.readyState=="complete"&&m.getAttribute("filters")!=null){if(!m.fs){m.fsn=m.filters.length;m.style.filter=dxFilter+m.style.filter;m.fs=true;}for(var i=0;i<m.filters.length-m.fsn;i++){m.filters[i].apply();m.style.visibility=s;m.filters[i].play();}}m.style.visibility=s;if(s=="hidden"&&!IX&&!NS) m.style.left=m.style.top="0px";FormsTweak(s=="visible"?"hidden":"visible");}function ShowMenu(mName,x,y,isc,hsimg,algn){if(!algn) algn=0;var f=["ShowMenu2('"+mName+"',"+x+","+y+","+isc+",'"+hsimg+"',"+algn+")"];ClearTimer("smHnd");if(isc){if(nOM==0) return false;lsc=om[nOM].sc;f[1]="if(nOM)if(lsc==om[nOM].sc)";f[2]=smDelay;}else{if(nOM>0) if(om[1].id==mName) return false;ClearTimer("mhdHnd");if(algn<0&&!lmcHS) return false;f[1]="HideAll(1);";f[2]=mDelay();}smHnd=window.setTimeout(f[1]+f[0],f[2]);return true;}function ShowMenu2(mName,x,y,isc,hsimg,algn){var xy;x=pri(x);y=pri(y);var Menu=GetObj(mName);if(!Menu) return false;if(Menu==om[nOM]) return false;if(NS) Menu.style=Menu;if(AnimHnd&&nOM>0){AnimStep=100;Animate();}FixPNG(Menu);Menu.op=nOM>0?om[nOM].sc:null;Menu.sc=null;imgObj=null;if(isc){if(!NS) HideSubMenus(om[nOM].sc.id);xy=GetSubMenuPos(Menu,algn);var gs=om[nOM].gs;if(gs) xy[1]+=pri(gs.top);}else{if(algn<0&&!lmcHS) return false;Menu.pHS=lmcHS;xy=(algn<0?GetHSPos(x,y,NS?Menu.w:Menu.offsetWidth,NS?Menu.h:Menu.offsetHeight,-algn):[x,y]);if(hsimg){var hss=hsimg.split("|");imgObj=NS?FindImage(cFrame.document,hss[0]):cFrame.document.images[hss[0]];if(imgObj){if(hss[1]&2) xy[0]=AutoPos(Menu,imgObj,algn)[0]+(IsFrames?GetLeftTop()[0]:0)+MacOffset()[0];if(hss[1]&1) xy[1]=AutoPos(Menu,imgObj,algn)[1]+(IsFrames?GetLeftTop()[1]:0)+MacOffset()[1];}}if(!IsContext){xy[1]+=-4;}}if(xy){x=xy[0];y=xy[1];}var pWH=[GetWidthHeight()[0]+GetLeftTop()[0],GetWidthHeight()[1]+GetLeftTop()[1]];if(IE) with(Menu.style){if(SM) display="none";left=FixPos(x,pri(width),pWH[0],0)+"px";top=FixPos(y,pri(height),pWH[1],1)+"px";if(!IX&&!SM&&IsWin) clip="rect(0 0 0 0)";}if(NS){Menu.moveToAbsolute(FixPos(x,Menu.w,pWH[0],0),FixPos(y,Menu.h,pWH[1],1));}Menu.style.zIndex=1000+tbNum+nOM;om[++nOM]=Menu;if(!NS) FixCommands(mName);if(SM) Menu.style.display="inline";if(!NS||(NS&&Menu.style.clip.width==0)){AnimStep=0;Animate();AnimHnd=window.setTimeout("Animate()",10);}ToggleMenu(Menu,'visible');IsContext=false;smHnd=0;return true;}function mDelay(){return rmDelay/(nOM==0&&scDelay>0?4:1);}function MacOffset(f){var mo=[0,0];if(!f) f=mFrame;if(IsMac&&IE&&!SM&&!KQ&&(BV>=5)) mo=[pri(f.document.body.leftMargin),pri(f.document.body.topMargin)];return mo;}function aNaN(n){n=pri(n);return isNaN(n)?0:n;}function GetSubMenuPos(mg,a){var x;var y;var pg=om[nOM];var sc=(NS?pg.sc:GetObj("O"+pg.sc.id.substr(1)));if(NS){pg.offsetLeft=pg.left;pg.offsetTop=pg.top;pg.offsetWidth=pg.w;pg.offsetHeight=pg.h;mg.offsetWidth=mg.w;mg.offsetHeight=mg.h;sc.offsetLeft=sc.left;sc.offsetTop=sc.top;sc.offsetWidth=sc.clip.width;sc.offsetHeight=sc.clip.height;}var lp=pg.offsetLeft+sc.offsetLeft;var tp=pg.offsetTop+sc.offsetTop;switch(a){case 0:x=lp;y=tp+sc.offsetHeight;break;case 1:x=lp+sc.offsetWidth-mg.offsetWidth;y=tp+sc.offsetHeight;break;case 2:x=lp;y=tp-mg.offsetHeight;break;case 3:x=lp+sc.offsetWidth-mg.offsetWidth;y=tp-mg.offsetHeight;break;case 4:x=lp-mg.offsetWidth;y=tp;break;case 5:x=lp-mg.offsetWidth;y=tp+sc.offsetHeight-mg.offsetHeight;break;case 6:x=lp+sc.offsetWidth;y=tp;break;case 7:x=lp+sc.offsetWidth;y=tp+sc.offsetHeight-mg.offsetHeight;break;case 8:x=lp-mg.offsetWidth;y=tp+(sc.offsetHeight-mg.offsetHeight)/2;break;case 9:x=lp+sc.offsetWidth;y=tp+(sc.offsetHeight-mg.offsetHeight)/2;break;case 10:x=lp+(sc.offsetWidth-mg.offsetWidth)/2;y=tp-mg.offsetHeight;break;case 11:x=lp+(sc.offsetWidth-mg.offsetWidth)/2;y=tp+sc.offsetHeight;break;}return [x,y];}function FixCommands(mName,t){var b;var en=true;var m=GetObj(mName);var wh;if(!m.fixed){m.fixed=true;if(!t) t=0;if(IE&&(!SM||OP)) en=(document.compatMode=="CSS1Compat");if(en&&t>0&&(!SM||OP)){b=GetBorderSize(tbS[t]);tbS[t].width=Math.abs(aNaN(tbS[t].width)-b[0])+"px";tbS[t].height=Math.abs(aNaN(tbS[t].height)-b[1])+"px";}var sd=(BV<5?m.all.tags("DIV"):m.getElementsByTagName("DIV"));for(var i=0;i<(sd.length);(t>0?i+=2:i++)){sd[i].noWrap=true;if(en) with(sd[i].style){b=GetBorderSize(sd[i].style);if(pri(width)&&pri(height)){width=pri(width)-b[0]+"px";height=pri(height)-b[1]+"px";}}}}}function Animate(){var nw=nh=0;if(AnimStep+AnimSpeed>100) AnimStep=100;switch(fx){case 1:nw=AnimStep;nh=AnimStep;break;case 2:nw=100;nh=AnimStep;break;case 3:nw=AnimStep;nh=100;break;case 0:nw=100;nh=100;break;}if(om[nOM]){with(om[nOM].style){if(IE){if(SM)  clip="rect(0px "+pri(width)*(nw/100)+"px "+pri(height)*(nh/100)+"px 0px)";else clip="rect(0px "+nw+"% "+nh+"% 0px)";}if(NS){clip.width=w*(nw/100);clip.height=h*(nh/100);}}AnimStep+=AnimSpeed;if(AnimStep<=100) AnimHnd=window.setTimeout("Animate()",25);else{ClearTimer("AnimHnd");AnimStep=0;AnimHnd=0;}}}function InTBHotSpot(){var m=(imgObj?imgObj:lmcHS);var tp=[0,0];var tbb;if(!m) return false;if(imgObj) if(imgObj.name.indexOf("dmbHSdyna")!=-1){imgObj=null;return false;}var x=mX;var y=mY;if(!imgObj){if(IE){if(BV<5&&!IsMac) m.parentNode=m.parentElement;}else m.parentNode=m.parentLayer;var i=m.parentNode.id.substr(5);tp=getTBPos(i);if(IE) m=m.style;}else{m.left=GetImgXY(imgObj)[0];m.top=GetImgXY(imgObj)[1];if(NS) m.clip=m;}var l=pri(m.left)+tp[0];var r=l+(IE?pri(m.width):m.clip.width);var t=pri(m.top)+tp[1];var b=t+(IE?pri(m.height):m.clip.height);if(IsFrames&&!NS){x-=GetLeftTop()[0];y-=GetLeftTop()[1];}return ((x>=l&&x<=r)&&(y>=t&&y<=b));}function InMenu(){var m=om[nOM];if(!m) return false;else if(IE) m=m.style;var l=pri(m.left);var r=l+(IE?pri(m.width):m.clip.width);var t=pri(m.top);var b=t+(IE?pri(m.height):m.clip.height);return ((mX>=l&&mX<=r)&&(mY>=t&&mY<=b));}function SetPointerPos(e){if(IE){if(!SM){if(mFrame!=cFrame||event==null){var cfe=cFrame.window.event;var mfe=mFrame.window.event;if(IE&&IsMac) cfe=(cfe.type=="mousemove"?cfe:null);if(IE&&IsMac) mfe=(mfe.type=="mousemove"?mfe:null);if(mfe==null&&cfe==null) return;e=(cfe?cfe:mfe);}else e=event;}mX=e.clientX+lt[0];mY=e.clientY+lt[1];ClearTimer("cFrame.iefwh");cFrame.iefwh=window.setTimeout("lt=GetLeftTop()",100);}if(NS){mX=e.pageX;mY=e.pageY;}}function InSelMenu(){var nOMb=nOM--;for(;nOM>0;nOM--) if(om[nOM].sc!=null) break;var im=InMenu();nOM=nOMb;return im||InMenu();}function IsOverMenus(){return (lmcHS||imgObj?InTBHotSpot():(nOM==1?!(om[nOM].sc!=null):false))||(nOM>0?InSelMenu():false);}function HideMenus(e){SetPointerPos(e);if(!IsOverMenus()&&mhdHnd==0) mhdHnd=window.setTimeout("mhdHnd=0;if(!IsOverMenus())Hide()",TimerHideDelay);}function FormsTweak(state){var fe;if(IE&&(!SM||OP)&&DoFormsTweak){var m=om[nOM];if((BV>=5.5)&&!OP&&m&&!KQ) cIF(state=="visible"?"hidden":"visible");else if(nOM==1) for(var f=0;f<mFrame.document.forms.length;f++) for(var e=0;e<mFrame.document.forms[f].elements.length;e++){fe=mFrame.document.forms[f].elements[e];if(fe.type) if(fe.type.indexOf("select")==0) fe.style.visibility=state;}}}function cIF(state){var mfd=mFrame.document;if(mfd.readyState=="complete"){if((mfd.getElementsByTagName("SELECT").length==0)&&(mfd.getElementsByTagName("IFRAME").length==0)) return;var m=om[nOM];var iname=m.id+"iframe";var i=GetObj(iname,mFrame);if(!i){i=mfd.createElement("?");i.id=iname+"pobj";mfd.body.insertBefore(i);i=mfd.createElement("IFRAME");if(location.protocol=="https:") i.src="/ifo.htm";i.id=iname;i.style.position="absolute";i.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)";mfd.getElementById(iname+"pobj").insertBefore(i);}with(i.style){m=m.style;left=m.left;top=m.top;width=m.width;height=m.height;zIndex=m.zIndex-1;visibility=state;}}}function execURL(url,tframe){var d=100;if(mibc&&!NS){d+=mibs * mibc;if(lmcHS) mibm=lmcHS;if(nOM) for(var n=nOM;n>0;n--) if(om[n].sc){mibm=om[n].sc;break;}if(mibm){mibm.n=mibc;BlinkItem();}}else HideAll();execURL2(escape(_purl(url)),tframe);}function BlinkItem(){if(!mibm) return;mibm.bs=!Math.abs(mibm.bs);SwapMC(mibm.bs,mibm);mibc--;if(mibc>=0) window.setTimeout("BlinkItem()",mibs);else{mibc=mibm.n;mibm=null;HideAll();}}function execURL2(url,tframe){var w=eval("windo"+"w.ope"+"n");url=rStr(unescape(url));if(url.indexOf("javascript:")!=url.indexOf("vbscript:")) eval(url);else{switch(tframe){case "_self":if(IE&&!SM&&!KQ&&(BV>4)){var a=mFrame.document.createElement("A");a.href=url;mFrame.document.body.appendChild(a);a.click();}else mFrame.location.href=url;break;case "_blank":w(url,tframe);break;default:var f=rStr(tframe);var fObj=(tframe=='_parent'?mFrame.parent:eval(f));if(typeof(fObj)=="undefined") w(url,f.substr(8,f.length-10));else fObj.location.href=url;break;}}}function rStr(s){s=xrep(s,"%1E","'");s=xrep(s,"\x1E","'");if(OP&&s.indexOf("frames[")!=-1) s=xrep(s,String.fromCharCode(s.charCodeAt(7)),"'");return xrep(s,"\x1D","\x22");}function HideAll(dr){var o=lmcHS;if(dr) lmcHS=null;Hide();while(nOM>0) Hide();lmcHS=o;}function tHideAll(){ClearTimer("mhdHnd");mhdHnd=window.setTimeout("mhdHnd=0;if(!InSelMenu())HideAll();",TimerHideDelay);}function GetLeftTop(f){if(!f) f=mFrame;if(IE) if(SM) return [OP?f.pageXOffset:f.scrollX,OP?f.pageYOffset:f.scrollY];else{var b=GetBodyObj(f);return (b?[b.scrollLeft,b.scrollTop]:[0,0]);}if(NS) return [f.pageXOffset,f.pageYOffset];}function GetWidthHeight(f){if(!f) f=mFrame;if(NS||SM){return [f.innerWidth,f.innerHeight];}else{var b=GetBodyObj(f);return (b?[b.clientWidth,b.clientHeight]:[0,0]);}}function GetBodyObj(f)

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Oh it's even more fun than that. The site is using PHP, Ajax and apparantly the Javascript framework Mootools.

    If this is a job you've accepted, you may want to concede to the client that it is over your head and pass it on to someone else with expertise in these languages.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •