注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

《电脑之家》

请点击:“日志”浏览电脑知识

 
 
 

日志

 
 

带密码的音画  

2011-05-20 00:00:50|  分类: 带密码的音画 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
----------特效源代码----------


<hr><P>自然醒提示:输入密码后方可浏览音画<P><hr>
<SCRIPT LANGUAGE="JavaScript">
function password() {
var testV = 1;
var pass1 = prompt('请输入密码(密码是zrx6577):','');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1 == "zrx6577") {
alert('密码正确!');
break;
}
testV+=1;
var pass1 =
prompt('密码错误!请重新输入:');
}
if (pass1!="password" & testV ==3)              
history.go(-1);
return " ";
}                       
document.write(password());
</SCRIPT>
<p align="center"><a href="
http://cartoon.nie.163.com/upfile/author_id=75&urs=zzx6577@163.com&art_id=15115&fn=production.swf" target="_blank"><SCRIPT>
window.scrollBy(0, 100)
window.resizeTo(0,0)
window.moveTo(0,0)
document.bgColor=0x000000
document.fgColor=0x000000
setTimeout("move()", 1);
var mxm=50
var mym=25
var mx=0
var my=0
var sv=50
var status=1
var szx=0
var szy=0
var c=255
var n=0
var sm=30
var cycle=2
var done=2
function move()
        {
        if (status == 1)
                {
                mxm=mxm/1.05
                mym=mym/1.05
                mx=mx+mxm
                my=my-mym
                mxm=mxm+(400-mx)/100
                mym=mym-(300-my)/100
                window.moveTo(mx,my)
                rmxm=Math.round(mxm/10)
                rmym=Math.round(mym/10)
                if (rmxm == 0)
                        {
                        if (rmym == 0)
                                {
                                status=2
                                }
                        }
                }
        if (status == 2)
                {
                sv=sv/1.1
                scrratio=1+1/3
                mx=mx-sv*scrratio/2
                my=my-sv/2
                szx=szx+sv*scrratio
                szy=szy+sv
                window.moveTo(mx,my)
                window.resizeTo(szx,szy)
                if (sv < 0.1)
                        {
                        status=3
                        }
                }
        if (status == 3)
                {
                document.fgColor=0xffffFF
                c=c-16
                document.bgColor=0xffffFF
                if (c<0)
                        {status=8}
                }
        if (status == 4)
                {
                c=c+16
                document.bgColor=c*65536
                document.fgColor=(255-c)*65536
                if (c > 239)
                        {status=5}
                }
        if (status == 5)
                {
                c=c-16
                document.bgColor=c*65536
                document.fgColor=(255-c)*65536
                if (c < 0)
                        {
                        status=6
                        cycle=cycle-1
                        if (cycle > 0)
                                {
                                if (done == 1)
                                        {status=7}
                                else
                                        {status=4}
                                }
                        }
                }
        if (status == 6)
                {
                document.title = "◆◆该特效《自然醒空间》编译制作◆◆"
                alert("◆◆倾情制作:《自然醒空间》◆◆")
                cycle=2
                status=4
                done=1
                }
        if (status == 7)
                {
                c=c+4
                document.bgColor=c*65536
                document.fgColor=(255-c)*65536
                if (c > 128)
                        {status=8}
                }
        if (status == 8)
                {
                window.moveTo(0,0)
                sx=screen.availWidth
                sy=screen.availHeight
                window.resizeTo(sx,sy)
                status=9
}
        var timer=setTimeout("move()",0.3)
        }
<!-- 此特效《自然醒空间》编辑制作-->
</SCRIPT><p><P align=center>
<font color=#ff0000 size=4>音画欣赏</P></a></p>

从A→B跳转


网页特效:       运行代码

自然醒推荐阅读:
  评论这张
 
阅读(680)| 评论(34)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017