tryit_view.asp@filename=trydhtml_menu_descrimage

来自「W3Schools tutorial..web designing」· ASP@FILENAME=TRYDHTML_MENU_DESCRIMAGE 代码 · 共 66 行

ASP@FILENAME=TRYDHTML_MENU_DESCRIMAGE
66
字号
<html>
<head>
<style>
table
{
background:black;
}
a
{
text-decoration:none;
color:#000000;
}
th
{
width:150px;
background:#FF8080;
}
td
{
font:bold;
background:#ADD8E6;
}
</style>
<script type="text/javascript">
function gettip(image)
{
document.getElementById('tip').innerHTML="<img src='" + image + "' />";
}
function reset()
{
document.getElementById('tip').innerHTML="&nbsp;";
}
</script>
</head>

<body>
<b>Mouse over the links to see their logos</b><br />
<table width="400px">
<tr>
<th>
<a href="../default.asp" 
onmouseover="gettip('w3schools.gif')"
onmouseout="reset()">W3Schools.com</a>
</th>
<td rowspan="3" id="tip" align="center" valign="center">&nbsp;</td>
</tr>
<tr>
<th>
<a href="../../www.microsoft.com/default.htm"
onmouseover="gettip('microsoft.gif')"
onmouseout="reset()">Internet Explorer</a>
</th>
</tr>
</tr>
<tr>
<th>
<a href="../../my.netscape.com/default.htm"
onmouseover="gettip('netscapelink.gif')"
onmouseout="reset()">Netscape Navigator</a>
</th>
</tr>
</table>
</body>

</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?