链接类

VML

按钮类

标题类

表单类

表格类

菜单类

窗口类

对象类

滚动条

键盘类

框架类

例子类

模拟类

日期类

色彩类

鼠标类

数学类

图片类

文字类

下拉框

样式类

游戏类

状态栏

资料类

字幕类

其它类

 ·下落的窗口
 ·Div+CSS简单的...
 ·在flash之上的飘...
 ·if IE
 ·event.canc...
 ·Do,UnDo,Re...
 ·脚本写的IE右键助手
 ·确认对话框
 ·setInterva...
 ·客户端信息检测
您当前位置:好素材首页 -> 网页特效 -> 例子类
查看信息

切换效果
好素材网 www.HaoSc.com 02月22日 11:49

[查看演示]  源码如下
----------------------------------------------------------
<HTML>
<HEAD>
<TITLE>切换效果-www.51windows.Net</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME="Author" CONTENT="51windows,海娃,haiwa">
<META NAME="Description" CONTENT="Power by 51windows.Net">
</HEAD>
<body bgcolor="#999999">
<SCRIPT LANGUAGE="JavaScript">
function set_menu(x)
{
if (x.style.visibility=="hidden")
{
x.filters.revealTrans.Transition=Math.floor(Math.random()*23)
x.filters.revealTrans.apply();
x.style.visibility="visible";
x.filters.revealTrans.play();
}
else
{
x.filters.revealTrans.Transition=Math.floor(Math.random()*23)
x.filters.revealTrans.apply();
x.style.visibility="hidden" ;
x.filters.revealTrans.play();
}
}

</script>
<div id="layer1" style="position:absolute; width:360px; height:240px; background-color: #336699; left: 50; top: 50; visibility: visible;FILTER: revealTrans(Duration=0.5,Transition=23);z-index:10"></div>
<div id="layer2" style="position:absolute; width:360px; height:240px; background-color: #000000; left: 50; top: 50;z-index:1"></div>
<SCRIPT LANGUAGE="JavaScript">
setInterval("set_menu(layer1)",1000)
</SCRIPT>
</body>
</HTML>

<div style="position: absolute; top: 10; right: 10; width: 148; height: 18;cursor:hand">
<input type="button" name="Button" value="查看源代码" onClick= 'window.location = "view-source:" + window.location.href'></div>


此信息共 1 页 [1]