Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[素材] 这段js代码怎么回事,求高手帮忙?

[复制链接]
深深、爱 发表于 2012-9-11 01:15:43 | 显示全部楼层 |阅读模式
本帖最后由 深深、爱 于 2012-9-11 01:17 编辑

//首页第三屏九宫格
        $(".maskspan").css("opacity",0.5);
                var fgtitle = $(".gsr_top li").first().find("img").attr("alt");
                var fgurl = $(".gsr_top li").first().find("img").attr("src");
                var fgp = $(".gsr_top li").first().find(".anum").attr("title");
                $(".gsr_bottom h4 a").attr("href",fgurl).text(fgtitle);
                $(".gsr_bottom p").text(fgp);
                $(".gsr_top").hover(function(){
                        //$(this).find(".maskspan").show().addClass("cursorp");
                },function(){
                        $(this).find(".maskspan").fadeOut().removeClass("cursorp");
                });
                $(".gsr_top li").hover(function(){
                        var showli = $(this);
                        showli.find(".maskspan").slideUp("fast");
                        showli.siblings().find(".maskspan").slideDown("fast");
                        var gtitle = showli.find("img").attr("alt");
                        var gurl = showli.find("a").attr("href");
                        var gp = showli.find(".anum").attr("title");
                        var gn = showli.find(".anum").text();
                        $(".gsr_bottom h4 a").attr("href",gurl).text(gtitle);
                        $(".gsr_bottom p").text(gp).siblings(".anum").text(gn);               
                });
                //第三屏右边
                $(".gsp_item .maskspan").hide();
                $(".gsp_item").hover(function(){
                        var thisitem = $(this);
                        thisitem.find("p").addClass("deepdark");
                },function(){
                        var thisitem = $(this);                        
                        thisitem.find("p").removeClass("deepdark");
                });

})(jQuery);

function loginQAEvent(e){
        if(jQuery(e.target).parents('#sec1 .loginform').size() <= 0){
                hideLoginQA();
        }
}
function showLoginQA(){
        jQuery('#login_menu').show();
        jQuery(document).bind('click', loginQAEvent);
}
function hideLoginQA(){
        jQuery('#login_menu').hide();
        jQuery(document).unbind('click', loginQAEvent);
}

//首页第三屏
jQuery('#slideshow3th').slideshow({
width: jQuery('#slideshow3th').width(),
height: jQuery('#slideshow3th').innerHeight(),
animate: 500,
trigger: 'mouseover',
showtitle : true,
titleheight : 50
});            提示:Uncaught TypeError: Cannot call method 'css' of null





xskwy 发表于 2012-9-11 20:40:00 | 显示全部楼层
持续努力学习
回复

使用道具 举报

xjjaixjj 发表于 2012-9-13 10:33:32 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

guizxs 发表于 2012-9-13 10:36:41 | 显示全部楼层
看不懂  黔生活网 www.gzqsh.cn  帮顶
回复

使用道具 举报

唯乐淘网 发表于 2012-10-27 12:54:08 | 显示全部楼层
哎  好像是UC整合出错吧 顶贴 贵阳论坛 http://www.0851life.com/
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-10-3 00:21 , Processed in 0.099021 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表