Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsCan someone tell me how to change the color of the dropdown text in this dynamic dropdown menu please.
Thanks
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtm
<html xmlns="http://www.w3.org/1
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>good drop down</title>
<style type="text/css">
#dropmenudiv{
position:absolute;
border:1px solid black;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
}
#dropmenudiv a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid black;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
}
#dropmenudiv a:hover{ /*hover background color*/
background-color: #fff;
}
.tablerow {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #FFFFFF;
background-color: #0099FF;
}
</style>
<script type="text/javascript">
/*************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.co
**************************
//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="">Architecture</a>'
menu1[1]='<a href="">Auctioneering</a>'
menu1[2]='<a href="">Valuation/Surveyin
menu1[3]='<a href="">Property Buying/Selliing</a>'
//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="">New Homes</a>'
menu2[1]='<a href="">Residential Homes</a>'
menu2[2]='<a href="">Sale Agreed</a>'
var menuwidth='100px' //default menu width
var menubgcolor='white' //menu bgcolor
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
/////No further editting needed
var ie4=document.all
var ns6=document.getElementByI
if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;w
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="
var parentEl=what.offsetParent
while (parentEl!=null){
totaloffset=(offsettype=="
parentEl=parentEl.offsetPa
}
return totaloffset;
}
function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dro
if (menuwidth!=""){
dropmenuobj.widthobj=dropm
dropmenuobj.widthobj.width
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}
function iecompattest(){
return (document.compatMode && document.compatMode!="Back
}
function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+
dropmenuobj.contentmeasure
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure
edgeoffset=dropmenuobj.con
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+i
dropmenuobj.contentmeasure
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure
edgeoffset=dropmenuobj.con
if ((dropmenuobj.y-topedge)<d
edgeoffset=dropmenuobj.y+o
}
}
return edgeoffset
}
function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what
}
function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getEl
populatemenu(menucontents)
if (ie4||ns6){
showhide(dropmenuobj.style
dropmenuobj.x=getposOffset
dropmenuobj.y=getposOffset
dropmenuobj.style.left=dro
dropmenuobj.style.top=drop
}
return clickreturnvalue()
}
function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e){
if (ie4&&!dropmenuobj.contain
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTar
delayhidemenu()
}
function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibili
}
}
function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hide
}
function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu
</script>
</head>
<body>
<table width="400" border="0">
<tr>
<td width="50" bgcolor="#0099FF"><a href="default.htm" class="tablerow" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(
<td width="50" bgcolor="#0099FF"><a href="default.htm" class="tablerow" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(
</tr>
</table>
<p> </p>
</body>
</html>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: sundaramkumarPosted on 2007-08-29 at 07:34:30ID: 19791657
Comments are available to members only. Sign up or Log in to view these comments.