本帖最后由 深深、爱 于 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
|