JavaScript special effect instance 002-timed window opening, javascript002-

Source: Internet
Author: User

JavaScript special effect instance 002-timed window opening, javascript002-
Instance 002 timed window opening the instance indicates that the window should be opened after the specified time. The main technical point is to use the setTimeout () method of the window object to implement timed window opening. The syntax format of the setTime () method is as follows.

<span style="font-size:14px;">setTimeout(function,milliseconds)</span>

The parameters are described as follows. Function: the name of the JavaScript custom function to be called. Milliseconds: sets the timeout time (in ms ). Function: Call a function when the timeout is exceeded. This value can be cleared using the clearTimeout () function. Note: The setTimeout () method only calls the callback function after the timeout time, while the setInterval () method repeatedly calls the specified function at a certain time. Current process 1. production is used to open a window to show the current advertisement page new.html
<Html> 2.use function to create a custom pp() (setset, and use settimeout()(( indexindexindexindexindexindexindexindexindexindexindexindexindex.
<Pre name = "code" class = "html"> 


Note: The content of the style label is css. We focus on the content in the script label. In this way, our instance is ready.



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.