<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<title>http://www.daniweb.com</title>
<style type="text/css">
<!--
li a {
font-family : Arial, san-serif;
color : #FFFFFF;
text-decoration : none;
letter-spcing : 2px; }
li {
border : none;
background-color : #365d95;
padding : .300em .300em .300em 1em;
display : block;
margin : 0; }
ul, li { list-style : none }
ul {
background-color : #FFFFFF;
margin : 0;
padding : 0;
text-align : left; }
li.onHover a {
color : #365d95;
font-family : "Bernard MT Condensed", "Trebuchet MS"; }
li.onHover {
border : 1px solid #373832;
width : 160px;
background-color : #F80;
padding : .300em .300em .300em 1em;
display : block;
margin-left : 1em; }
-->
</style>
<script type="text/javascript">
<!--
var addEvent = function( isEvent, isElement, isFunction, isAttachedTo ) {
var eventSupported = (( window.attachEvent ) ? 1 : ( window.addEventListener ? 2 : 3 )) || 0;
var installer = {
1 : ( function( obj ) {
return obj.attachEvent( "on" + isEvent, isFunction );
} ),
2 : ( function( obj ) {
return obj.addEventListener( isEvent, isFunction, false );
} ),
3 : ( function( obj ) {
return obj[ "on" + isEvent ] = isFunction;
} )
}[ eventSupported ];
if ( eventSupported ) {
if ( typeof( isAttachedTo ) !== "undefined" ) {
for ( var x = 0; x < isAttachedTo; x++ ) {
installer( isElement[ x ] );
}
} else {
installer( isElement );
}
} else {
alert("\nunsupported features: please update your browser");
}
};
var on_hover = function() {
var setClass = document.createAttribute("class");
setClass.nodeValue = "onHover";
if ( this.parentNode.parentNode.id === "demo" )
this.parentNode.setAttributeNode( setClass );
else
return false;
};
var off_hover = function() {
if ( this.parentNode.getAttribute("class")) {
this.parentNode.removeAttribute("class"); }
};
var installMenu = function() {
var menu;
if ( document.all )
menu = document.all.tags("a");
else {
menu = document.getElementsByTagName("a")
}
addEvent( "mouseover", menu, on_hover, menu.length );
addEvent( "mouseout", menu, off_hover, menu.length );
};
window.onload = installMenu;
// -->
</script>
</head>
<body>
<div>
<div>
<table id="table_0" frame="void" rules="none" border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td style="width : 180px; overflow : auto;"><ul id="demo" style="width : 180px; overflow : show;">
<li><a href="#">Sample Link 1</a></li>
<li><a href="#">Sample Link 2</a></li>
<li><a href="#">Sample Link 3</a></li>
<li><a href="#">Sample Link 4</a></li>
<li><a href="#">Sample Link 5</a></li>
</ul></td>
<td></td>
</tr>
</table>
</div>
</body>
</html>