⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utility.js

📁 通达网络办公 - Office Anywhere 2008 增强版100%源码(3.4.081216) 内含 通达OA2008增強版接近完美破解补丁20081216集 及 最新通达OA2008ADV(
💻 JS
字号:
this.showTip = function(content){
	jQuery(content).appendTo("body");
  var obj="#"+jQuery(content).attr("id");
	var myleft=(jQuery("body").width()-jQuery(obj).width())/2+jQuery("body").attr("scrollLeft");
  var mytop=(jQuery("body").height()-jQuery(obj).height())/3+jQuery("body").attr("scrollTop");
	jQuery(obj).css("left",myleft).css("top",mytop).fadeIn("slow");
	window.setTimeout(function(){jQuery(obj).fadeOut(1000);},1000);
	window.setTimeout(function(){jQuery(obj).remove();},2000);
};

this.tooltip = function(){			
		xOffset = 10;
		yOffset = 20;		
	jQuery("[title!='']").each(function(){
		jQuery(this).hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		jQuery("body").append("<div id='tooltip'>"+ this.t +"</div>");
		jQuery("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;		
		jQuery("#tooltip").remove();
    });	
	jQuery(this).mousemove(function(e){
		jQuery("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});
 });			
};

this.tooltipForm = function(){			
		xOffset = 10;
		yOffset = 20;
	jQuery("[name^='DATA_']").each(function(){
	  //初始化title信息
	  this.title = "名称:"+this.title+"&nbsp;&nbsp;序号:"+this.name.substr(5);		
		jQuery(this).hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		jQuery("body").append("<p id='tooltip'>"+ this.t +"</p>");
		jQuery("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;		
		jQuery("#tooltip").remove();
    });
  jQuery(this).mousemove(function(e){
		jQuery("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});		
  });		
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -