As long as the style is on or associated with the page, the script will use it. You could make the style external, not by putting it in the external script file but, by making it an external stylesheet. Save this to a file, call it dropmenu3.css:
Code:
#dropmenudiv {
position:absolute;
border:1px #5559FB;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
}
#dropmenudiv a {
width: 100%;
display: block;
text-indent: 20px;
border-bottom: 1px solid black;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
color: white;
}
#dropmenudiv a:hover { /*hover background color*/
background-color: #8080FF;
}
Then use like so:
HTML Code:
<link rel="stylesheet" type="text/css" href="dropmenu3.css">
<script type="text/javascript" src="js/dropmenu3.js"></script>
Bookmarks