Pop-up layer tip, close after x seconds

Source: Internet
Author: User

  1. <!  DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" > <HTML> <HEAD> <TITLE> New Document </TITLE> <meta name= "Generator" content= "EditPlus" > <meta name= "Author" content= "" > <meta N Ame= "Keywords" content= "" > <meta name= "Description" content= "" > <script type= "text/javascript" src= "f:\j  Avasoft\ajax\jquery\jquery-1.4.1.min.js "></script> <script language=" JavaScript ">//contetn for content to display Height is the number of seconds after which the distance from the top of the window//time to be closed, in seconds function showtips (content, height, time) {//width of the window var windowwidth = $    (window). width ();       var tipsdiv = ' <div class= ' tipsclass ' > ' + content + ' </div> ';    $ (' body '). Append (Tipsdiv);        $ (' Div.tipsclass '). css ({' top ': Height + ' px ', ' Left ': (WINDOWWIDTH/2)-350/2 + ' px ', ' Position ': ' absolute ', ' padding ': ' 3px 5px ', ' background ': ' #8FBC8F ', ' font-size ': 12 + '     Px ',   ' Margin ': ' 0 auto ', ' text-align ': ' Center ', ' width ': ' 350px ', ' height ': ' Auto ',    ' Color ': ' #fff ', ' opacity ': ' 0.8 '}). Show ();  SetTimeout (function () {$ (' Div.tipsclass '). FadeOut ();}, (Time * 1000)); } </SCRIPT> </HEAD> <BODY> <input type= "button" value= "buttons" onclick= "Javascript:showtip S (' Indeed, the fledgling Kim Jong-un, though with his grandparents, his father's aura, is in charge. But it is undeniable that Kim Jong-il and his father, Kim Jong Il, have no apparent record of achievement and no deep network of contacts, which is also seen as the biggest weakness of Kim Jong-un's power-control. In this context, Kim Jong-un should be the elder, accumulate network relations, when the full-fledged, then take advantage of reform, firmly consolidate their dominance. ', 50,10); "/> <input type=" button "value=" buttons "onclick=" javascript:showtips (' There is also no deep network of people, which is considered to be the biggest weakness of Kim Jong-un's power control. In this context, Kim Jong-un should be the elder, accumulate network relations, when the full-fledged, then take advantage of reform, firmly consolidate their dominance.            ', 50,10);/> </BODY> </HTML>

      

Pop-up layer tip, close after x seconds

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.