The closed ad layer is automatically displayed in the lower right corner of jquery.

Source: Internet
Author: User

The closed ad layer is automatically displayed in the lower right corner of jquery.

JQuery automatically displays closed floating-tip-layer effects in the lower right corner. This effect can be achieved through the jQuery pop-up layer. If you have any need, refer.

The lower-right pop-up layer is automatically hidden after a certain period of time.

Html code:

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

<! Doctype html>

<Html xmlns = "http://www.w3.org/1999/xhtml">

<Head>

<Meta charset = "UTF-8">

<Title> the close layer is automatically displayed in the lower right corner of jquery </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;

Z-index: 9999;

}

 

# Keleyislide {

Position: absolute;

Top: 8px;

Right: 8px;

Font-size: 12px;

Text-decoration: none;

Color: Blue;

}

 

# Keleyislide h2 {

Font-size: 24px;

Text-align: center;

Font-family: "";

}

 

# Reshow {

Position: fixed;

Right: 2px;

Bottom: 2px;

Font-size: 12px;

Display: none;

Background-color: White;

Cursor: pointer;

Border: 1px solid #000;

}

</Style>

</Head>

 

<Body>

<Div style = "background-color: Green; width: 100%; height: 150px;"> keleyi.com </div>

<Div style = "background-color: Red; width: 100%; height: 150px;"> welcome </div>

<Div style = "background-color: Yellow; width: 100%; height: 150px;"> after a certain period of time, the pop-up layer is automatically hidden.

</Div>

<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;"> jb51.net </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 coming back soon </div>

<Div id = "keleyislide">

<A href = "javaScript: void (0)" id = "close" target = "_ self"> close </a>

<Span style = "line-height: 50px;"> A reproducible layer is displayed in the lower right corner. <br/> </span>

</Div>

<Script type = "text/javascript">

Function jiade_cnblogs_com () {$ ("# kel" + "eyislide"). slideDown ("slow"); $ ("# reshow"). hide ();}

Function KeleyiAutoHide () {$ ("# ke" + "leyislide"). slideUp ("slow"); $ ("# reshow"). show ();}

$ (Document). ready (function (){

SetTimeout (function (){

Jiade_cnblogs_com ();

}, 1000)

SetTimeout (function () {KeleyiAutoHide () ;}, 9000)

$ ("# Close"). click (function (){

KeleyiAutoHide ();

})

$ ("# Reshow"). mouseover (function (){

Jiade_cnblogs_com ();})

})

</Script>

</Body>

</Html>

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.