[查看演示] 源码如下 ---------------------------------------------------------- <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> |