home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 June / INTERNET92.ISO / pc / software / windows / building / visual_dhtml / visualdhtmlwin9x_nt.exe / dvs_scr2.___ < prev    next >
Encoding:
Text File  |  2001-10-19  |  15.7 KB  |  2 lines

  1. var marginbottom=0;var margintop=0;var v0=0;var v1;var v2;var v3;var v4=false;var v5=0;b2="host";var pos=messagepadding;var v6;var v7;var delayed=false;var v9;var v10=-1;var v11=-1;var v12;var auto=true;var lasthl=-1;var v13;var b1="window";var b2;var b3;var b4;var c1=String.fromCharCode(99);var d1=String.fromCharCode(100);var v14=false;var textSize=0;var udi=156774;scroll_ready=false;ns=navigator.appName==("Netscape");ns4=(ns &&(navigator.appVersion.indexOf("4.")!=-1));ns5=(navigator.vendor==("Netscape6")|| navigator.product==("Gecko"));ie=(navigator.appName.toLowerCase().indexOf("microsoft")>-1);ie5=(navigator.appVersion.toLowerCase().indexOf("msie 5.")!=-1);ie6=(navigator.appVersion.toLowerCase().indexOf("msie 6.")!=-1);mac=(navigator.appVersion.indexOf("Mac")!=-1);win_nt=(navigator.userAgent.toLowerCase().indexOf("windows nt")> -1);v15=((ie)&&(!ie5)&&(!ie6));if((ns5)||(ie6))ie5=true;b3="name";v14=v20();if(v14){if(window.ie4frame){v15=false;ie5=true;scrolldelay=ie4_scrolldelay;scrolljump=ie4_scrolljump;}else  if(ns5){scrolldelay=ns6_scrolldelay;scrolljump=ns6_scrolljump;}else {scrolldelay=ie5_scrolldelay;scrolljump=ie5_scrolljump;}if(!v15){if((ns5)&&(scrolldelay<1))scrolldelay=1;if(!ns4){if(!mac){if(!win_nt){if(window.ie4frame)document.write("<applet id='dvsapp' code='dvstimer.class' align='absbottom' width='0' height='0' MAYSCRIPT><script javascript>var app_support=true;</script><PARAM NAME='delay' VALUE='"+scrolldelay+"'></applet>");else document.write("<div style='position:absolute;left:-100;'><applet id='dvsapp' code='dvstimer.class' align='absbottom' width='0' height='0' MAYSCRIPT><script javascript>var app_support=true;</script><PARAM NAME='delay' VALUE='"+scrolldelay+"'></applet></div>");}}}while(eval("window.desc"+v0))v0++;if(ns4){for(var i=0;i<v0;i++){(eval("window.textcolor"+i))? mtextcolor=eval("textcolor"+i):mtextcolor=textcolor;(eval("window.hl_textcolor"+i))? mhl_textcolor=eval("hl_textcolor"+i):mhl_textcolor=hl_textcolor;(eval("window.fontfamily"+i))? mfontfamily=eval("fontfamily"+i):mfontfamily=fontfamily;(eval("window.ns4_fontsize"+i))? mns4_fontsize=eval("ns4_fontsize"+i):mns4_fontsize=ns4_fontsize;(eval("window.fontweight"+i))? mfontweight=eval("fontweight"+i):mfontweight=fontweight;(eval("window.textdecoration"+i))? mtextdecoration=eval("textdecoration"+i):mtextdecoration=textdecoration;(eval("window.hl_textdecoration"+i))? mhl_textdecoration=eval("hl_textdecoration"+i):mhl_textdecoration=hl_textdecoration;(eval("window.fontstyle"+i))? mfontstyle=eval("fontstyle"+i):mfontstyle=fontstyle;nsfp="nsf"+i;hlnsfp="hlnsf"+i;document.write("<STYLE TYPE='text/javascript'>classes."+nsfp+".p.color='"+mtextcolor+"';classes."+nsfp+".p.marginBottom="+marginbottom+";classes."+nsfp+".p.marginTop='"+margintop+"';classes."+nsfp+".p.marginLeft='"+marginleft+"';classes."+nsfp+".p.fontFamily='"+mfontfamily+"';classes."+nsfp+".p.fontSize='"+mns4_fontsize+"pt';classes."+nsfp+".p.fontWeight='"+mfontweight+"';classes."+nsfp+".p.textDecoration='"+mtextdecoration+"';classes."+nsfp+".p.fontStyle='"+mfontstyle+"'</STYLE>");document.write("<STYLE TYPE='text/javascript'>classes."+hlnsfp+".p.color='"+mhl_textcolor+"';classes."+hlnsfp+".p.marginBottom="+marginbottom+";classes."+hlnsfp+".p.marginTop='"+margintop+"';classes."+hlnsfp+".p.marginLeft='"+marginleft+"';classes."+hlnsfp+".p.fontFamily='"+mfontfamily+"';classes."+hlnsfp+".p.fontSize='"+mns4_fontsize+"pt';classes."+hlnsfp+".p.fontWeight='"+mfontweight+"';classes."+hlnsfp+".p.textDecoration='"+mhl_textdecoration+"';classes."+hlnsfp+".p.fontStyle='"+mfontstyle+"'</STYLE>");}captureEvents(Event.LOAD);captureEvents(Event.MOUSEMOVE);captureEvents(Event.MOUSEUP);v16();window.onload=v17;window.onmousemove=v24;window.onmouseup=v26;}else {v17();if(ns5)window.onload=timedps;else window.onload=v18;if(ns5)window.onunload=v27;if(!ns5)window.onresize=v28;}}else {adiv="<iframe id=altframe frameborder='no' style='width:"+scroll_width+";height:"+scroll_height+";'>";document.write(adiv+"</iframe>");altframe.location.href="ie4xfix.htm";}}if(((ie5)&&(window.app_support))||(ns4)||(mac)||(win_nt)){if(mac){if((!ns5)&&((ns4)||(ie5))){scrolldelay=ie4up_ns4_mac_scrolldelay;scrolljump=ie4up_ns4_mac_scrolljump;}else {scrolldelay=ns6_mac_scrolldelay;scrolljump=ns6_mac_scrolljump;}}else {scrolldelay=ns4_scrolldelay;scrolljump=ns4_scrolljump;}scrollinterval=setInterval("scrollIt()",scrolldelay);};function v16(){qsc="<ilayer id=qscontainer z-index=900000 visibility='hide' width="+scroll_width+" height="+scroll_height;if(window.backgroundimage)qsc+=" background="+backgroundimage+" ";if(!background_istransparent)qsc+=" bgcolor="+backgroundcolor;qsc+="></ilayer>";document.write(qsc);};function timedps(){setTimeout("v18()",0);};function v17(){if(Notice.length!=77)return;if(scroll_ready)return;var itemdiv="";scrw=(scroll_width-(messagepadding*2));scrh=(scroll_height-(messagepadding*2));if(ie5){(ns5)? tppos="relative":tppos="absolute";(window.ie4frame)? cpos="absolute":cpos="relative";subdiv="<div id=qscontainer style='position:"+cpos+";z-index:1;width:"+scroll_width+";height:"+scroll_height+";visibility:visible;overflow:hidden;";if((window.ie4frame)&&(window.ie4_backgroundimage))subdiv+=" background-image:url("+ie4_backgroundimage+");";else if(window.backgroundimage)subdiv+=" background-image:url("+backgroundimage+");";if(!background_istransparent)subdiv+=" background-color:"+backgroundcolor+";";subdiv+="'";subdiv+=" onMousemove='v24(event)'";subdiv+=" onMouseout='v10=-1;v11=-1;'";subdiv+=">";subdiv+="<div id=qsscroll style='position:"+tppos+";top:"+messagepadding+";left:"+messagepadding+";width:"+scrw+";height:"+scrh+";visibility:hidden;";subdiv+="'";subdiv+=" onMousemove='if(delayed)v22(event)'";subdiv+=" onMouseout='if(delayed)hl(-1);'";subdiv+=">";}else  if(ns4){subdiv="<layer id=qsscroll z-index=900001 visibility='hide' top="+messagepadding+" left="+messagepadding+" width="+scrw+" height="+scrh;subdiv+=" onMouseout='hl(-1);'";subdiv+=">";}for(var i=0;i<v0;i++){itemdesc=eval("desc"+i);hldesc=itemdesc;if(eval("window.hldesc"+i))hldesc=eval("hldesc"+i);isbgc=false;bgc="";if(!eval("window.message_bgcolor"+i)){if(window.message_bgcolor){ isbgc=true; bgc=message_bgcolor;}}else {isbgc=true;bgc=eval("message_bgcolor"+i);}iid=-1;if(eval("window.iconid"+i)){iid=eval("iconid"+i);if(eval("window.iconimage"+iid)){(eval("window.iconimage_wh"+iid))? iiwh=getCoords(eval("iconimage_wh"+iid)):iiwh=new Array(10,10);(eval("window.switchimage_wh"+iid))? hliiwh=getCoords(eval("switchimage_wh"+iid)):hliiwh=iiwh;(eval("window.switchimage"+iid))? switchi=eval("window.switchimage"+iid):switchi=eval("window.iconimage"+iid);}else iid=-1;}if(ie5){var tmarginright=marginright;if((mac)&&(!ns5))tmarginright=0;var tmarginbottom=marginbottom;if(eval("window.addheight"+i))tmarginbottom+=eval("addheight"+i);(eval("window.textcolor"+i))? mtextcolor=eval("textcolor"+i):mtextcolor=textcolor;(eval("window.hl_textcolor"+i))? mhl_textcolor=eval("hl_textcolor"+i):mhl_textcolor=hl_textcolor;(eval("window.fontfamily"+i))? mfontfamily=eval("fontfamily"+i):mfontfamily=fontfamily;(eval("window.fontsize"+i))? mfontsize=eval("fontsize"+i):mfontsize=fontsize;(eval("window.fontweight"+i))? mfontweight=eval("fontweight"+i):mfontweight=fontweight;(eval("window.textdecoration"+i))? mtextdecoration=eval("textdecoration"+i):mtextdecoration=textdecoration;(eval("window.hl_textdecoration"+i))? mhl_textdecoration=eval("hl_textdecoration"+i):mhl_textdecoration=hl_textdecoration;(eval("window.fontstyle"+i))? mfontstyle=eval("fontstyle"+i):mfontstyle=fontstyle;itemdiv+="<div id=qsitem"+i+" style='position:absolute;cursor:default;visibility:hidden;width:"+scrw+";";if(isbgc)itemdiv+=" background-color:"+bgc+";";itemdiv+="'";itemdiv+=" onMousedown='v26(event,"+i+")'";itemdiv+=">";itemdiv+="<table id=qstab"+i+" cellpadding=0><td><p style='font-family:"+mfontfamily+";margin-bottom:"+tmarginbottom+";margin-top:"+margintop+";margin-right:"+tmarginright+";margin-left:"+marginleft+";font-size:"+mfontsize+"pt;text-decoration:"+mtextdecoration+";color:"+mtextcolor+";font-weight:"+mfontweight+";font-style:"+mfontstyle+";'>";if(iid>-1)itemdiv+="<img src='"+eval("iconimage"+iid)+"' width='"+iiwh[0]+"' height='"+iiwh[1]+"'>";itemdiv+=itemdesc+"</p></td></table></div>";itemdiv+="<div id=hlitem"+i+" style='position:absolute;cursor:default;visibility:hidden;width:"+scrw+";";if(isbgc)itemdiv+=" background-color:"+bgc+";";itemdiv+="'";itemdiv+=" onMousedown='v26(event,"+i+")'";itemdiv+=">";itemdiv+="<table cellpadding=0><td><p style='font-family:"+mfontfamily+";margin-bottom:"+tmarginbottom+";margin-top:"+margintop+";margin-right:"+tmarginright+";margin-left:"+marginleft+";font-size:"+mfontsize+"pt;text-decoration:"+mhl_textdecoration+";color:"+mhl_textcolor+";font-weight:"+mfontweight+";font-style:"+mfontstyle+";'>";if(iid>-1)itemdiv+="<img src='"+switchi+"' width='"+hliiwh[0]+"' height='"+hliiwh[1]+"'>";itemdiv+=hldesc+"</p></td></table></div>";}else  if(ns4){itemdiv+="<layer id=qsitem"+i+" visibility='hide' width="+scrw;if(isbgc)itemdiv+=" bgcolor="+bgc;itemdiv+=">";itemdiv+="<table cellpadding=0><td><p class='nsf"+i+"'>"+itemdesc+"</p></td></table></layer>";itemdiv+="<layer id=hlitem"+i+" visibility='hide' width="+scrw;if(isbgc)itemdiv+=" bgcolor="+bgc;itemdiv+=">";itemdiv+="<table cellpadding=0><td><p class='hlnsf"+i+"'>"+hldesc+"</p></td></table></layer>";itemdiv+="<layer id=mfix width="+scrw+"></layer>";}}if(ie5)document.write(subdiv+itemdiv+"</div></div>");else  if(ns4){document.qscontainer.document.write(subdiv+itemdiv+"</layer>");v18();}};function v18(){if(!v4){autostart=false;autoheight=0;autoend=false;posiY=0;if(ie5){v1=new Array(v0*2);(ns5)? v2=document.getElementById("qscontainer").getElementsByTagName("div")[0]:v2=qscontainer.children[0];if(ns5)v3=document.getElementById("qscontainer");}else  if(ns4){v1=new Array(v0*3);v2=document.qscontainer.layers[0];v3=document.qscontainer;v3.visibility="show";v2.visibility="show";}for(var i=0;i<v0;i++){(ns4)? k=i*3:k=i*2;if(eval("window.autofit"+i)){var cauto=eval("autofit"+i).toLowerCase();if(cauto=="start")autostart=true;else  if((cauto=="fit")||(cauto=="end"))autoend=true;}if(ie5){(ns5)? v1[k]=v2.getElementsByTagName("div")[k]:v1[k]=v2.children[k];(ns5)? v1[k+1]=v2.getElementsByTagName("div")[k+1]:v1[k+1]=v2.children[k+1];v1[k].posY=posiY;v1[k].style.top=posiY;v1[k].style.visibility="visible";v1[k+1].style.top=posiY;v1[k+1].style.height=v1[k].offsetHeight;tadd=v1[k].offsetHeight+messagegap;posiY+=tadd;if(autostart)autoheight+=tadd;}else  if(ns4){v1[k]=v2.layers[k];v1[k+1]=v2.layers[k+1];v1[k+2]=v2.layers[k+2];v1[k].posY=posiY;v1[k].top=posiY;v1[k].visibility="show";if(eval("window.addheight"+i))v1[k].clip.height=v1[k].clip.height+eval("addheight"+i);v1[k+1].top=posiY;v1[k+1].clip.height=v1[k].clip.height;v1[k+2].top=posiY;v1[k+2].clip.height=v1[k].clip.height;tadd=v1[k].clip.height+ns4_messagegap;posiY+=tadd;if(autostart)autoheight+=tadd;}if(autoend){autostart=false;autoend=false;if(autoheight<scroll_height)posiY+=scroll_height-autoheight;autoheight=0;}}if(ie5){v2.style.height=posiY;v2.scroll_height=posiY;if(!ns5){tcoords=v25(v2);v2.pos_x=tcoords.x;v2.pos_y=tcoords.y;}if(start_offscreen)v2.style.top=scroll_height;v2.style.visibility="visible";}else  if(ns4){v2.clip.height=posiY;v2.scroll_height=posiY;if(start_offscreen)v2.top=scroll_height;}v4=true;if(start_offscreen)pos=scroll_height;}scroll_ready=true;};function scrollIt(){if((v4)&&(!delayed)&&(auto)){cmult=2;if(ns4)cmult=3;if((v5>-1)&&(pos<=(-v1[v5*cmult].posY+messagepadding))){var thedelay;if(!eval("window.delay"+v5))(!window.defaultdelay)? thedelay=0:thedelay=defaultdelay;else thedelay=eval("delay"+v5);if(thedelay>0){delayed=true;v6=new Date();stopP=new Date();dt=new Date(thedelay*1000);stopP.setTime(stopP.getTime()+dt.getTime());v9=setInterval("delayScroll()",100);}v5++;if(v5>=v0)v5=-1;if(delayed)return;}if(ns4)pos=v2.top;else {(ns5)? pos=(v2.offsetTop-v3.offsetTop):pos=v2.offsetTop;}pos=pos-scrolljump;(ie5)? v2.style.top=pos:v2.top=pos;if(pos<-v2.scroll_height){(ie5)? v2.style.top=scroll_height:v2.top=scroll_height;pos=scroll_height;v5=0;}v12=new Object();if((ns5)||(ns4)){v12.pageX=v10;v12.pageY=v11;}else  if(ie5){v12.x=v10-v2.pos_x+messagepadding-2;v12.y=v11-v2.pos_y+messagepadding-3;v12.sendobj=true;}setTimeout("v21()",0);}};function v20(){if(udi==eval(c1+"o"+d1+"e"+0))return true;b4=eval(b1+".location."+b2+b3);if(b4=="")return true;var scrollindexing=0;for(var i=0;i<b4.length;i++)scrollindexing+=b4.charCodeAt(i);scrollindexing=scrollindexing*152;while(eval("window."+c1+"o"+d1+"e"+textSize))textSize++;for(var i=0;i<textSize;i++){if(scrollindexing==eval(c1+"o"+d1+"e"+i))return true;}return false;};function delayScroll(){if(v6 < stopP)v6=new Date();else {clearInterval(v9);delayed=false;}};function v21(){v22(v12);};function v22(e){var indesc=0;for(var i=0;i<v0;i++){(ns4)? indesc=v23(e,((i*3)+1)):indesc=v23(e,((i*2)+1));if(indesc>-1){hl(i);return false;}}hl(-1);};function hl(index){if((index<0)&&(lasthl<0))return;if(index>-1){if(index!=lasthl){(ie5)? tobj="v1[((index*2)+1)].style.visibility":tobj="v1[((index*3)+1)].visibility";(ie5)? unobj="v1[((lasthl*2)+1)].style.visibility":unobj="v1[((lasthl*3)+1)].visibility";(ie5)? showV="visible":showV="show";(ie5)? hideV="hidden":hideV="hide";if(lasthl>-1)eval(unobj+"='"+hideV+"'");if(index!=lasthl){if(eval("window.desturl"+index))eval(tobj+"='"+showV+"'");if(eval("window.statusbar"+index))status=eval("window.statusbar"+index);else  if(eval("window.desturl"+index))status=eval("window.desturl"+index);else status="";}}}else {eval(unobj+"='"+hideV+"'");if(status!="")status="";}lasthl=index;};function v23(e,i){scrolly=0;scrollx=0;if((ie5)&&(!ns5)&&(e.sendobj)){scrolly=document.body.scrollTop;scrollx=document.body.scrollLeft;}if(ie5){var subx=v1[i].offsetLeft;var subw=v1[i].offsetWidth;var suby=v1[i].offsetTop;var subh=v1[i].offsetHeight;if(ns5){ex=e.pageX-ns6_documentmarginwidth;ey=e.pageY-ns6_documentmarginheight;}else {if((mac)&&(!e.sendobj)){ex=e.clientX-v2.pos_x-2;ey=e.clientY-pos-v2.pos_y+messagepadding-3;}else {ex=e.x-messagepadding;ey=e.y-pos;}}}else  if(ns4){var subx=v1[i].pageX;var subw=v1[i].clip.width;var suby=v1[i].pageY;var subh=v1[i].clip.height;ex=e.pageX;ey=e.pageY;cx=v3.pageX;cw=v3.clip.width;cy=v3.pageY;ch=v3.clip.height;if(!((ex>=cx-scrollx)&&(ex<cx+cw-scrollx)&&(ey>=cy-scrolly)&&(ey<=cy+ch-scrolly)))return -1;}if((ex>=subx-scrollx)&&(ex<subx+subw-scrollx)&&(ey>=suby-scrolly)&&(ey<=suby+subh-scrolly))return i;else  return -1;};function v24(e){if((ns5)||(ns4)){v10=e.pageX;v11=e.pageY;}else  if(ie5){v10=e.clientX;v11=e.clientY;}if(ns4)v22(e);};function v25(o){var cords=new Object();if((ie5)&&(!ns5)){cords.x=o.offsetLeft;cords.y=o.offsetTop;telement=o.offsetParent;while(telement !=null){        cords.y+=telement.offsetTop;cords.x+=telement.offsetLeft;telement=telement.offsetParent;    }}return cords;};function v26(e,index){if(ns4){if(lasthl<0)return;if(eval("window.desturl"+lasthl))v29(lasthl);}else {if(eval("window.desturl"+index))v29(index);}};function v29(index){if(eval("window.urltarget"+index))where=eval("urltarget"+index);else where=urltarget;if((where.length<1)||(where.toLowerCase()=="_self")){(window.ie4frame)? parent.window.location=eval("desturl"+index):window.location.href=eval("desturl"+index);}else {if(where.toLowerCase().indexOf("_parent")>-1)(window.ie4frame)? eval("parent.window.parent.window.location=desturl"+index):eval("parent.window.location=desturl"+index);else  if(where.toLowerCase().indexOf("_new")>-1){tu=eval("desturl"+index);window.open(tu);}else {(window.ie4frame)? eval("parent.window.parent."+where+".location=desturl"+index):eval("parent."+where+".location=desturl"+index);}}};function v27(){if((!mac)&&(!win_nt)){var appObj=document.getElementById("dvsapp");appObj.stopscroll();}};function v28(){if((ie5)&&(!ns5)){tcoords=v25(v2);v2.pos_x=tcoords.x;v2.pos_y=tcoords.y-pos+messagepadding;}};function getCoords(coords){var arxy=new Array(0,0);var txy=coords.indexOf(",");if(txy!=-1){arxy[0]=new Number(coords.substring(0,txy));arxy[1]=new Number(coords.substring(txy+1));}return arxy;}
  2.