PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

在不刷新的情况下如何使页面上的图片重载 [复制链接]

1#
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" class="content">
<tr>
    <td align="left" valign="top">
   <div id="oTransContainer" style="FILTER: progidXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=0,

motion='forward'); WIDTH: 1000px; HEIGHT: 250px">
<a> <img src="images/1.gif" width="1000px" height="250px" id=oDIV1

class=pic   /><script>var NowFrame = 1;var MaxFrame =2;var bStart = 0;function fnToggle(){var next = NowFrame + 1;if(next ==

MaxFrame+1) {NowFrame = MaxFrame;next = 1;}if(bStart == 0){bStart = 1;setTimeout('fnToggle()', 2000);return;}else

{oTransContainer.filters[0].Apply();document.images['oDIV'+next].style.display = "";document.images

['oDIV'+NowFrame].style.display = "none";oTransContainer.filters[0].Play(duration=2);if(NowFrame == MaxFrame){NowFrame =

1;}else{NowFrame++;}}        setTimeout('fnToggle()', 6000);}fnToggle();</script></a><a><img src="images/2.gif?"+Date.parse(new Date()) width="1000px" height="250px"

id=oDIV2 style="DISPLAY: none;" class=pic /></a></div>
    
    
    
    </td>
  </tr>
</table>



A      1.gif 2.gif 都是动画但只是让做一次的  "动".动一次就停了.  怎么修改上面的代码如何使的每次显示1.gif 或2.gif都是重载图片(否则除了第一次显示的都是静止的图片)?


B     或者如何加进刷新的动作?
最后编辑null 最后编辑于 2010-03-18 16:51:27
分享 转发
TOP
发新话题 回复该主题