JS Simple beautiful Prompt box

Source: Internet
Author: User

<span style= "FONT-SIZE:14PX;"  >function showtips (TXT, time, status) {var Htmlcon = '; if (txt! = ') {if (Status! = 0 && Status! = undefined) {Htmlcon = ' <div class= ' Tipsbox "style=" Width:220px;padding:10px;background-color: #4AAF33; border-radius:4px;- webkit-border-radius:4px;-moz-border-radius:4px;box-shadow:0 0 3px #ddd inset;-webkit-box-shadow:0 0 3px #ddd Inset;text-align:center;position:fixed;top:25%;left:50%;z-index : 999999;margin-left:-120px; " > ' + txt + </div> ‘;} else {Htmlcon = ' <div class= "Tipsbox" style= "Width:220px;padding:10px;background-color: #F75058; border-radius:4px ;-webkit-border-radius:4px;-moz-border-radius:4px;box-shadow:0 0 3px #ddd inset;-webkit-box-shadow:0 0 3px #ddd Inset;text-align:center;position:fixed;top:25%;left:50%;z-index : 999999;margin-left:-120px; " > ' + txt + ' </div> ';} $ (' body '). prepend (Htmlcon); if (time = = "| | time = = undefined) {time = 1500;} SetTimeout (function () {$ ('. Tipsbox '). Remove ();}, time);} <p>}</span></p><p>/*</p><p> the method can be copied directly using the parameter: The text string is the information that is being prompted for the text time integer for the duration of their own active disappearance The units are milliseconds, such as: 1000status integers 1 and 0 are 1 when the correct information hint, background green, the picture is marked as a symbol. is 0 o'clock. Red background, Red Cross note: Because of picture upload problem. We are able to find images 16*16</span> Welcome to add Java Communication Group:398918539</p><p>*/</p>

JS Simple and beautiful prompt box

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.