1. Regularly refresh an interface using the following code:
<Script language = "JavaScript">
Function myrefresh ()
{
Window. Frames ['queryresult']. Location. Reload ();
}
Function dorefresh ()
{
Myrefresh ();
VaR time = getobj ("Minute"). value;
SetTimeout ('dorefresh () ', time * 60*1000); // specify time * 60 seconds to refresh once
}
</SCRIPT>
2. added sound warning:
Here I use:
<C: If test = "$ {not empty errorflag}">
<Bgsound id = "snd" loop = "-1" src = "">
<SCRIPT>
Playsound ("../images/folder.wav ");
Alert ("abnormal job link ");
Stopsound ();
</SCRIPT>
</C: If>
<SCRIPT>
// Play music! In
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>
Note: bgsound is only valid in IE6 and does not work in IE7 or later versions. Currently, there are few simple and effective background music methods available, so you are helpless...
3. Different rows are represented in different colors.
The orm of this program uses ibatis, which has never been used before. You can use the open source JS display tool activewidget to draw a table on the interface, but there are few online resources.