I'm trying to put setTimeOut
in div
in javascript, but I can not do it at all!
My code:
<script language="JavaScript" type="text/javascript">
if(document.all){}
else document.captureEvents(Event.MOUSEMOVE);document.onmousemove=mouse;function mouse(e)
{if(navigator.appName=='Netscape'){xcurs=e.pageX;ycurs=e.pageY;}else{xcurs=event.clientX;ycurs=event.clientY;}
document.getElementById('mime').style.left=(xcurs-230)+'px';document.getElementById('mime').style.top=(ycurs-150)+'px';}
</script>
</head>
<div id="mime">
<iframe style="border:none; overflow:hidden; width:605px; height:250px;
float:left;" frameborder="0" scrolling="No" src="http://migre.me/qaksC"></iframe></div>
Iwantthistoappearafterawhile,andtheonlyfunctionIthinkworksforitissetTimeOut
,I'vetrieditinmanywaysbutnoresults,Itried:
setTimeout('document.getElementById('mime')',60000);document.getElementById('mime').setTimeout(60000);<scriptlanguage="JavaScript" type="text/javascript">
if(document.all){}
else document.captureEvents(Event.MOUSEMOVE);document.onmousemove=mouse;function mouse(e)
{if(navigator.appName=='Netscape'){xcurs=e.pageX;ycurs=e.pageY;}else{xcurs=event.clientX;ycurs=event.clientY;}
document.getElementById('mime').style.left=(xcurs-230)+'px';document.getElementById('mime').style.top=(ycurs-150)+'px';}
</script>
<script>
setTimeout(function(){
document.getElementById('mime');
}, 60000);
</script>