Jquery pop-up masking Layer

Source: Internet
Author: User

I found a hidden layer written by someone else to improve the performance.

:

Code:

 <!  Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"  >  <  Html  Xmlns  = "Http://www.w3.org/1999/xhtml"  >  <  Head  >      < Title  > Tipsw.wn </  Title  >      <  Link  Href  = "CSS/tipswindown.css"  REL  = "Stylesheet"  Type  = "Text/CSS"   />      <  Script SRC  = "JS/jquery-1.8.js"  Type  = "Text/JavaScript"  > </  Script  >      <  Script  SRC  = "JS/tipsw.wn. js"  Type  = "Text/JavaScript"  > </  Script  >     <  Style  Type  = "Text/CSS"  >  # Main  {  Width  :  300px  ;  Margin  : 50px auto  ;  Font-family  :  Arial, calibri  ;  }  # Main. BTN  {  Width  : 150px  ;  Height  :  30px  ;  Line-height  :  30px  ;  Font-size  : 14px  ;  Vertical-align  :  Middle  ;  Color  :  #333333  ;  Font-weight  : Bold  ;  Text-Decoration  :  None  ;  Display  :  Block  ;  Text-align  : Center  ;  Background  :  # Ccc  ;  }  # Main. BTN: hover  {  Vertical-align  : Middle  ;  Color  :  # Fff  ;  Font-weight  :  Bold  ;  Text-Decoration  : None  ;  Display  :  Block  ;  Text-align  :  Center  ;  Background  : #333  ;  }      </  Style  >      <  Script  Type  = "Text/JavaScript"  >  $ (  Function  () {$ ( "  # Dialogshow  "  ). Click (  Function  () {Tips0000wn (  "  Cnblogs  "  ,  " ID: Dialog  "  ,  "  450  "  ,  "  200  "  ,  " True  "  ,  ""  ,  "  True  "  ,  "  ID  " );});})  Function  OK () {window. Location. href  =   "  Http://www.cnblogs.com/  "  ;}  Function  Cancel () {$ ( "  # Windownbg  "  ). Remove (); $ (  "  # Mongown-box  "  ). Fadeout (  "  1000  " ,  Function  () {$ (  This  ). Remove ();});}  </  Script  >  </  Head  >  <  Body  >  < Div  ID  = "Main"  >      <  A  Href  = "Javascript: void (0 );"  Class  = "BTN"  ID  = "Dialogshow"  > Dialogshow </  A  >  </ Div  >  <  Div  ID  = "Dialog"  Style  = "Display: none"  ;  >      <  Div  Class  = "Dialogtext"  >          <  P > Please click on the OK button to go the http://www.cnblogs.com/website and you shoshould just wait. </  P  >          <  P  > If you are accessing this page by mistake Please click on the cancel link. </  P  >
</ Div > < Div Class = "Dislogbtn" > < A Href = "Javascript: void (0 );" Class = "BTN" ID = "OK" Onclick = "OK ()" > OK </ A > < A Href = "Javascript: void (0 );" Class = "BTN" ID = "Cancel" Onclick = "Cancel ()" > Cancel </ A > </ Div > </ Div > </ Body > </ Html >

Source code

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.