📄 alpha.html
字号:
<HTML>
<script>
var x=-1
function doit1()
{
x++
div1.style.filter="alpha(opacity="+x+")"
if(x>=100)
{
clearInterval(mooki1)
}
}
y=101
function doit2()
{
y--
div1.style.filter="alpha(opacity="+y+")"
if(y<=0)
{
clearInterval(mooki2)
}
}
</script>
<div id=div1 style=background-color:red;width:200;height:200>some stuff and some <a href="">links</a></div>
<input type=button onclick="mooki1=setInterval('doit1()', 50); x=-1" value="fade in">
<input type=button onclick="mooki2=setInterval('doit2()', 50); y=101" value="fade out">
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -