Flash + jQuery: allows you to close and repeat top ads, while jquery is used to top ads.

Source: Internet
Author: User

Flash + jQuery: allows you to close and repeat top ads, while jquery is used to top ads.

Special effects

On the home page of the imitation portal website, The flash + jQuery code for ads that can be closed and repeatedly played from the top are "pressed". When the ads are played, the whole page is under pressure (this requires you to put some html code at the top of your website, under the <body>.

Demo Diagram

Usage

1. Introduce css in the head.

2. It is recommended that you add the following code at the top of your website. In this way, the advertisement playback will press down all the content on your page, which is magnificent:

<Div class = "gg_full wrapfix"> <div class = "gg_fbtn"> <a style = "display: none "class =" gg_freplay "title =" replay "href =" # "> </a> <a class =" gg_fclose "title =" close "href =" # "> </a> </div> <div class = "gg_fcon"> </div> <! -- Js --> <script type = text/javascript src = "jquery/jquery-1.4.2.min.js"> </script> <script type = text/javascript src = "js/qpxl. js "> </script>

3. Modify the flash Address, size, and display time in the qpxl. js file.

Demo address

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

Related Article

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.