The JS implementation first displays the big image, and then automatically collapse the advertisement code for displaying the small image. The js big image
The example in this article describes how to automatically collapse the advertisement code for displaying a small image after displaying a large image in Javascript. Share it with you for your reference. The details are as follows:
This is a very good JavaScript image effect. When you first open a webpage, a large image is displayed, just like a screen-masking advertisement. After a while, the image is automatically collapsed slowly, at this time, JavaScript controls the change of advertising images, which are always displayed on the top of the webpage. We often see this effect on some large portal websites. I personally feel pretty cool!
Let's take a look at the running effect:
The Online Demo address is as follows:
Http://demo.jb51.net/js/2015/js-big-to-small-pic-adv-codes/
The Code is as follows:
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I hope this article will help you design javascript programs.