It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

MouseOver Question

MouseOver Question

Postby cred on Mon Jan 14, 2008 8:26 pm

I am using mouseovers to define certain words in a form. However, I don't want the words to be underlined.

Code: Select all
#box1 {
position: absolute;
top: 200px;
left: 70px;
font-family: Arial;
border: outset;
font: 4px;
background-color: white;
padding: 5px;
z-index: 2;
visibility: hidden;
}

<script language="JavaScript">
   
   function box(boxname,menustate){
   if (document.getElementById)
{document.getElementById(boxname).style.visibility = menustate}

else {document[boxname].visibility = menustate}
<a href="javascript://" OnMouseOver="box('box1','visible')" onMouseOut="box('box1','hidden')">
Criteria 1:</a><br><br>

<div id="box1">
<p>Criteria 1 is defined as...</p>
</div>


Pretty basic code. But I would like to get rid of the underline.

Thanks
cred
 
Posts: 0
Joined: Mon Jan 14, 2008 8:03 pm

Postby leonard on Tue Jan 15, 2008 3:11 pm

add the style
Code: Select all
text-decoration:none;

to your tag you dont want to be underlined.

cheers!
- leonard
:%s/^M//
There are 10 kinds of people:
Those who understand binary and those who don't.
User avatar
leonard
100+ Club
 
Posts: 147
Joined: Tue Dec 18, 2007 7:11 am
Location: Switzerland


Who is online

Users browsing this forum: No registered users and 2 guests