Edit D:\xinhaisoft\crisis_new\Scripts\jquery.jtitle.js
??/* * ??????(jTitle)??? * ?????(QQ33080907) * ????????2016.12.09 * ?????????????????????????????????? */ //????????? //;$(function(){$('[title]').jTitle({style:'yellow'});}); //??? (function ($) { 'use strict'; $.fn.jTitle = function (options) { //?????? var defaults = { style: 'yellow' }; var opts = $.extend(defaults, options); var style = {}; //??????????ttp://tutorialzine.com/2010/07/colortips-jquery-tooltip-plugin/?? if (opts.style === 'yellow') { style = { background: 'rgba(249,242,186,.9)', border: '1px solid #e9d315', color: '#5b5316' }; } else if (opts.style === 'blue') { style = { background: 'rgba(217,241,251,.9)', border: '1px solid #7fcdee', color: '#1b475a' }; } else if (opts.style === 'green') { style = { background: 'rgba(242,253,241,.9)', border: '1px solid #b6e184', color: '#558221' }; } else if (opts.style === 'red') { style = { background: 'rgba(187,59,29,.9)', border: '1px solid #8f2a0f', color: '#fcfcfc' }; } else if (opts.style === 'black') { style = { background: 'rgba(51,51,51,.9)', border: '1px solid #111', color: '#fcfcfc' }; } else if (opts.style === 'white') { style = { background: 'rgba(255,255,255,.9)', border: '1px solid #ddd', color: '#555' }; } //???????????????????????adding??order???????????? var jtitle = $('<div id="jtitle" style="display:none;position:absolute;z-index:99;"><div style="padding:2px 5px;background:' + style.background + ';color:' + style.color + ';border:' + style.border + ';font-size:14px;line-height:150%;text-align:left;border-radius:4px;box-shadow:2px 2px 5px rgba(0,0,0,0.5);"></div></div>'); //??????????????? if ($('jtitle').length < 1) { jtitle.appendTo($('body')).mouseover(function () { $(this).hide(); }); } //??????????????????hover??? return this.each(function () { var $this = $(this); var title = $this.attr('title').replace(/\r/g, '<br />'); if (title !== '') { $this .removeAttr('title') .data('title',title) .hover(function (e) { //??????????? jtitle.width('auto').css({ top: 0, left: 0 }).find('div').html(title); //?????????XHTML?????E6?????ax-width??????JS?????? var w = jtitle.width(); if (w > 300) { w = 300; } jtitle.width(w); setPosition(e); jtitle.fadeIn('normal'); }, function () { jtitle.hide(); }) .mousemove(function (e) { setPosition(e); }); } }); //???????????? function setPosition(e) { var ww = $(window).width(); if (ww === 0) { ww = $(document).width(); } var w = jtitle.width(); //???????????23??????????????????????????????????????????????? var top = e.pageY + 23; var left = e.pageX; var rightmargin = ww - left; //?????1?????????????????????????????? if (rightmargin < w) { left = ww - w - 1; } jtitle.css({ top: top, left: left }); } }; })(jQuery);
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de