gusucode.com > 仿MOP对开式论坛程序 1.0源码程序 > open.js
function shows(htmlurl) { var newwin=window.open(htmlurl,"_blank","scrollbars=yes,top=20,left=20,width=470,height=300"); newwin.focus(); return false; } function showb(htmlurl) { var newwin=window.open(htmlurl,"_blank","scrollbars=yes,top=10,left=10,width=530,height=360"); newwin.focus(); return false; } var st; var oy=0; function tm() { if (event.altKey==true) { st=setInterval("sp()",10); } else { st=setInterval("sp()",50); } } function sm() { clearInterval(st); oy=event.clientY+document.body.scrollTop; if (window.event.srcElement.tagName=="IMG" && event.button==1 && window.event.srcElement.width>screen.width/2) { var newwin=window.open(window.event.srcElement.src,"_blank",""); newwin.focus(); } } function sp() { var py=document.body.scrollTop; window.scroll (0,++py); if (py!=document.body.scrollTop) clearInterval(st); } function mp() { if (event.altKey==true && event.button==1) { document.body.scrollTop=(oy-event.clientY); } if (window.event.srcElement.tagName=="IMG" && window.event.srcElement.width>screen.width/2) { window.event.srcElement.style.cursor="hand"; window.event.srcElement.alt="新窗口打开图片"; } }