📄 例4-31.txt
字号:
<html><head><title>Style对象的display属性</title>
<script language=VBScript>
Sub One_OnClick( )
If OneDetail.style.display="none" Then
OneDetail.style.display="block"
Else
OneDetail.style.display="none"
End If
End Sub
Sub Two_OnClick( )
If TwoDetail.style.display="none" Then
TwoDetail.style.display="block"
Else
TwoDetail.style.display="none"
End If
End Sub
</script></head>
<body topmargin=20><center><h1>请按下以下的按钮</h1></center><hr>
<table cellspadding=2 cellspacing=2 align=center border=0 width=30%>
<tr><td align=center background="left-bg.gif">
<table width=100% border=1 bordercolorlight="#000000" bordercolordark="#ffffff"
cellspadding=2 cellspacing=1>
<tr><td align=center><span id=One style="color:white;font-size:14px; text-align:center;"
onMouseOut="One.style.color='white'" onMouseOver="One.style.color='red'" title=按一下可看详细内容>政策法规</span>
<div id=OneDetail style="color:white;font-size:12px; display: none;text-align:left">这里是一组有关的政策法规的文章。请继续选择查看。<br><a href="zcfg/zc-index.htm">
<font color=white> >>详情...</font></a></div></td></tr>
</table></td></tr>
<tr><td align=center background="left-bg.gif">
<table width=100% border=1 bordercolorlight="#000000" bordercolordark="#ffffff"
cellspadding=2 cellspacing=1>
<tr><td align=center>
<span id=Two style="color:white;font-size:14px; text-align:center;"
onMouseOut="Two.style.color='white'"
onMouseOver="Two.style.color='red'" title=按一下可看详细内容>市场行情
</span>
<div id=TwoDetail style="color:white;font-size:12px; display: none;text-align:left">这里是一组有关的市场行情的文章。请继续选择查看。<br><a href="schq/sc-index.htm">
<font color=white> >>详情…</font></a></div></td></tr>
</table></td></tr></table></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -