D
da
I have a link which display a text when moving the mouse cursor over
the link, using CSS, like this:
CSS :
a { z-index: 20 }
a .alt { display: none }
a:hover { color: #FF3300; display: inline; }
a:hover .alt {
display: inline; position: absolute; z-index: 30;
margin: 1em 0 0 -2em; width: 10em; padding: 0.2em 0.3em;
color: #FFCC00; border-style: outset; text-decoration:none;
background-color: #006699;
}
HTML:
<a href="#">link<span class="alt">Mouse on link</span></a>
I like to put the text in a variable:
var textdisplay = "Mouse on link"
how do I refer to this variable in the link ?
DS
the link, using CSS, like this:
CSS :
a { z-index: 20 }
a .alt { display: none }
a:hover { color: #FF3300; display: inline; }
a:hover .alt {
display: inline; position: absolute; z-index: 30;
margin: 1em 0 0 -2em; width: 10em; padding: 0.2em 0.3em;
color: #FFCC00; border-style: outset; text-decoration:none;
background-color: #006699;
}
HTML:
<a href="#">link<span class="alt">Mouse on link</span></a>
I like to put the text in a variable:
var textdisplay = "Mouse on link"
how do I refer to this variable in the link ?
DS