ASP implements the effect of playing voice prompts when new information is available _ Application tips

Source: Internet
Author: User

1, the information table to create a new field, and 0, 1 of the method to determine the status of information.
2, a new page, timed refresh, and query the table has a field value of 0 records.
3. When the administrator clicks to view the information, the field value is changed to 1.
The most critical of these is the 2nd step, which gives the required code below
Periodically refreshes the specified page. Like a new page called a.asp
So that's <script>settimeout ("location.href=" a.asp ' ", 10000) </script>
Database connection.
<%set rs = Conn.execute ("SELECT * from [table name] where field name = 0")
If not rs.eof then%>
<bgsound src= "Audio path" loop=false>
<%end if
Rs.close:set rs = nothing%>

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.