(function($) { var tipsRoot; $('script[src*=tips]').each(function(){ var s=this.src; if(s.match(/tips[^\/]*\.js/i)){tipsRoot=s.replace(/[\?#].*$/, '').replace(/(^|[\/\\])[^\/]*$/, '$1');return false;} }); var tipcss=tipsRoot+"jquery.tip.css" $('head').append(''); /*begin*/ if(window.tips)return false; $.fn.tips=function(options) { var settings=options; var $body; var $select; var messageIdNumber=0; var messageId="message_tips";; if(settings.content==null){settings.content="";} if($body==null){$body=$("body");} if(!window.XMLHttpRequest&&$select==null){$select=$("select");} if($select!=null){$select.css("visibility","hidden");} if(settings.type==null){settings.type="warn";} if(settings.time==null){settings.time=3000;} $.fn.tips.close(); var messageHtml=""; messageHtml+='