I am trying to use this code to display some data when the mouse is over that link:
<span id="ssd" onmouseover="this.T_WIDTH=210;this.T_TITLE='(0/0) mqe= ';"><a href='http://en.wikipedia.org/wiki/Decision_tree_learning'>http://en.wikipedia.org/wiki/Decision_tree_learning</a></span><br/>
Do you see something wrong because I can’t make it work.
Let’s get away from this DOM level 0 stuff:
I assume your
this.T_WIDTH=210was supposed to set the width of the span, andthis.T_TITLE=(0/0) mqewas supposed to set the title? The code above should do that, just note that you need to set your span to display:block for this to work, since inline elements don’t really have a width.Just make sure you put this script at the bottom of your body; executing it in the head will give you a null error, since the span
ssdwill not have been created yet. Or if you’re using jQuery, you could put it in thedocument.readyfunction.