Summary of a recent software upgrade

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.