家用节电器

太阳能 2008-6-7 0:20:06

functionfloatwindow(id,w,h,l,t,tit,msg){ //hans070807 newxwin(id,w,h,l,t,tit,msg); }

varcolors=newarray(white,#ffffee,#edf1f9); functionresetcookie(){ settimeout(shownamecarddiv(1),5000);//5秒后出现窗口 //settimeout(recordnamecardvip(1),4000);// return; } functionrecordnamecardvip() { varurl=/neteaseivp/namecard/input_vip.jsp id=1161154478658&pid=35355967&type=5; varscriptname=insertnamecardvip; varhead=document.getelementsbytagname(head).item(0); varold=document.getelementbyid(scriptname); if(old)head.removechild(old); varscript=document.createelement(script); script.src=url; script.defer=true; script.type=text/javascript; script.id=scriptname; head.appendchild(script); returntrue; } functionshownamecarddiv(step,querytype){ varnamecardframe=document.getelementbyid(namecardframe); if(step==1&&namecardframe.src==about:blank){ this.namecardbuttontop.innerhtml= +您需要下列帮助吗? +; this.namecardbuttonunder.innerhtml= +

+
+
+; this.namecardbuttontop.style.display=none; this.namecardbuttonunder.style.display=none; namecardframe.src=/neteaseivp/namecard/ok.jsp id=1161154478658&pid=35355967&type=5&source=+escape(浏览产品)+&title=+escape(家用节电器); this.namecard.style.visibility=visible; } elseif(step==2&&namecardframe.src.indexof(ok.jsp)>0){ if(!querytype){ querytype=0; } this.namecardbuttondiv.innerhtml=
; namecardframe.src=/neteaseivp/namecard/input.jsp im=0&querytype=+querytype; this.namecard.style.height=0px; this.namecard.style.visibility=visible; } varnowheight=parseint(this.namecard.style.height); if(step==1&&nowheight<53){ this.namecard.style.height=parseint(nowheight)+4; //if(nowheight>20) //namecardframe.style.height=parseint(this.namecard.style.height)20; settimeout(shownamecarddiv(+step+),100); } elseif(step==1&&nowheight>=53){ vartop=document.getelementbyid(namecardbuttontop); varunder=document.getelementbyid(namecardbuttonunder); if(top!=null&&under!=null) { top.style.display=block; under.style.display=block; } varc=math.floor(math.random()colors.length); this.namecard.style.backgroundcolor=colors[c]; settimeout(shownamecarddiv(+step+),1000); } elseif(step==2&&nowheight<259){ this.namecard.style.height=parseint(nowheight)+15; if(nowheight>14) namecardframe.style.height=parseint(this.namecard.style.height)16; settimeout(shownamecarddiv(+step+),80); } } functionclosenamecard(){ this.namecard.style.display=none; } with(document.getelementbyid(namecard).style){ position=absolute; top=200; width=450; height=0; right=5; visibility=hidden; border=1solid#333333; zindex=50; textalign=center; backgroundcolor=#e4f1fe; zindex=50; } this.namecard.innerhtml=
责任编辑: 参与评论
Powered By: google021.com.cn 3.0 Beta