$(function(){ $(".favorite a:eq(0)").click(function(){ var locationUrl="http://"+document.location.host+"/index.asp"; try { window.external.addFavorite(locationUrl, "山东天博体育克罗地亚官网下载天博体育平台登陆事务所"); } catch (e) { try { window.sidebar.addPanel("山东天博体育克罗地亚官网下载天博体育平台登陆事务所", locationUrl, ""); } catch (e) { alert("加入收藏失败,请使用Ctrl+D进行添加"); } } }); $("#nav_ul > li").mouseover(function(){ if($(this)[0].className=="nav_header") { return false; } else { $(this).addClass('mouseover'); $(this).removeClass('mouseout'); } }).mouseout(function(){ if($(this)[0].className=="nav_header") { return false; } else { $(this).addClass('mouseout'); $(this).removeClass('mouseover'); } }); $('#nav_ul li').hover(function(){ $(this).find('.menuInfo').show(); }, function() { $(this).find('.menuInfo').hide(); }); $('.boxgrid.slidedown').hover(function(){ $(".cover", this).stop().animate({top:'-260px'},{queue:false,duration:300}); }, function() { $(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300}); }); //Horizontal Sliding $('.boxgrid.slideright').hover(function(){ $(".cover", this).stop().animate({left:'325px'},{queue:false,duration:300}); }, function() { $(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300}); }); //Diagnal Sliding $('.boxgrid.thecombo').hover(function(){ $(".cover", this).stop().animate({top:'260px', left:'325px'},{queue:false,duration:300}); }, function() { $(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300}); }); //Partial Sliding (Only show some of background) $('.boxgrid.peek').hover(function(){ $(".cover", this).stop().animate({top:'90px'},{queue:false,duration:160}); }, function() { $(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160}); }); //Full Caption Sliding (Hidden to Visible) $('.boxgrid.captionfull').hover(function(){ $(".cover", this).stop().animate({top:'200px'},{queue:false,duration:160}); }, function() { $(".cover", this).stop().animate({top:'260px'},{queue:false,duration:160}); }); //Caption Sliding (Partially Hidden to Visible) $('.boxgrid.caption').hover(function(){ $(".cover", this).stop().animate({top:'200px'},{queue:false,duration:160}); }, function() { $(".cover", this).stop().animate({top:'222px'},{queue:false,duration:160}); }); $("#vote").click(function(){ var type=$(":radio[name=Type][checked]").val(); var class_id; if(type==0) { class_id=582; } else if(type==1) { class_id=583; } else if(type==2) { class_id=584; } else { class_id=585; } $.ajax({ type:"post", url:"content.asp", data:{"class_id":class_id,"ctype":"vote"}, success:function(json) { alert("投票成功,谢谢参与!"); return false; }, error:function() { alert("error"); } }); }); $("#look").click(function(){ window.open ("surver.asp","投票统计","height=300,width=600,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no, location=no,status=no"); }); });