日期:2014-05-16  浏览次数:20842 次

请问为什么当zdl.asp中rszdl.recordcount为1个时,line2正常闪烁,而rszdl.recordcount>=2时,line2就不闪烁了?
index.asp代码如下:
<script language="JAVASCRIPT">
     colors2 = new Array(6); 
     colors2[0]="#fef4d9";
     colors2[1]="#333300";
     colors2[2]="#665500";
     colors2[3]="#997700";
     colors2[4]="#CC9900";
     colors2[5]="#FFCC00";

     var i=0;
 var line2
     function fLi2() {
             document.frames("ifm").line2.value.style.visibility = "visible";
             if (i<6) {
                     document.frames("ifm").line2.style.color = colors2[i];
                     i++;
                     timerID2 = setTimeout( "fLi2()", 60);
             }
             else {
             i=0;
             document.frames("ifm").line2.style.visibility="hidden";
             TimerID2=setTimeout("fLi2()",800);
             }
       }
     </script>
<script language="javascript" type="text/javascript"> 
function dyniframesize(down) { 
var pTar = null; 
if (document.getElementById){ 
pTar = document.getElementById(down); 

else{ 
eval('pTar = ' + down + ';'); 

if (pTar && !window.opera){ 
//begin resizing iframe 
pTar.style.display="block" 
if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight){ 
//ns6 syntax 
pTar.height = pTar.contentDocument.body.offsetHeight +20; 

else if (pTar.Document && pTar.Document.body.scrollHeight){ 
//ie5+ syntax 
pTar.height = pTar.Document.body.scrollHeight; 



</script>
<div id="floatTips2">
 <div style="background:url(/xiaowu/Images/webhy.jpg); height:30px;border-top:solid 1px #2D7CE3; border-left:solid 1px #2D7CE3; border-right:solid 1px #2D7CE3;"></div>
 <div style="border-bottom:solid 1px #2D7CE3; border-left:solid 1px #2D7CE3; border-right:solid 1px #2D7CE3;">
 <iframe src ="../zdl.asp" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto" id="ifm