// drag = 0 move = 0 function init() { //window.document.onmousemove = mouseMove //window.document.onmousedown = mouseDown //window.document.onmouseup = mouseUp //window.document.ondragstart = mouseStop } function mouseDown() { if (drag) { clickleft = window.event.x - parseInt(dragObj.style.left) clicktop = window.event.y - parseInt(dragObj.style.top) dragObj.style.zIndex += 1 move = 1 } } function mouseStop() { window.event.returnValue = false } //function mouseMove() { // if (move) { // dragObj.style.left = window.event.x - clickleft // dragObj.style.top = window.event.y - clicktop // } //} function mouseUp() { move = 0 } var nos=null; //图片的总宽度 //var mw=1090; var mstep=0; var msop=30; var qk=false; var lastdo="left";//移动方向 function doMar(dir, src, amount,qk) { if (amount==null) amount=10; if (qk) amount=10; switch (dir) { case "left"://向左移动 document.all[src].style.pixelLeft-=amount; mstep-=amount; if (-mstep==mw) { mstep=0; document.all.sl.style.pixelLeft=0; } if (-document.all[src].style.pixelLeft>=mw) document.all[src].style.pixelLeft=0; break; case "right"://向右移动 document.all[src].style.pixelLeft+=amount; mstep+=amount; if (mstep==mw) { mstep=-mw; document.all.sl.style.pixelLeft=-mw; } if (document.all[src].style.pixelLeft>=0) document.all[src].style.pixelLeft = -mw; break; } return false; } function RunMar(sDir,sWhich,down) { if (sDir=="last" ||sDir=="") {sDir=lastdo;} else {lastdo=sDir;} qk=(down==true)?true:false; clearInterval(nos); iAmount=1; nos = setInterval("doMar('"+sDir+"','"+sWhich+"',"+iAmount+","+qk+")",msop); } function doLoad() { window.document.all.sl.ondragstart = new Function("return false"); RunMar(lastdo,"sl"); } window.onload=doLoad; window.document.onmouseup=doLoad; function movstar(a,time) { movx=setInterval("mov("+a+")",time) } function movover() { clearInterval(movx) } function mov(a) { scrollx=new_date.document.body.scrollLeft scrolly=new_date.document.body.scrollTop scrolly=scrolly+a new_date.window.scroll(scrollx,scrolly) } function o_down(theobject) { object=theobject while(object.filters.alpha.opacity>60){ object.filters.alpha.opacity+=-10} } function o_up(theobject) { object=theobject while(object.filters.alpha.opacity<100){ object.filters.alpha.opacity+=10} } function wback() { if(new_date.history.length==0){window.history.back()} else{new_date.history.back()} } function outputpic(id,imgurl,proNo) { document.write("