textfile.js

来自「拍卖系统」· JavaScript 代码 · 共 55 行

JS
55
字号
//***********默认设置定义.*********************
tPopWait=10;//停留tWait豪秒后显示提示。
tPopShow=800;//显示tShow豪秒后关闭提示
showPopStep=10;
popOpacity=100;
var MouseX;
var MouseY;
//***************内部变量定义*****************
sPop=null;
curShow=null;
tFadeOut=null;
tFadeIn=null;
tFadeWaiting=null;
document.write("<style type='text/css'id='defaultPopStyle'>");
document.write(".cPopText {  background-color: #FFFFFF; border: 1px #000000 solid; font-size: 12px; padding-right: 4px; padding-left: 4px; height: 10px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}");
document.write("</style>");
document.write("<div id='dypopLayer' style='z-index:1000;' class='cPopText'></div>");
function showPopupText(){
var o=event.srcElement;
    MouseX=event.x;
    MouseY=event.y;
    if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
        if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
    if(o.dypop!=sPop) {
            sPop=o.dypop;
            clearTimeout(curShow);
            clearTimeout(tFadeOut);
            clearTimeout(tFadeIn);
            clearTimeout(tFadeWaiting);    
            if(sPop==null || sPop=="") {
                dypopLayer.innerHTML="";
                dypopLayer.style.filter="Alpha()";
                dypopLayer.filters.Alpha.opacity=0;    
                }
            else {
                if(o.dyclass!=null) popStyle=o.dyclass 
                    else popStyle="cPopText";
                curShow=setTimeout("showIt()",tPopWait);
            }
            
    }
}
function showIt(){
      
}
function fadeOut(){
 
}
function fadeIn(){
    if(dypopLayer.filters.Alpha.opacity>0) {
        dypopLayer.filters.Alpha.opacity-=1;
        tFadeIn=setTimeout("fadeIn()",1);
        }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?