|
藍森林 http://www.lslnet.com 2006年8月25日 8:28
請教菜單問題!
我想做一個類似一個這樣的左邊的三級菜單。。http://v4.windowsupdate.microsoft.com/zhcn/default.asp |
左邊的也好,上邊的也好,都不是什麼三級菜單,是點了鏈接後使右面幀顯示鏈接網頁,不同鏈接調用不同的頁面。是多頁的iframe,可用下面這個來實現:
[html]
<table bgcolor=midnightblue border=0 cellpadding=5 cellspacing=1>
<tr>
<td colspan=3 bgcolor=lightskyblue height=300 width=300><iframe id=phx src="http://www.163.com" frameborder=0 height=295></iframe></td>
</tr>
<tr>
<td bgcolor=lightskyblue><input type=button onclick="phx.location='http://www.blueidea.com'" value=blueidea></td>
<td bgcolor=lightskyblue><input type=button onclick="phx.location='http://www.blueidea.com/bbs'" value=blueideaBBS></td>
<td bgcolor=lightskyblue><input type=button onclick="phx.location='http://www.163.com'" value=netease></td>
</tr>
<table>
[/html]
點每個按鈕變灰是一個onmouse效果
|
有實例嗎? |
點每個按鈕變灰是一個onmouse效果,可用表格來做,把點的文字加上連接:
[html]
<table width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#efefef" bgcolor="#efefef">
<tr>
<td onMouseOut="this.bgColor='#efefef';this.borderColor='#efefef'"; onMouseOver="this.bgColor='#cccccc'; this.borderColor='#000033'"><div align="left">cnbruce</div></td>
</tr>
<tr>
<td onMouseOut="this.bgColor='#efefef';this.borderColor='#efefef'"; onMouseOver="this.bgColor='#cccccc'; this.borderColor='#000033'">cnbruce</td>
</tr>
</table>
[/html]
|
Thank you!:) |
|