<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 message that is being prompted for the text time integer to automatically disappear Units in milliseconds, such as: 1000status integers 1 and 0 for the correct information hint, background green, the picture is marked as a symbol, 0 o'clock, background red, marked as? Red Fork Note: Because of the picture upload problem, we can find the picture 16*16</span> Welcome to the Java Communication Group:398918539</p><p>*/</p>
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
JS Simple and beautiful prompt box