<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