网页中飞舞的文字鼠标两键功能各不同
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
网页中飞舞的文字
在此网页上左击和右击,效果个不同
var message = "欢迎光临本站“☆请您欣赏花絮☆”";
var finalmessage = "
☆本站网页☆
单击右键进入本站单击左键进入高级版
请按CTRL+D 把本站加入收藏
/流失得缘分
var noOfFlyers = 10;
var blkCol = new
Array("black","blue","red","green","blue","blue","red","black","red"," green");
var blkFont = new
Array("arial","timesroman","courier","verdana","timesroman","couri er","arial","timesroman","courier","verdana");
,
var blkSize = new
Array("22","14","10","28","29","10","22","24","26","10");
var blkIt = new Array("0","0","1","0","0","1","1","0","1","1");
var ie=document.all?1:0
var ns=yers?1:0
var err = 0;
var msgI=1;
var noOfMsgs;
function initialize()
{
if(!ns&&!ie) {
document.writeln("
You are missing out on all the coolest stuff because of your outdated browser. Upgrade soon.");
err=1;
return;
}
if(noOfFlyers<1||noOfFlyers>10) {handleErr("The number of flying blocks has been assigned an invalid value. Script will terminate.");return}
if(blkCol.length!=noOfFlyers) {handleErr("The list of block colours has an invalid length. Script will terminate.");return}
if(blkFont.length!=noOfFlyers) {handleErr("The list of block fonts has an invalid length. Script will terminate.");return}
if(blkSize.length!=noOfFlyers) {handleErr("The list of block font sizes has an invalid length. Script will terminate.");return}
self.moveTo(0,0);
self.resizeTo(screen.width,screen.height);
var msg = new String(message);
aOMsgs = msg.split(" ");
noOfMsgs = aOMsgs.length+1;
for(var i = 0; i { for(var j = 1; j<=noOfFlyers; j++) { if(ie) document.writeln(" class=\"fly"+String(j)+"\" style=\"visibility:hidden\">"+aOMsgs[i]+"
if(ns) document.writeln(" visibility=\"hidden\">"+aOMsgs[i]+"
}
}
if(ie) document.write("
style=\"position:relative;color:black;visibility:hidden;font-family:arial; \">
if(ns) document.write(" visibility=\"hidden\">
var msgCol=0;
function stop_flying()
{
if(ie){
document.all.mesg.style.visibility="visible";
document.all.mesg.style.color="rgb("+String(msgCol)+","+String(m sgCol)+","+String(msgCol)+")";
}