You will need some javascript to help you do this. I don't think it's possible with css alone.
I am not a javascript guru, so I hesitate to show this to you....but it might be helpful, so I will. I had to do something like this for a project once and here is the code that I made to do this:
Javascript :
Code:
function menu_rollover_on(explanation){
document.getElementById('explanation_paragraph').innerHTML = explanation;
document.getElementById('menu_explanation').style.display = "block";
}
function menu_rollover_off(){
document.getElementById('explanation_paragraph').innerHTML = "";
document.getElementById('menu_explanation').style.display = "none";
}
snippet of the html:
Code:
<div id="menu_box">
<ul>
<li>
<a href="weekly.cfm" onmouseover="menu_rollover_on('See a preview of this weeks ad here.');" onmouseout="menu_rollover_off()">Entire Ad</a>
</li>
<li>
<a href="zoom_pan.cfm" target="_blank" onmouseover="menu_rollover_on('This option allows you to zoom into this week’s ad or drag it from side to side as needed.');" onmouseout="menu_rollover_off()">Zoom & Pan</a>
</li>
</ul>
</div>
<div id="menu_explanation">
<p id="explanation_paragraph"></p>
</div>
|