Javascript IE10展会<;span>;短时间的工具提示

Javascript IE10展会<;span>;短时间的工具提示,javascript,html,css,internet-explorer-10,Javascript,Html,Css,Internet Explorer 10,我有一个标记,我使用以下函数在其中添加了“onmouseover”和“onmouseout”属性 function mOver(obj) { document.getElementById('sw_duration_span').setAttribute("title","my title"); document.getElementById('sw_duration_span').style.display="block"; } func

我有一个
标记,我使用以下函数在其中添加了“onmouseover”和“onmouseout”属性

function mOver(obj) {       
   document.getElementById('sw_duration_span').setAttribute("title","my title");              
   document.getElementById('sw_duration_span').style.display="block";
}

function mOut(obj) {
   document.getElementById('sw_duration_span').setAttribute("title", " ");
   document.getElementById('sw_duration_span').style.display=" ";
}
我的span块如下所示:

<span id="sw_duration_span" class="some_css_class" onmouseover="mOver(this)" onmouseout="mOut(this)" title="my title"></span>

当我在Mozilla和Chrome上测试这个时,它工作得很好!但在IE10中,onmouseover事件在几秒钟后消失。我不知道这里出了什么问题!这是相当重要的,我让它在所有三个或没有工作

感谢您的帮助

我的JSFIDLE演示在这里:

更新


我现在在控制台ReferenceError中收到错误消息:未定义移动器-这显然是错误的!我已经定义了这两个函数

你能给我们提供一把小提琴吗?我正在试图理解你在这里做什么,但我完全不知道。。。你的意思是(系统提供的)工具提示没有保留…?为什么要将标题设置为悬停?默认情况下,元素的标题仅在光标悬停在元素上时显示。在Chrome 43中,您的小提琴对我不起作用。javascript设置的标题永远不会显示在弹出窗口中,只显示在title属性中。你到底想做什么?像这样的事?
function mOver(obj) {       
   document.getElementById('sw_duration_span').setAttribute("title","my title");              
   document.getElementById('sw_duration_span').style.display="block";
}

function mOut(obj) {
   document.getElementById('sw_duration_span').setAttribute("title", " ");
   document.getElementById('sw_duration_span').style.display=" ";
}