现在的位置: 首页 > 综合 > 正文

近期升级一个软件所做的总结

2013年09月06日 ⁄ 综合 ⁄ 共 830字 ⁄ 字号 评论关闭

1.对一个界面进行定时刷新,我采用的是如下代码:

 <script language="JavaScript">
function myrefresh()
{
       window.frames['queryResult'].location.reload();    
}
function dorefresh()
{
      myrefresh();
      var time = getobj("minute").value;
    
      setTimeout('dorefresh()',time*60*1000); //指定time*60秒刷新一次
     
}

</script>

 

2.增加声音预警:

这个我采用的是:

<c:if test="${not empty errorflag}">
  
 <bgsound id="snd" loop="-1"  src="">
 
 <script>
 playSound("../images/folder.wav");
 alert("存在异常作业链");
 stopSound();
 </script>
</c:if>

 

<script>
//play music!放在<head>中

function playSound(src){
var _s = document.getElementById("snd");

if(src!='' && typeof src!=undefined){

_s.src = src;
}
}
function stopSound(){
var _s = document.getElementById("snd");

_s.src = "";

}
</script>

说明:bgsound只在ie6中有效,在ie7以上版本都无效,目前提供简单有效的背景音乐方法很少,感觉无奈。。。

3.不同行,采用不同颜色表示

这个程序的orm采用的是ibatis,之前没用过,照葫芦画瓢做。界面端画表格,通过使用开源js展示工具ActiveWidget,通过这个工具画;但是网上资源比较少。

抱歉!评论已关闭.