Home > Web Front-end > JS Tutorial > Flash jQuery implements top advertising that can be closed and played repeatedly_jquery

Flash jQuery implements top advertising that can be closed and played repeatedly_jquery

WBOY
Release: 2016-05-16 16:04:07
Original
1247 people have browsed it

Introduction to special effects

Imitation of the Taishan top-pressing advertising flash jQuery code on the homepage of the portal website that can be closed and played repeatedly. When the ad is played, the entire page will be pressed down (this requires you to put the html part of the code into your The top of the website, below the ), is magnificent.

Demo picture

How to use

1. Introduce css in the head.

2. It is recommended to put the following code at the top of your website. In this way, when the advertisement plays, it will suppress all the content of your page and make it magnificent:

<div class="gg_full wrapfix">
 <div class="gg_fbtn">
   <a style="display: none" class="gg_freplay" title="重播" href="#"></a>
   <a class="gg_fclose" title="关闭" href="#"></a>
 </div>
 <div class="gg_fcon"></div>
</div>
<!--js-->
<script type=text/javascript src="jquery/jquery-1.4.2.min.js"></script>

<script type=text/javascript src="js/qpxl.js"></script>

Copy after login

3. The flash address, size and display time are modified in the qpxl.js file.

Download address Demo address

The above is the entire content of this article, I hope you all like it.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template