页面转换特效
页面转换特效
作者:
出处: 天极软件
责任编辑: 烈云
[ 2005-11-24 10:27 ]
推荐阅读 最新更新 继续阅读 相关主题 编辑新作 阅读排行 讨论本文讨论本文 相关产品

热点话题 bt下载技巧 下载方式横评 迅雷5 影音传送带 广告屏蔽 rss订阅 ie使用技巧 google秘闻 网络电视
免费申请gmail的方法 qq宠物外挂-qq宠物专家下载 qq宠物外挂,qq宠保姆2.0 b1121下载
转贴快手使用帮助,图片版 宠物连连看2.5版 gmail申请专用帖子9月20日版
三维世界地图(简直就是极品) gmail申请专用帖子9月21日版 firetv 4.96 绿色完美破解版


脚本说明:
第一步:把如下代码加入<body>区域中
<SCRIPT LANGUAGE="JavaScript">
<!-- 
// 过渡的速度
var pause=50
var widthstep=10

// 效果的色彩
var curtaincolor1="FFFF00"

// 右
var curtaincolor2="EE8800"

// 下
var curtaincolor3="EE8800"

// 左
var curtaincolor4="FFFF00"

var screenheight
var screenwidth
var heightstep
var maxmove=0
var timer
var url
var curtaincontent1=""
var curtaincontent2=""
var curtaincontent3=""
var curtaincontent4=""

function init() {
    if (document.all) {
        screenwidth=document.body.clientWidth
        screenheight=document.body.clientHeight
        curtaincontent1="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor1+"'> </td></tr></table>"
        curtaincontent2="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor2+"'> </td></tr></table>"
        curtaincontent3="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor3+"'> </td></tr></table>"
        curtaincontent4="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor4+"'> </td></tr></table>"
        curtain1.innerHTML=curtaincontent1
        curtain2.innerHTML=curtaincontent2
        curtain3.innerHTML=curtaincontent3
        curtain4.innerHTML=curtaincontent4
        heightstep=Math.round(widthstep/screenwidth*screenheight)
    }
    if (document.layers) {
        screenwidth=window.innerWidth
        screenheight=window.innerHeight
        curtaincontent1="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor1+"'> </td></tr></table>"
        curtaincontent2="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor2+"'> </td></tr></table>"
        curtaincontent3="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor3+"'> </td></tr></table>"
        curtaincontent4="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor4+"'> </td></tr></table>"
        document.curtain1.document.write(curtaincontent1)
        document.curtain1.document.close()
        document.curtain2.document.write(curtaincontent2)
        document.curtain2.document.close()
        document.curtain3.document.write(curtaincontent3)
        document.curtain3.document.close()
        document.curtain4.document.write(curtaincontent4)
        document.curtain4.document.close()
        heightstep=Math.round(widthstep/screenwidth*screenheight)
    }
}

function openpage(thisurl) {
    url=thisurl
    if (document.all) {
        document.all.curtain1.style.posTop=-screenheight
        document.all.curtain1.style.posLeft=0
        document.all.curtain2.style.posTop=0
        document.all.curtain2.style.posLeft=screenwidth
        document.all.curtain3.style.posTop=screenheight
        document.all.curtain3.style.posLeft=0
        document.all.curtain4.style.posTop=0
        document.all.curtain4.style.posLeft=-screenwidth
        document.all.curtain1.style.visibility="VISIBLE"
        document.all.curtain2.style.visibility="VISIBLE"
        document.all.curtain3.style.visibility="VISIBLE"
        document.all.curtain4.style.visibility="VISIBLE"
        movecurtains()
    }
    if (document.layers) {
        document.curtain1.top=-screenheight
        document.curtain1.left=0
        document.curtain2.top=0
        document.curtain2.left=screenwidth
        document.curtain3.top=screenheight
        document.curtain3.left=0
        document.curtain4.top=0
        document.curtain4.left=-screenwidth
        document.curtain1.visibility="VISIBLE"
        document.curtain2.visibility="VISIBLE"
        document.curtain3.visibility="VISIBLE"
        document.curtain4.visibility="VISIBLE"
        movecurtains()
    }
}

function movecurtains() {
    if (maxmove<=screenwidth/2) {
        if (document.all) {
            document.all.curtain1.style.posTop+=heightstep
            document.all.curtain2.style.posLeft-=widthstep
            document.all.curtain3.style.posTop-=heightstep
            document.all.curtain4.style.posLeft+=widthstep
        }
        if (document.layers) {
            document.curtain1.top+=heightstep
            document.curtain2.left-=widthstep
            document.curtain3.top-=heightstep
            document.curtain4.left+=widthstep
        }
        maxmove+=widthstep
        var timer=setTimeout("movecurtains()",pause)
    }
    else {
        clearTimeout()
        document.location.href=url
    }
}

// - End of JavaScript - -->
</SCRIPT>

<STYLE>
.curtain {
    position:absolute;
    visibility:hidden;
}
</STYLE>
<DIV ID="deletethisblock" class="redirstyle" style="position:absolute;left:10px;top:10px;color:000000;font-family:"宋体";font-size:9pt">
<a href="javascript:openpage('http://61.156.37.24/condx/')">看看效果吧!!</a>
</DIV>
<DIV ID="curtain1" class="curtain"></DIV>
<DIV ID="curtain2" class="curtain"></DIV>
<DIV ID="curtain3" class="curtain"></DIV>
<DIV ID="curtain4" class="curtain"></DIV>





第二步:把<body>中的内容改为:
<body bgcolor="#fef4d9" onLoad="init()" style="width:100%;overflow-x:hidden;overflow-y:hidden">



推荐阅读 最新更新 继续阅读 相关主题 编辑新作 阅读排行 讨论本文讨论本文 相关产品
发表主题:(Html:禁止,UBB:允许)
笔名:
标题:
粗体 图片 Flash图片 Media Player视频文件 realplay视频文件 超级连接 Email连接 Shockwave文件


请您注意:遵守国家有关法律、法规,尊重网上道德,承担一切因您的行为而直接或间接引起的法律责任。
天极网拥有管理笔名和留言的一切权利。
各地网友会:
最新热评
pic
Copyright (C) 2005 Chinabyte.com, All Rights Reserved 版权所有 天极网络
渝ICP证B2-20030003号 如有意见请与我们联系 Powered by 天极内容管理平台CMS4i