| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- function HL(){
-
- var info=$('#NewsKind_K').val();
- if(info==3){
- var name=$('#HSK').val();
- window.open("http://help.smartcost.com.cn/hc/search/results/?type=kb&keyword="+name);
- }else{
-
- $('#NewsKind_KFORM').attr("action", '/searchNews').submit();
-
- }
-
- }
- function HL2(){
-
- var info=$('#NewsKind_K2').val();
- if(info==3){
- var name=$('#HSK2').val();
- window.open("http://help.smartcost.com.cn/hc/search/results/?type=kb&keyword="+name);
- }else{
- $('#NewsKind_KFORM2').submit();
-
- }
-
- }
- function changeProduct(ty){
- var info=$('#info');
- var down=$('#down');
- var edition=$('#edition');
- var animation=$('#animation');
-
- var a=$('#a');
- var b=$('#b');
- var c=$('#c');
- var d=$('#d');
- if(ty=="info"){
- info.show();
- down.hide();
- edition.hide();
- animation.hide();
-
- a.attr('class','now');
- b.attr('class','');
- c.attr('class','');
- d.attr('class','');
- }else if(ty=="down"){
- down.show();
- info.hide();
- edition.hide();
- animation.hide();
-
- b.attr('class','now');
- a.attr('class','');
- c.attr('class','');
- d.attr('class','');
- }else if(ty=="edition"){
- edition.show();
- info.hide();
- down.hide();
- animation.hide();
-
- c.attr('class','now');
- a.attr('class','');
- b.attr('class','');
- d.attr('class','');
- }else if(ty=="animation"){
- animation.show();
- info.hide();
- edition.hide();
- down.hide();
-
- d.attr('class','now');
- a.attr('class','');
- c.attr('class','');
- b.attr('class','');
- }
- }
- function getDownMessage(did,title,pid){
-
- var list=$('.selectList');
-
- if(did==""||did==0){
- //list.hide();
-
- easyDialog.open({
- container : {
- header : '未找到该软件的版本信息',
- content :'未找到该软件的版本信息!'
- },
- autoClose : 300
- });
-
- return false;
- }
-
- var url="/ajaxSoftDown";
- $.ajax({
- url:url,
- type: "post",
- cache: false,
- dataType: "json",
- data: {
- did:did,
- pid:pid
- },
- global: true,
- success: function(data){
-
- //list.hide();
-
- $('.cl').removeClass('now');
-
- $('#'+pid).addClass('now');
-
- $('#stitle').html(title);
-
- var arr=new Array();
-
- var sstr="";
-
- for(var i=0; i<data.dot.length; i++){
-
- if(data.dot[i].key_number!=""){
- sstr='<li><a href="javascript:getDownUrl(\''+data.dot[i].down_url+'\',\''+data.dot[i].title+'\')">'+data.dot[i].title+' 【'+data.dot[i].key_number+'】</a></li>';
- }else{
- sstr='<li><a href="javascript:getDownUrl(\''+data.dot[i].down_url+'\',\''+data.dot[i].title+'\')">'+data.dot[i].title+' </a></li>';
- }
-
- arr.push(sstr);
- }
-
- var html=arr.join("");
-
- $("#ctitle").html('请选择软件版本');
-
- $('.downLink').hide(200);
-
- $('#sle').show();
-
- $("#downUrl").html(html);
-
- $("#sle").show();
-
- $("#kt").html(data.info);
-
- },
- error:function(err){
- alert('请输入正确的参数');
- }
- });
- }
- function getDownUrl(url,title){
-
- var a = url.split("{b}");
-
- var sstr="下载地址:";
-
- var arr=new Array();
- arr.push(sstr);
-
- for(var i=0; i<a.length; i++){
-
- s=i+1;
- if(s==1){
- sstr='<a target="blank" href="'+a[i]+'">推荐下载</a>';
- arr.push(sstr);
- }else{
- sstr='<a target="blank" href="'+a[i]+'">普通下载</a>';
- arr.push(sstr);
- }
- }
-
- var html=arr.join("");
- $('#sdown').html(html);
-
- $('#ctitle').html(title);
-
- $('.downLink').hide();
-
- $('.downLink').show(200);
-
- //$('.secList').hide();
- }
- function getNewsPage(){
- var v=$("#newsP").find("option:selected").val();
-
- var a = v.split(":");
-
- window.location.href="/news/"+a[0]+"/"+"/"+a[1];
-
- }
|