The bottom right corner of jquery automatically pops up a deactivated advertising layer

  • 2020-06-12 08:24:31
  • OfStack

When the layer pops out at the bottom right corner, it will automatically hide after 1 fixed time.

html code:

<html xmlns="">
  <meta charset="UTF-8">
  <title>jquery The lower right corner automatically pops off the closing layer </title><base target="_blank"/>
  <script type="text/javascript" src="jquery/jquery-1.11.2.min.js"></script>
  <style type="text/css">
    * {
      margin: 0px;
      padding: 0px;
    a {color:black;
    #keleyislide {
      width: 300px;
      height: 200px;
      border: 1px solid #000;
      position: fixed;
      bottom: 2px;
      right: 2px;
      display: none;
      background-color: White;

      #keleyislide a {
        position: absolute;
        top: 8px;
        right: 8px;
        font-size: 12px;
        text-decoration: none;
        color: Blue;

      #keleyislide h2 {
        font-size: 24px;
        text-align: center;
        font-family: " Microsoft jas black ";

    #reshow {
      position: fixed;
      right: 2px;
      bottom: 2px;
      font-size: 12px;
      display: none;
      background-color: White;
      cursor: pointer;
      border: 1px solid #000;

  <div style="background-color:Green; width:100%;height:150px;"></div>
  <div style="background-color:Red; width:100%;height:150px;"> welcome </div>
  <div style="background-color:Yellow; width:100%;height:150px;"> 1 The pop-up layer will automatically hide after a certain time 
  <div style="background-color:Silver; width:100%;height:150px;"> plan </div>
  <div style="background-color:Aqua; width:100%;height:150px;">aaaa</div>
  <div style="background-color:Fuchsia; width:100%;height:150px;">jihua</div>
  <div style="background-color:Green; width:100%;height:150px;"></div>
  <div style="background-color:Blue; width:100%;height:150px;">bbbb</div>
  <div style="background-color:Olive; width:100%;height:150px;"> welcome </div>
  <div style="background-color:Green; width:100%;height:150px;">randomvisit</div>
  <div style="background-color:Purple; width:100%;height:150px;">cccc</div>
  <div style="background-color:Green; width:100%;height:150px;">B</div>
  <div style="background-color:Lime; width:100%;height:150px;">myslider</div>
  <div style="background-color:Orange; width:100%;height:150px;">Jihua</div>
  <div id="reshow"> You are quick to come back </div>
  <div id="keleyislide">
    <a href="javaScript:void(0)" id="close" target="_self"> Shut down </a>
    <span style=" line-height:50px;"> Slide the bottom right corner to pop up the reproducible layer <br /></span>
  <script type="text/javascript">
    function Jihua_Cnblogs_Com() { $("#kel"+"eyislide").slideDown("slow"); $("#reshow").hide(); }
    function KeleyiAutoHide() { $("#ke"+"leyislide").slideUp("slow"); $("#reshow").show(); }
    $(document).ready(function () {
      setTimeout(function () {
      }, 1000)
      setTimeout(function () { KeleyiAutoHide(); },9000)
      $("#close").click(function () {
      $("#reshow").mouseover(function () {
        Jihua_Cnblogs_Com();       })

This is the end of this article, I hope you enjoy it.

Related articles: