I am attempting to show a <span> tag when the user hovers over a link, and hide it when they move the mouse off. But the code just dosn't work.
Here is my JavaScript:
Here is my HTML:
Here is my JavaScript:
Code:
function showSpan(name){
document.getElementByName(name).style.display = "block";
}
function hideSpan(name){
document.getElementByName(name).style.display = "none";
}
Here is my HTML:
Code:
<a href="Algorithms.html" onMouseOver="showSpan('Algorithms');" onMouseOut="hideSpan('Algorithms');">Algorithms</a>
<span name="Algorithms" style="display:none;"> - Test.</span>






