JS implementation click to expand and close the left ad code, js Code
This example describes the code for opening and closing the advertisement on the left side of JavaScript. Share it with you for your reference. The details are as follows:
This section describes the advertisement code on the left that can be clicked to expand or close on the JS implementation webpage. The expression is similar to the couplet advertisement, but the operation method is different. when clicked, the code will be hidden on the left of the screen, but it is not completely hidden. It still displays an advertisement with a vertical picture. When you click "show", it will re-open the advertisement, which can improve the user experience on the webpage.
The running effect is as follows:
The Online Demo address is as follows:
Http://demo.jb51.net/js/2015/js-click-show-close-style-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.