"Evertjan." <ex**************@interxnl.net> wrote in
news:Xn********************@194.109.133.242:
ComfortablyNumb wrote on 03 feb 2006 in comp.lang.javascript:
guys,
i am changing the title of a span.
what i want to also do is, as soon as i change the title of the span,
i want to display that title without moving my mouse over it.
i am trying to do this through javascript.
i dont know if this is in anyways possible, but experts on this group
might help me out and guide me in the right direction.
<span title='aaa'id='s1'>my title is: <span id='s2'></span></span>
<script type='text/javascript'>
function show(){
document.getElementById('s2').innerHTML =
document.getElementById('s1').title
}
setInterval('show()',30)
</script>
not tested
i got the impression that the OP wanted to have the contents of the title
parameter displayed. ie: if you hover over a div like so:
<div id="party" title="We all love to party"></div>
Then you get a nice pop-up bubble on top of your mouse pointer that says
"We all love to party". However, I don't think its possible to display
the contents of a title parameter without mousing over the tag directly.
Your suggestion would be a good work-around.