切换至：
{$cdtat_start} currentSearchModule = 107;currentSearchSource = 3;beforeSubmit = new Array(); afterSubmit = new Array(); $("#search_logo_container").width($("#boxmain").width() - 10); $("#boxmain").css("background-image","url(/images/box_background_main_4_2baidu.gif)"); $("#search_form").attr("method", "GET");hideBoxLoading(); $("#baidu_div").html('
'); {$cdtat_end}
切换至：
{$cdtat_start} currentSearchModule = 107;currentSearchSource = 1;beforeSubmit = new Array(); afterSubmit = new Array(); $("#search_logo_container").width($("#boxmain").width() - 10); $("#boxmain").css("background-image","url(/images/box_background_main_4_2google.gif)"); $("#search_form").attr("action", "http://www.google.cn/search"); $("#search_form").attr("method", "GET");hideBoxLoading(); if(ie) { $("#google_div").html($("#google_hidden").html()); } else { document.getElementById("google_div").appendChild(document.getElementById("google_box_div")); } {$cdtat_end}
切换至：
{$cdtat_start} currentSearchModule = 107;currentSearchSource = 4;beforeSubmit = new Array(); afterSubmit = new Array(); $("#search_logo_container").width($("#boxmain").width() - 10); $("#boxmain").css("background-image","url(/images/box_background_main_4_2taobao.gif)"); $("#search_form").attr("method", "GET");hideBoxLoading(); if(ie) { $("#taobao_div").html($("#taobao_hidden").html()); } else { document.getElementById("taobao_div").appendChild(document.getElementById("taobao_box_div")); } {$cdtat_end}
切换至：
{$cdtat_start} currentSearchModule = 107;currentSearchSource = 2;beforeSubmit = new Array(); afterSubmit = new Array(); $("#search_logo_container").width($("#boxmain").width() - 10); $("#boxmain").css("background-image","url(/images/box_background_main_4_2zwsw.gif)"); $("#search_form").submit(function() { return true; }); $("#searchtext").keydown(function(e) { switch(e.keyCode) { case 38: case 40: e.preventDefault(); break; default: try { clearTimeout(userInputTimeout); } catch(e) { } userInputTimeout = setTimeout(function() { $.cookie("symbalooLastSearchText", $("#searchtext").val()); }, 300); } }); $("#searchtext").val($.cookie('symbalooLastSearchText')); try { $("#searchtext").focus(); } catch(e) {} $("#search_form").attr("action", "http://www.soso.com/search"); $("#search_form").attr("method", "GET");hideBoxLoading();$("#hl").val(LANGUAGE); {$cdtat_end} {$cdtat_start} function reset_google_taobao() { if(!ie) { document.getElementById("google_hidden").appendChild(document.getElementById("google_box_div")); document.getElementById("taobao_hidden").appendChild(document.getElementById("taobao_box_div")); } } $("#img_switch_search_google").click(function() { showBoxLoading(); reset_google_taobao(); loadSearchSource(1); return false; }); $("#img_switch_search_baidu").click(function() { showBoxLoading(); reset_google_taobao(); loadSearchSource(3); return false; }); $("#img_switch_search_zwsw").click(function() { showBoxLoading(); reset_google_taobao(); loadSearchSource(2); return false; }); $("#img_switch_search_taobao").click(function() { showBoxLoading(); reset_google_taobao(); loadSearchSource(4); return false; }); {$cdtat_end}