//菜单轮换 function setTab(name,cursel,n){ for(i=1;i<=n;i++){ var menu=document.getElementById(name+i); var con=document.getElementById("con_"+name+"_"+i); menu.className=i==cursel?"href":""; con.style.display=i==cursel?"block":"none"; } } //对联广告 function closelt(){ document.getElementById('boxlt').style.display='none'; } function closert(){ document.getElementById('boxrt').style.display='none'; } //tree function show(c_Str) { if(document.all(c_Str).style.display=='none') { document.all(c_Str).style.display='block'; }else{ document.all(c_Str).style.display='none'; } } function searchNews(){ var txtKeys = $("#txtKeys").val(); var searchType = $("#searchType").val(); //var txtKeys = document.getElementById("txtKeys").value; //var searchType = document.getElementById("searchType").value; if(txtKeys == ""){ alert("请输入关键字"); return false; } window.open("/searchResult.html?txtKeys="+txtKeys+"&searchType="+searchType,'searchWindow',''); } function gotoChuangxin(page){ x = confirm("您将离开“苏州市科学技术局”网站,是否继续?"); if(x){ switch(page){ case "bsfw": window.open("http://sz.jszwfw.gov.cn/jszwfw/bscx/itemlist/gr_index.do?webId=3&themid=&deptid=320500KJ#fw_jump",'newWindow',''); break; case "chaoshi": window.open("http://www.chuangxin360.com/welcome/page.html",'newWindow',''); break; } } } function getpoll(){ var value = $('input:radio[name=vote]:checked').val(); if(value > 0){ $.ajax({ type: "GET", url:"/vote.html?action=vote", data:{ value:value }, success:function (data, status){ alert("感谢您的投票!"); showPollInfo(); } }); } } function showPollInfo(){ $.ajax({ type: "GET", url:"/vote.html?action=show", success:function (data, status){ $("#objResultID").html(data); } }); } function closeWin(id){ $("."+id).hide(); }