Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Hoverup menu

Reply
Thread Tools

Hoverup menu

 
 
Brian Wilson
Guest
Posts: n/a
 
      02-24-2004
I have a site (http://cannontimes.com/) were I am using a mousover menu
navigation. I have everything working the way I like it except for a wite
box around the text that is visible over a background. Could someone tell
me how to disable this white line to make it invisible against the
background. The current code I am using is:

<!--Menu items w/mouseover--->
<div style="background-color:none;width:684;height:32;padding-top:5px"
onMouseover="over_effect(event,'outset')"
onMouseout="over_effect(event,'solid')"
onMousedown="over_effect(event,'inset')"
onMouseup="over_effect(event,'outset')">
<p align="center">
<font face="Arial" size="2">

<span class="menuitems"><u>Family News</u>&nbsp;</span>
<span class="menuitems">&nbsp;<u><a href="reunews.htm"><font
color="#000000"><u>Reunion News</u></font></a></u>&nbsp;</span>
<span class="menuitems">&nbsp;<u><a href="babygallery/newbabies.htm"><font
color="#000000"><u>Cannon Baby
Gallery</u></font></a></u>&nbsp;</span>
<span class="menuitems">&nbsp;<u>Cannon Bulletin Board</u>&nbsp;</span>
</div>

<!--Javascript for the hoverup-->
//Hover-up Menu Bar:
//Customize background color (none) and link color (black):
var cssdefinition='<style>\n.menuitems{\nborder:2.5px solid
white;\n}\n\n.menuitems
a{\ntext-decoration:none;\ncolor:none;\n}\n<\/style>'

//No need to edit beyond here
if (document.all||document.getElementById)
document.write(cssdefinition)

function over_effect(e,state, bgcolor){
if (document.all)
source4=event.srcElement
else if (document.getElementById)
source4=e.target
if (source4.className=="menuitems"){
source4.style.borderStyle=state
source4.style.backgroundColor=bgcolor
}
else{
while(source4.tagName!="DIV"){
source4=document.getElementById? source4.parentNode : source4.parentElement
if (source4.className=="menuitems"){
source4.style.borderStyle=state
source4.style.backgroundColor=bgcolor
}
}
}
}



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Iterating through all the menu/child items in a menu control Bryan ASP .Net 1 03-01-2006 09:38 AM
only wanna show Sub Menu of root menu mike ASP .Net 2 11-30-2005 10:50 PM
Horizontal Menu and Sub menu in asp.net 2.0 itzikkl ASP .Net 0 03-27-2005 12:50 PM
Menu and sub-menu in asp.net as windows menus made with vb, delphi, etc..? Vilmar ASP .Net 0 05-27-2004 05:52 PM
Jump Menu (DropDown Menu) in ASP.net. Can someone help me out? Miguel Dias Moura ASP .Net 3 04-03-2004 08:17 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57