Web Background Music Summary

Source: Internet
Author: User

1. When setting up the background music of the Web page, the common method is to use embed tag, object tag and bgsound tag (<bgsound id= "snd"; loop= "2"; src= ""; volume= "0";/>)

2. Web applications and WinForm applications can use a timer timer, while Web site projects do not have a timer and can only use Window.settimeout () as a timer to cycle through a specific function window.settimeout (" Changemessage () ", 30000);

3, when modified JS page does not change, it must be JS error, you can press F12 into the developer tools to track

4, the Clientscript.registerstartupscript () function to print the JS script, can be tracked in the developer tool can also be viewed in VS (vs at run time will generate temporary script document in the solution)

5, HTML comments with <%----%>;//Double slash can also be used, but sometimes error

6, JS debugging is very troublesome, you can consider using alert () to judge, equivalent to a breakpoint, very useful.

7, object is not a function: A functional naming conflict, may conflict with the built-in function in HTML and may conflict with the Name property of this tag (the Name property of the label inside the form tag cannot be the same as the function to be called; you can have the same name without a form tag!) !! )

8. The ID of the control in the page is unique, so the control can be accessed across the page by ID

9,BS get relative path : string url = Server.MapPath ("");

Web Background Music Summary

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.