|
让你的网页活跃起来(2) 如图3,单击 ProdUCt & Services 立刻就出现了下面的菜单,再点一下又隐去了,和Macromedia的一样,不同的是仿佛快了许多,它的源代码如下。
<html>
<head>
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<title>Welcome to Microsoft's Homepage</title>
<style TYPE="text/css">
.NV1 {font-family:Arial;font-weight:bold;font-size:.9em;cursor:hand;margin-top:10;text-indent: -14;margin-left: 14;}
.NV2 {position:relative;font-size:.9em;font-weight:normal;}
</style>
</head>
<body>
<script TYPE="text/Javascript">
function clikker(a,b) {
if (a.style.display ==') {
a.style.display = 'none';
b.src=http://www.knowsky.com/usm.gif;
}
else {
a.style.display=';
b.src=http://www.knowsky.com/dsmh.gif;
}
}
</script>
<div CLASS="NV1" ID="BB" onClick="clikker(BB1,BBp);">
<dd><img ID="BBp" SRC="http://www.knowsky.com/dsmh.gif" ALT="*" ALIGN="MIDDLE" BORDER="0" WIDTH="11" HEIGHT="11">
Products & Services
<div CLASS="NV2" ID="BB1" STYLE="display:';"
onclick="window.event.cancelBubble = true;">
<a HREF="/products/"><p>Product Catalog</a>
<a HREF="http://support.microsoft.com/support/">Technical Support</a>
|