WebRoot/inc/js/jquery.js

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*
	作者:叶华伟,邮箱:yhw2710@126.com,QQ:517025143
*/
$(function(){
			$(".news_content p:odd").addClass("p03");  //隔行换色处,额数行增加样式P03
			
			//鼠标经过样式变化处
			$(".news_content p").hover( 
                function () { 
                    $(this).addClass("p02");   //鼠标经过时增加样式P02
                }, 
                function () { 
                    $(this).removeClass("p02"); //鼠标离开时移除样式P02
                }
            )
			
			//超链接无虚线框处
			$("a").focus( 
                function () { 
                    $(this).blur(); //得到焦点与失去焦点效果一致
                }
             )
        })

//标题提示效果处
var sweetTitles = {
	x : 10,	
	y : 20,	
	tipElements : "a",
	init : function() {
		$(this.tipElements).mouseover(function(e){
			this.myTitle = this.title;
			this.myHref = this.href;
			this.myHref = (this.myHref.length > 200 ? this.myHref.toString().substring(0,200)+"..." : this.myHref);
			this.title = "";
			var tooltip = "";
			if(this.myTitle == "")
			{
			    tooltip = "";
			}
			else
			{
			    tooltip = "<div id='tooltip'><p>"+this.myTitle+"</p></div>";
			}
			$('body').append(tooltip);
			$('#tooltip')
				.css({
					"opacity":"0.8",
					"top":(e.pageY+20)+"px",
					"left":(e.pageX+10)+"px"
				}).show('fast');	
		}).mouseout(function(){
			this.title = this.myTitle;
			$('#tooltip').remove();
		}).mousemove(function(e){
			$('#tooltip')
			.css({
				"top":(e.pageY+20)+"px",
				"left":(e.pageX+10)+"px"
			});
后面还有 6 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。