AAA Главная
Примеры PHP Примеры JavaScript Примеры Ajax Примеры CSS,HTML
Исходный код этого примера:

<style type="text/css">
.menu {
	position:relative;
	height:30px;
}
.menu table {
	position: absolute;
	left: 10px;
	top: 0px;
	border: 1px solid black;
	background-color: #99ccff;
	border-spacing: 0;
}
.menu td {
	width: 200px;
	padding: 5px;
	text-align: center;
}
.menu a{
	text-decoration: none;
	font: 12px Verdana, Arial, sans-serif;
	color: blue;
	display: block;
	border: 1px solid black;
}
.menu a:hover{
	text-decoration: underline;
	color: black;
}
.ids td {
	width: 188px;
}
.ids a {
	border: none;
}
#menu1, #menu2 {
	display:none;
	top: 20px;
	left: 16px;
}
#menu2 {
	left: 226px;
}
</style>
</head>
<body>
<!-- меню первого уровня -->
<div class="menu">
<table>
 <tr>
  <td>
   <a href="#" onMouseOut="getElementById('menu1').style.display='none';"
   onMouseOver="getElementById('menu1').style.display='block';">motorola</a>
  </td>
  <td>
   <a href="#" onMouseOut="getElementById('menu2').style.display='none';"
   onMouseOver="getElementById('menu2').style.display='block';">nokia</a>
  </td>
 </tr>
</table>
<!-- подменю -->
<table class="ids" id="menu1" onMouseOut="this.style.display='none';"
onMouseOver="this.style.display='block';">
 <tr><td><a href="#Motorola_E398.html">Motorola E398</td></tr>
 <tr><td><a href="#Motorola_L7.html">Motorola L7</td></tr>
 <tr><td><a href="#Motorola_V3.html">Motorola V3</td></tr>
</table>
<table class="ids" id="menu2" onMouseOut="this.style.display='none';"
onMouseOver="this.style.display='block';">
 <tr><td><a href="#nokia_3310.html">nokia 3310</td></tr>
 <tr><td><a href="#nokia_6600.html">nokia 6600</td></tr>
 <tr><td><a href="#nokia_N70.html">nokia N70</td></tr>
</table>
</div>


.

© Copyright 2008-2016 by KDG