top.js

来自「这是一个asp的“www.vqqq.com网页特效”系统」· JavaScript 代码 · 共 156 行

JS
156 行
字号
<!--
today=new Date();
jran=today.getTime();

function rnd() {

    ia=9301;
    ic=49297;
    im=233280;

    jran = (jran*ia+ic) % im;
    return jran/(im*1.0);
};

function rand(number) {

    return Math.ceil(rnd()*number);
};

document.write("<CENTER>");
for(i=1;i<=1;i++) {
    myNum=(rand(10)); //改成你要随机显示的图片数;
if(myNum == 1) 
{document.write("");
document.write("<body leftmargin='0' topmargin='0'>");
document.write("<TABLE align=center background=img/1.jpg border=1 cellPadding=0 cellSpacing=0 width=760 borderColor='<%=border%>' frame=vsides rules=none>");
document.write("<TBODY><TR>");
document.write("<TD height=100 vAlign=top width=750><span style=position:relative><div id='Layer1' style='position:absolute;left: 640px; top: 128px; width:138px; height:9px; z-index:1'></div></span>");
document.write("</TD>");
document.write("</TR>");
document.write("</TBODY>");
document.write("</TABLE>");

}
if(myNum == 2) 
{document.write("");
document.write("<body leftmargin='0' topmargin='0'>");
document.write("<TABLE align=center background=img/2.jpg border=1 cellPadding=0 cellSpacing=0 width=760 borderColor='<%=border%>' frame=vsides rules=none>");
document.write("<TBODY><TR>");
document.write("<TD height=100 vAlign=top width=750><span style=position:relative><div id='Layer1' style='position:absolute;left: 640px; top: 128px; width:138px; height:9px; z-index:1'></div></span>");
document.write("</TD>");
document.write("</TR>");
document.write("</TBODY>");
document.write("</TABLE>");

} //图片路径,可用http://
if(myNum == 3) 
{
document.write("");
document.write("<body leftmargin='0' topmargin='0'>");
document.write("<TABLE align=center background=img/3.jpg border=1 cellPadding=0 cellSpacing=0 width=760 borderColor='<%=border%>' frame=vsides rules=none>");
document.write("<TBODY><TR>");
document.write("<TD height=100 vAlign=top width=750><span style=position:relative><div id='Layer1' style='position:absolute;left: 640px; top: 128px; width:138px; height:9px; z-index:1'></div></span>");
document.write("</TD>");
document.write("</TR>");
document.write("</TBODY>");
document.write("</TABLE>");

}
if(myNum == 4)
{document.write("");
document.write("<body leftmargin='0' topmargin='0'>");
document.write("<TABLE align=center background=img/4.gif border=1 cellPadding=0 cellSpacing=0 width=760 borderColor='<%=border%>' frame=vsides rules=none>");
document.write("<TBODY><TR>");
document.write("<TD height=100 vAlign=top width=750><span style=position:relative><div id='Layer1' style='position:absolute;left: 640px; top: 128px; width:138px; height:9px; z-index:1'></div></span>");
document.write("</TD>");
document.write("</TR>");
document.write("</TBODY>");
document.write("</TABLE>");

}
if(myNum == 5) 
{
document.write("");
document.write("<body leftmargin='0' topmargin='0'>");
document.write("<TABLE align=center background=img/5.gif border=1 cellPadding=0 cellSpacing=0 width=760 borderColor='<%=border%>' frame=vsides rules=none>");
document.write("<TBODY><TR>");
document.write("<TD height=100 vAlign=top width=750><span style=position:relative><div id='Layer1' style='position:absolute;left: 640px; top: 128px; width:138px; height:9px; z-index:1'></div></span>");
document.write("</TD>");
document.write("</TR>");
document.write("</TBODY>");
document.write("</TABLE>");
}
if(myNum == 6) 
{
document.write("");
document.write("<body leftmargin='0' topmargin='0'>");
document.write("<TABLE align=center background=img/6.gif border=1 cellPadding=0 cellSpacing=0 width=760 borderColor='<%=border%>' frame=vsides rules=none>");
document.write("<TBODY><TR>");
document.write("<TD height=100 vAlign=top width=750><span style=position:relative><div id='Layer1' style='position:absolute;left: 640px; top: 128px; width:138px; height:9px; z-index:1'></div></span>");
document.write("</TD>");
document.write("</TR>");
document.write("</TBODY>");
document.write("</TABLE>");
}
if(myNum == 7) 
{
document.write("");
document.write("<body leftmargin='0' topmargin='0'>");
document.write("<TABLE align=center background=img/7.gif border=1 cellPadding=0 cellSpacing=0 width=760 borderColor='<%=border%>' frame=vsides rules=none>");
document.write("<TBODY><TR>");
document.write("<TD height=100 vAlign=top width=750><span style=position:relative><div id='Layer1' style='position:absolute;left: 640px; top: 128px; width:138px; height:9px; z-index:1'></div></span>");
document.write("</TD>");
document.write("</TR>");
document.write("</TBODY>");
document.write("</TABLE>");
}
if(myNum == 8) 
{
document.write("");
document.write("<body leftmargin='0' topmargin='0'>");
document.write("<TABLE align=center background=img/8.gif border=1 cellPadding=0 cellSpacing=0 width=760 borderColor='<%=border%>' frame=vsides rules=none>");
document.write("<TBODY><TR>");
document.write("<TD height=100 vAlign=top width=750><span style=position:relative><div id='Layer1' style='position:absolute;left: 640px; top: 128px; width:138px; height:9px; z-index:1'></div></span>");
document.write("</TD>");
document.write("</TR>");
document.write("</TBODY>");
document.write("</TABLE>");
}
if(myNum == 9) 
{
document.write("");
document.write("<body leftmargin='0' topmargin='0'>");
document.write("<TABLE align=center background=img/9.gif border=1 cellPadding=0 cellSpacing=0 width=760 borderColor='<%=border%>' frame=vsides rules=none>");
document.write("<TBODY><TR>");
document.write("<TD height=100 vAlign=top width=750><span style=position:relative><div id='Layer1' style='position:absolute;left: 640px; top: 128px; width:138px; height:9px; z-index:1'></div></span>");
document.write("</TD>");
document.write("</TR>");
document.write("</TBODY>");
document.write("</TABLE>");
}
if(myNum == 10) 
{
document.write("");
document.write("<body leftmargin='0' topmargin='0'>");
document.write("<TABLE align=center background=img/10.gif border=1 cellPadding=0 cellSpacing=0 width=760 borderColor='<%=border%>' frame=vsides rules=none>");
document.write("<TBODY><TR>");
document.write("<TD height=100 vAlign=top width=750><span style=position:relative><div id='Layer1' style='position:absolute;left: 640px; top: 128px; width:138px; height:9px; z-index:1'></div></span>");
document.write("</TD>");
document.write("</TR>");
document.write("</TBODY>");
document.write("</TABLE>");
}

    else {
document.write();
}

};

document.write("</CENTER>");


//-->

⌨️ 快捷键说明

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