marquee一打开就有内容,然后再滚动
<SCRIPT LANGUAGE=javascript>
function test()
{
try
{
var str = marStr.innerText;
var intLen1 = str.length;
var intLen2 = marStr.offsetWidth;
var j = intLen2/intLen1;
var strTemp = marStr.innerHTML;
if(j>1)
{
for(var i=0; i<j; i++)
strTemp+=marStr.innerHTML+" ";
}
marStr.innerHTML=strTemp;
}
catch(e){}
}
</SCRIPT>
<MARQUEE id="marStr" onmouseover=this.stop(); onmouseout=this.start(); scrollAmount=1 scrollDelay=0 direction=up width=600 height=200>{%showannounce({%channelid%},18,80,0,1)%}
<table height="100" width="600">
<tr>
<td height="50" width="100%">
</td>
</tr>
</table></MARQUEE>
如何将上面的代码改成那样啊,一打开就有内容,然后再滚动!求求~~~