<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link rel="stylesheet" href="/SWebHQ/Css/Style1/webhq.css" type="text/css">
<script language="JavaScript1.2" src="/SWebHQ/JScript/Style1/webhq.js">
</script>
<script language="JavaScript1.2" src="/SWebHQ/JScript/Style1/hisdata.js">
</script>
<script language="JavaScript1.2" src="<#ModuleName>/HisData?Stkcode=<#Stkcode>&Style=<#Style>&CodeIndex=<#CodeIndex>">
</script>
</head><body bgcolor="#000000" text="#FFFFFF" leftmargin="0" topmargin="0" onkeydown="key();" onLoad="Calc();cmdfocus();" onhelp="javascript:return false">
<div id="Line" style="position:absolute; left:0px; top:0px; width:1px; height:379px; z-index:1; background-color: #FF0000; border: 1px none #000000; display: none"></div>
<div id="LayData" style="position:absolute; left:231px; top:90px; width:75px; height:94px; z-index:2; display: none">
<table width="100%" border="1" cellspacing="1" cellpadding="3" height="94" id="TableData" bgcolor="#FFFFFF" bordercolor="#000000">
<tr>
<td> </td>
</tr>
</table>
</div>
<div id="test">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img id="Img" onMouseMove="ImgMove();" onMouseOut="ImgOut();" src="<#ModuleName>/HisGif?Stkcode=<#Stkcode>&Style=<#Style>&CodeIndex=<#CodeIndex>"></td>
<td><img src="<#ModuleName>/RealHQGif?Stkcode=<#Stkcode>&Style=<#Style>&CodeIndex=<#CodeIndex>&W=170&H=400&L=5"></td>
</tr>
</table>
</div>
<script language="JavaScript1.2">setTimeout("SetString()",2000) var content = '<table border="0" cellspacing="0" cellpadding="0">';
content += '<tr>';
content += '<td><img id="Img" onMouseMove="ImgMove();" onMouseOut="ImgOut();" src="<#ModuleName>/HisGif?Stkcode=<#Stkcode>&Style=<#Style>&CodeIndex=<#CodeIndex>"></td>';
content += '<td><img src="<#ModuleName>/RealHQGif?Stkcode=<#Stkcode>&Style=<#Style>&CodeIndex=<#CodeIndex>&W=170&H=400&L=5"></td>';
content += '</tr>';
content += '</table>';
function SetString()
{
document.getElementById("test").innerHTML=content;
}</script>
</body>
</html>setTimeout("SetString()",20000) 用这个来间隔20秒钟刷新的怎么就刷新第一次?
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link rel="stylesheet" href="/SWebHQ/Css/Style1/webhq.css" type="text/css">
<script language="JavaScript1.2" src="/SWebHQ/JScript/Style1/webhq.js">
</script>
<script language="JavaScript1.2" src="/SWebHQ/JScript/Style1/hisdata.js">
</script>
<script language="JavaScript1.2" src="<#ModuleName>/HisData?Stkcode=<#Stkcode>&Style=<#Style>&CodeIndex=<#CodeIndex>">
</script>
</head><body bgcolor="#000000" text="#FFFFFF" leftmargin="0" topmargin="0" onkeydown="key();" onLoad="Calc();cmdfocus();" onhelp="javascript:return false">
<div id="Line" style="position:absolute; left:0px; top:0px; width:1px; height:379px; z-index:1; background-color: #FF0000; border: 1px none #000000; display: none"></div>
<div id="LayData" style="position:absolute; left:231px; top:90px; width:75px; height:94px; z-index:2; display: none">
<table width="100%" border="1" cellspacing="1" cellpadding="3" height="94" id="TableData" bgcolor="#FFFFFF" bordercolor="#000000">
<tr>
<td> </td>
</tr>
</table>
</div>
<div id="test">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img id="Img" onMouseMove="ImgMove();" onMouseOut="ImgOut();" src="<#ModuleName>/HisGif?Stkcode=<#Stkcode>&Style=<#Style>&CodeIndex=<#CodeIndex>"></td>
<td><img src="<#ModuleName>/RealHQGif?Stkcode=<#Stkcode>&Style=<#Style>&CodeIndex=<#CodeIndex>&W=170&H=400&L=5"></td>
</tr>
</table>
</div>
<script language="JavaScript1.2">setTimeout("SetString()",2000) var content = '<table border="0" cellspacing="0" cellpadding="0">';
content += '<tr>';
content += '<td><img id="Img" onMouseMove="ImgMove();" onMouseOut="ImgOut();" src="<#ModuleName>/HisGif?Stkcode=<#Stkcode>&Style=<#Style>&CodeIndex=<#CodeIndex>"></td>';
content += '<td><img src="<#ModuleName>/RealHQGif?Stkcode=<#Stkcode>&Style=<#Style>&CodeIndex=<#CodeIndex>&W=170&H=400&L=5"></td>';
content += '</tr>';
content += '</table>';
function SetString()
{
document.getElementById("test").innerHTML=content;
}</script>
</body>
</html>setTimeout("SetString()",20000) 用这个来间隔20秒钟刷新的怎么就刷新第一次?
解决方案 »
- 关于prototype问题请教
- clientHeight,offsetHeight,scrollHeight有什么不一样啊?
- jquery 鼠标移上变色效果处理
- 求助: 这两个变态的js写法怎么理解?哪种写法更好更有效?各有啥优缺点?
- dtree异步加载的问题,请教
- 网页中的TextArea
- 怎么用链接
- 设DIV为绝对定位,但在style中不设top,如何得到他的实际top?
- ===========请教:如何实现Input(text类型)框中部分value的选中===========
- 请教一个问题--如何实现把VBScript的变量传值到JavaScript?
- javascript实现超链接遇到的问题,请各位帮帮忙,谢谢
- 一段javascript代码在火狐不能正常显示
你要用setInterval方法