Four_of_Five
10-09-2003, 10:15 PM
Kindly view the attached scriptext file. In particular, take note of the colored text below:
Ever since I had "changed" the value of the top: to [b]15px[b] I have been unable to "reach" or mouse-over on the sub-menus. How do I fix this while still maintaining the position of the sub-menus to appear just after the #content's edge???
2nd question, is how do I "set-up" the script wherein when I ONmouse-over the main MENUs (MENU1, MENU2, MENU3...) they also change colors??
3rd,last one, and this one really stumps me :( How would it be possible to have the main MENUs have a particular ONCLICK color, say for example RED and remain that way until I mouse-over and click on another MENU??? In much the same way the other links in the script behaves. Please download and check out the entire textscript to appreciate
______________________________________________________
<style type="text/css">
body {margin:0px; width:100%;}
#tb {position:relative; visibility:hidden;}
#tb a {color:#006699; text-decoration:none; font-size:16px; font-weight:bold;}
#tb a:hover {color:blue; text-decoration:underline; font-size:16px; font-weight:bold;}
#content{position:relative; width:100%; height:34px; background-color:#006699; top:15px;}
#menu1 {position:absolute; left:20px;}
#menu2 {position:absolute; left:90px;}
#menu3 {position:absolute; left:200px;}
#menu4 {position:absolute; left:320px;}
#menu5 {position:absolute; left:420px;}
.menu1 {position:relative; cursor:pointer; font-weight:bold; color:#FFFFFF; padding:2px; z-index:999; top:5px;}
.menu2 {position:relative; cursor:pointer; font-weight:bold; color:#FF99FF; padding:2px; z-index:999; top:5px;}
.menu3 {position:relative; cursor:pointer; font-weight:bold; color:#00FF00; padding:2px; z-index:999; top:5px;}
.menu4 {position:relative; cursor:pointer; font-weight:bold; color:#00FFFF; padding:2px; z-index:999; top:5px;}
.menu5 {position:relative; cursor:pointer; font-weight:bold; color:#FFFF33; padding:2px; z-index:999; top:5px;}
.sub1 {position:relative; width:120px; background-color:#000099; visibility:hidden; cursor:pointer; padding:7px; z-index:999; top:15px;}
.sub2 {position:relative; width:120px; background-color:#006600; visibility:hidden; cursor:pointer; padding:7px; z-index:999; top:5px;}
.sub3 {position:relative; width:120px; background-color:#990000; visibility:hidden; cursor:pointer; padding:7px; z-index:999; top:5px;}
.sub4 {position:relative; width:120px; background-color:#000000; visibility:hidden; cursor:pointer; padding:7px; z-index:999; top:5px;}
.sub5 {position:relative; width:120px; background-color:#FF0000; visibility:hidden; cursor:pointer; padding:7px; z-index:999; top:5px;}
.sub1 a {color:#ffffff; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px;}
.sub2 a {color:#ff99ff; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px;}
.sub3 a {color:#00FF00; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px;}
.sub4 a {color:#00FFFF; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px;}
.sub5 a {color:#FFFF33; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px;}
.sub1 a:hover{color:#ffff33; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px; background-color: #ff0000;}
.sub2 a:hover{color:#ffff33; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px; background-color: #ff0000;}
.sub3 a:hover{color:#ffff33; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px; background-color: #ff0000;}
.sub4 a:hover{color:#ffff33; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px; background-color: #ff0000;}
.sub5 a:hover{color:#ffff33; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px; background-color: #000000;}
</style>
___________________________________________
Ever since I had "changed" the value of the top: to [b]15px[b] I have been unable to "reach" or mouse-over on the sub-menus. How do I fix this while still maintaining the position of the sub-menus to appear just after the #content's edge???
2nd question, is how do I "set-up" the script wherein when I ONmouse-over the main MENUs (MENU1, MENU2, MENU3...) they also change colors??
3rd,last one, and this one really stumps me :( How would it be possible to have the main MENUs have a particular ONCLICK color, say for example RED and remain that way until I mouse-over and click on another MENU??? In much the same way the other links in the script behaves. Please download and check out the entire textscript to appreciate
______________________________________________________
<style type="text/css">
body {margin:0px; width:100%;}
#tb {position:relative; visibility:hidden;}
#tb a {color:#006699; text-decoration:none; font-size:16px; font-weight:bold;}
#tb a:hover {color:blue; text-decoration:underline; font-size:16px; font-weight:bold;}
#content{position:relative; width:100%; height:34px; background-color:#006699; top:15px;}
#menu1 {position:absolute; left:20px;}
#menu2 {position:absolute; left:90px;}
#menu3 {position:absolute; left:200px;}
#menu4 {position:absolute; left:320px;}
#menu5 {position:absolute; left:420px;}
.menu1 {position:relative; cursor:pointer; font-weight:bold; color:#FFFFFF; padding:2px; z-index:999; top:5px;}
.menu2 {position:relative; cursor:pointer; font-weight:bold; color:#FF99FF; padding:2px; z-index:999; top:5px;}
.menu3 {position:relative; cursor:pointer; font-weight:bold; color:#00FF00; padding:2px; z-index:999; top:5px;}
.menu4 {position:relative; cursor:pointer; font-weight:bold; color:#00FFFF; padding:2px; z-index:999; top:5px;}
.menu5 {position:relative; cursor:pointer; font-weight:bold; color:#FFFF33; padding:2px; z-index:999; top:5px;}
.sub1 {position:relative; width:120px; background-color:#000099; visibility:hidden; cursor:pointer; padding:7px; z-index:999; top:15px;}
.sub2 {position:relative; width:120px; background-color:#006600; visibility:hidden; cursor:pointer; padding:7px; z-index:999; top:5px;}
.sub3 {position:relative; width:120px; background-color:#990000; visibility:hidden; cursor:pointer; padding:7px; z-index:999; top:5px;}
.sub4 {position:relative; width:120px; background-color:#000000; visibility:hidden; cursor:pointer; padding:7px; z-index:999; top:5px;}
.sub5 {position:relative; width:120px; background-color:#FF0000; visibility:hidden; cursor:pointer; padding:7px; z-index:999; top:5px;}
.sub1 a {color:#ffffff; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px;}
.sub2 a {color:#ff99ff; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px;}
.sub3 a {color:#00FF00; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px;}
.sub4 a {color:#00FFFF; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px;}
.sub5 a {color:#FFFF33; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px;}
.sub1 a:hover{color:#ffff33; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px; background-color: #ff0000;}
.sub2 a:hover{color:#ffff33; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px; background-color: #ff0000;}
.sub3 a:hover{color:#ffff33; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px; background-color: #ff0000;}
.sub4 a:hover{color:#ffff33; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px; background-color: #ff0000;}
.sub5 a:hover{color:#ffff33; text-decoration:none; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px; background-color: #000000;}
</style>
___________________________________________