** javascript help **
- Started
- Last post
- 8 Responses
- Dcsign
Can anyone tell me the correct javascript code for 1) on mouse over bottom border 1px, colour red 2)on mouse out bottom border none ---
.... Thanks in advance!!
- Dcsign0
anyone.. please....
- mitsu0
onmouseover='this.style.borderBo... onmouseout='this.style.borderBot...
- Dcsign0
damn.. it didn't do what i'd hoped but never mind.. thanks anyway
- mitsu0
what were you hoping for?
- heavyt0
ever thought of using CSS instead?
TR1
- nicora20
There is no JavaScript need for that.
#navcontainer { width: 200px; }
#navcontainer ul
{
margin-left: 0;
padding-left: 0;
list-style-type: none;
}#navcontainer a
{
display: block;
padding: 3px;
width: 160px;
background-color: 'transparent';
border-bottom: 0;
}#navcontainer a:link, #navlist a:visited
{
color: #333;
text-decoration: none;
}#navcontainer a:hover
{
background-color: 'transparent';
border-bottom:solid 1px red;
color: #333;
}Item one
Item two
Item three
Item four
Item five
- nicora20
blah...
follow this link: http://www.seemecreate.com/archiā¦
- Dcsign0
The reason i wanted the javascript alternative rather then the css is cause i am triggering the border from elsewhere on the page...
What i actually wanted to achieve from all of this was to trigger an underline of text from a different part of the page, with a different colour underline from that of the text