function dropmenu(obj){ $(obj).each(function(){ var thespan = $(this); var themenu = thespan.find(".submenu"); var tarheight = themenu.height(); themenu.css({height:0,opacity:0}); thespan.hover( function(){ $(this).addclass("selected"); themenu.stop().show().animate({height:tarheight,opacity:1},400); }, function(){ $(this).removeclass("selected"); themenu.stop().animate({height:0,opacity:0},400,function(){ $(this).css({display:"none"}); }); } ); }); } //��ʾ������ function showsearch(){ $("#topsearch").show();$("#topsearch .close").click(function(){$("#topsearch").hide();})} //��ʾ������ function showlogin(){$("#loginchange").show();$("#loginchange .close").click(function(){$("#loginchange").hide();})} function showtext(obj){ $(obj).each(function(){ var thespan = $(this); var thediv = thespan.find("div"); var tarheight = thediv.height(); //thediv.css({height:0,opacity:0}); thespan.hover( function(){ $(this).addclass("selected"); thediv.stop().show(); }, function(){ $(this).removeclass("selected"); thediv.stop().hide(); } ); }); } function showvideo(obj){ $(obj).each(function(){ var thespan = $(this); var themenu = thespan.find("a"); var tarheight = themenu.height(); themenu.css({height:0,opacity:0}); thespan.hover( function(){ themenu.stop().show().animate({height:tarheight,opacity:0.5},300); }, function(){ themenu.stop().animate({height:0,opacity:0},300,function(){ $(this).css({display:"none"}); }); } ); }); } /*��ʼ����ҳсͼ���б�*/ /* function doinit(){ var bwidth=$(window).width(); var swidth=parseint($(window).width()*0.3); var pwidth=$("#piclist").width(); var pswidth=parseint((pwidth-swidth)/3); $(".hpic").width(pswidth); } */ /*��ʾ����ͼ��*/ function showmore(){ var tright=parseint(($(window).width()-1000)/2)+2; //alert($("#footer").position().top); var n=$(window).height()-26;//Ԫ�ظ߶� var obj=document.getelementbyid("adlayer"); if(obj==null){ return; } obj.style.right=tright+"px"; var x=$("body").height()-400; //585 if(!obj){return false;} var goto=(document.body.scrolltop||document.documentelement.scrolltop)+n; if(goto