标签:des style blog http color java 使用 os
1、天气预报插件
效果图:
源代码:
<iframe width="650" scrolling="no" height="60" frameborder="0" allowtransparency="true" src="http://i.tianqi.com/index.php?c=code&id=12&icon=1&num=7"></iframe>
2、搜狗搜索模块插件
效果图:
源代码:
<script type=‘text/javascript‘>
var sogou_param = new Array();
sogou_param["pid"] = ‘sogou-site-20c86a628232a67e‘;
sogou_param["fmt"] = ‘11‘;
sogou_param["wt"] = ‘n01|n02|n03‘;
sogou_param["iw"] = ‘960‘;
sogou_param["ih"] = ‘60‘;
sogou_param["sw"] = ‘300‘;
sogou_param["af"] = ‘60000‘;
sogou_param["lg"] = ‘2‘;
sogou_param["fs"] = ‘14‘;
sogou_param["ff"] = ‘simsun%2C%20serif‘;
sogou_param["lb"] = ‘1‘;
sogou_param["mi"] = ‘0‘;
sogou_param["c_bo"] = ‘‘;
sogou_param["c_bg"] = ‘‘;
sogou_param["c_te"] = ‘808080‘;
sogou_param["c_bg2"] = ‘‘;
sogou_param["c_bo2"] = ‘‘;
sogou_param["c_se"] = ‘808080‘;
sogou_param["fid"] = ‘sogou_iframe‘;
sogou_param["lgn"] = ‘0‘;
sogou_param["sh"] = ‘20‘;
sogou_param["sfs"] = ‘13‘;
sogou_param["ksp"] = ‘1‘;
sogou_param["lh"] = ‘20‘;
document.write(‘<iframe id="‘ + sogou_param["fid"] + ‘" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" allowtransparency="true" width="‘ + sogou_param["iw"] + ‘" height="‘ + sogou_param["ih"] + ‘"></iframe>‘);
</script>
<script language=‘javascript‘ type=‘text/javascript‘ src=‘http://pbd.sogou.com/js/bd2.js‘ charset=‘gbk‘></script>
使用方法:直接添加到要显示的div中即可
3、淘宝话费充值
效果图:
源代码:
<iframe name="alimamaifrm" frameborder="0" marginheight="0" marginwidth="0" border="0" scrolling="no" width="295" height="170"
百度搜索:
效果图:
源代码:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="keywords" content="站长,网页特效,网页特效代码,js特效,js脚本,脚本,广告代码,zzjs,zzjs.net,www.zzjs.net,站长特效 网" />
<meta name="description" content="www.zzjs.net,站长特效网,站长必备js特效及广告代码。以质量为核心,以实用为目的,打造一流网页特效站" />
<title>站长特效 hao123百度搜索框代码 站长特效网首发</title>
<style type="text/css">
body,p,b,dl,dd,table,td,th,input,img,form,div,ul,li{margin:0;padding:0;}:focus{outline:0;}img,iframe{border:none;}ol,ul,li{list-style:none;}img,input,label{vertical-align:middle;}table{border-collapse:collapse;border-spacing:0;}body{font:normal 12px/1.5 Arial,Tahoma,Helvetica,sans-serif;}a:link,a:visited{text-decoration:none;color:#000;}a:hover{text-decoration:underline;color:#f00;}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.clearfix{zoom:1;}.center{width:990px;margin:0 auto;}.ns{height:25px;position:relative;bottom:-4px;z-index:100;}.ns ul{padding-left:88px;}.ns li{height:25px;}li.tab_item,li.tab_cur{float:left;width:54px;line-height:22px;margin-right:3px;text-align:center;font-size:13px;background:transparent url(http://www.zzjs.net/img/hao123bg_20110125zzjs_net.gif) -6px -27px no-repeat;cursor:pointer;}li.tab_cur{font-weight:600;color:#fff;background-position:-6px 0;}li.tab_more{float:left;}li.tab_more div{position:relative;}.sch{width:100%;height:45px;text-align:left;}.sch tr{background:url(http://www.zzjs.net/img/hao123bg_20110125zzjs_net.gif) 0 -55px repeat-x;}.sch .first_td,.sch .last_td{width:3px;background:url(http://www.zzjs.net/img/hao123bg_20110125zzjs_net.gif) 0 0 no-repeat;}.sch .first_td{background-position:-80px 0;}.sch input{height:21px;width:353px;line-height:21px;padding:3px 2px;font-size:16px;border:1px solid #a2a2a2;background:#fff url(http://www.zzjs.net/img/hao123bg_20110125zzjs_net.gif) 0 -100px repeat-x;}.sch button{height:31px;width:93px;padding:0;}#hao_more_event{display:block;width:37px;height:18px;line-height:18px;padding:0 20px 0 3px;border:1px solid #fff;cursor:pointer;background:#fff url(http://www.zzjs.net/img/hao123bg_20110125zzjs_net.jpg) 45px -185px no-repeat;}#hao_more_popup{position:absolute;padding:0;z-index:100;width:62px;text-align:left;border-right:2px solid #eee;border-bottom:2px solid #eee;background-color:#fff;}#hao_more_popup a{display:block;padding-left:3px;zoom:1;}#hao_more_popup a:hover{color:#fff;background:#ccc;text-decoration:none;}#hao_more_popup li{border-left:1px solid #B0BEC7;border-right:1px solid #B0BEC7;line-height:25px;}#hao_more_popup li.tab_last{border-bottom:1px solid #B0BEC7;}#ads506 a:link,#ads506 a:visited{color:#687070;}#hao_my_like a,#hao_my_site a{color:#444;margin-left:10px;}#sugOut{position:relative;z-index:100;}#sug{position:absolute;float:left;left:0;top:0;border:1px solid #817F82;display:none;-moz-user-select:none;}#sug tr{background:#fff;}#sug td{line-height:22px;height:22px;padding-left:3px;font:14px verdana;}.mo td{background-color:#36c;color:#fff;}.ml td{background-color:#fff;color:#000;}</style>
</head>
<body>
<a href="http://www.zzjs.net/">站长特效网</a>,以质量为核心,以实用为目的,打造一流网页特效站!zzjs.net,站长js特效。<hr>
<!--欢迎来到站长特效网,我们网站收集大量高质量js特效,提供许多广告代码下载,网址:www.zzjs.net,zzjs@msn.com,用.net打造靓站-->
<div class="tip" id="topTipText"></div>
<div class="nav center">
<div class="ns" monkey="cool">
<ul class="clearfix">
<li class="tab_cur" id="wegTab" onClick="DynamicForm.tab(this,‘web‘);">网 页</li>
<li class="tab_item" onClick="DynamicForm.tab(this,‘mp3‘);">MP3</li>
<li class="tab_item" onClick="DynamicForm.tab(this,‘video‘);">视 频</li>
<li class="tab_item" onClick="DynamicForm.tab(this,‘image‘);">图 片</li>
<li class="tab_item" onClick="DynamicForm.tab(this,‘tieba‘);">贴 吧</li>
<li class="tab_item" onClick="DynamicForm.tab(this,‘zhidao‘);">知 道</li>
<li class="tab_item" onClick="DynamicForm.tab(this,‘news‘);">新 闻</li>
<li class="tab_item" onClick="DynamicForm.tab(this,‘map‘);">地 图</li>
<li class="tab_more">
<div>
<span id="hao_more_event" onMouseOver="morePopup(event,‘over‘);return false;" onMouseDown="morePopup(event,‘down‘);return false;" onmouseout="morePopup(event,‘out‘);return false;">更 多</span>
<ul id="hao_more_popup" ><li><a href="http://wenku.baidu.com" target="_blank">文 库</a></li><li><a href="http://baike.baidu.com" target="_blank">百 科</a></li><li><a href="http://jingyan.baidu.com" target="_blank">经 验</a></li><li><a href="http://hi.baidu.com" target="_blank">空 间</a></li><li><a href="http://top.baidu.com" target="_blank">风云榜</a></li><li><a href="http://dict.baidu.com" target="_blank">词 典</a></li><li class="tab_last"><a href="http://s.baidu.com" target="_blank">身 边</a></li></ul>
</div>
</li>
<li ><a href="http://www.zzjs.net">以质量为核心 以实用为目的</a></li>
</ul>
</div>
<div class="box_outer">
<div class="box_t"><span class="box_p"></span></div>
<div class="box_body">
<table class="sch">
<tbody>
<tr id=‘test‘>
<td class="first_td"></td>
<td width="52px"></td>
<form name=f action="http://www.baidu.com/s" target="_blank"><td><a id="hao_img_logo" href="http://www.baidu.com" onclick=‘UserTrack.send({level:"1",page:"index",type:"click",position:"search_tab_logo",url:this.href,tit:this.firstChild.alt})‘><img src="http://www.zzjs.net/img/logox3_20110125zzjs_net.gif" alt="百度首页"></a></td><td width="373px"><noscript><input type="hidden" name="tn" value="sitehao123"></noscript><div id="sugOut"><input value="" name="wd" maxlength=100 id="kww" autocomplete="off"><br><div id="sug" ></div></div></td>
<td><button type="submit">百度一下</button></td></form>
<td align=right id="hao_search_content" width="360px"></td>
<td class="last_td"></td>
</tr>
</tbody>
</table>
</div>
<div class="box_b"><span class="box_p"></span></div>
</div>
</div>
<div id="haoMySite" class="clearfix" ></div>
<script type="text/javascript">
/*base.js*/function G($){return document.getElementById($)}function C($){return document.createElement($)}function GN($){return document.getElementsByName($)}function Ci(_,A){var $=C("input");$.name=_;$.value=A;$.type="hidden";return $}function setStyle(A,$){var _=document.styleSheets[0];if(_.addRule){A=A.split(",");for(var C=0,B=A.length;C<B;C++)_.addRule(A[C],$)}else if(_.insertRule)_.insertRule(A+" { "+$+" }",_.cssRules.length)}var on=function($,B,D){var _=[],B=B.replace(/^on/,"").toLowerCase();_.push($);for(var C=3,A=arguments.length;C<A;C++)_.push(arguments[C]);if($.attachEvent){$[B+D]=function(){D.apply(window.event,_)};$.attachEvent("on"+B,$[B+D])}else{$[B+D]=function($){D.apply($,_)};$.addEventListener(B,$[B+D],false)}};function trim($){$=$.replace(/(^\u3000+)|(\u3000+$)/g,"");$=$.replace(/(^ +)|( +$)/g,"");return $}function byteSlice(A,B){var $=0,_="";for(var C=0;C<A.length;C++){if(A.charCodeAt(C)>128)$+=2;else $++;_+=A.charAt(C);if($>=B)return _}return _}var format=function(_,B){if(arguments.length>1){var F=format,H=/([.*+?^=!:${}()|[\]\/\\])/g,C=(F.left_delimiter||"{").replace(H,"\\$1"),A=(F.right_delimiter||"}").replace(H,"\\$1"),E=F._r1||(F._r1=new RegExp("#"+C+"([^"+C+A+"]+)"+A,"g")),G=F._r2||(F._r2=new RegExp("#"+C+"(\\d+)"+A,"g"));if(typeof(B)=="object")return _.replace(E,function(_,A){var $=B[A];if(typeof $=="function")$=$(A);return typeof($)=="undefined"?"":$});else if(typeof(B)!="undefined"){var D=Array.prototype.slice.call(arguments,1),$=D.length;return _.replace(G,function(A,_){_=parseInt(_,10);return(_>=$)?A:D[_]})}}return _},isType={types:["Array","RegExp","Date","Number","String","Object"]};for(var i=0,c;c=isType.types[i++];)isType[c]=(function($){return function(_){return Object.prototype.toString.call(_)=="[object "+$+"]"}})(c);var cache=(function(){var $={};function B(_){if($[_])return $[_];return null}function A(_){delete $[_]}function _($){return(B($)==null)?false:true}return{get:B,set:C,is:_,remove:A}})(),Browser=(function(){var H=navigator.userAgent,F=0,E=0,I=0,D=0,A=0,_=0,C=0,B;if(H.indexOf("Chrome")>-1&&/Chrome\/(\d+(\.d+)?)/.test(H))C=RegExp.$1;if(H.indexOf("Safari")>-1&&/Version\/(\d+(\.\d+)?)/.test(H))F=RegExp.$1;if(window.opera&&/Opera(\s|\/)(\d+(\.\d+)?)/.test(H))I=RegExp.$2;if(H.indexOf("Gecko")>-1&&H.indexOf("KHTML")==-1&&/rv\:(\d+(\.\d+)?)/.test(H))A=RegExp.$1;if(/MSIE (\d+(\.\d+)?)/.test(H))D=RegExp.$1;if(/Firefox(\s|\/)(\d+(\.\d+)?)/.test(H))_=RegExp.$2;if(H.indexOf("KHTML")>-1&&/AppleWebKit\/([^\s]*)/.test(H))E=RegExp.$1;try{B=!!external.max_version}catch($){}function G(){var _=false;if(navigator.plugins)for(var B=0;B<navigator.plugins.length;B++)if(navigator.plugins[B].name.toLowerCase().indexOf("shockwave flash")>=0)_=true;if(!_){try{var $=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if($)_=true}catch(A){_=false}}return _}return({isStrict:document.compatMode=="CSS1Compat",isChrome:C,isSafari:F,isWebkit:E,isOpera:I,isGecko:A,isIE:D,isFF:_,isMaxthon:B,isFlash:G(),isCookie:(navigator.cookieEnabled)?true:false})})();function getHost(A){var _=A||location.host,$=_.indexOf(":");return($==-1)?_:_.substring(0,$)}window.baidu=window.baidu||{version:"1-0-0"};baidu.sio=baidu.sio||{};baidu.url=baidu.url||{};baidu.string=baidu.string||{};baidu.sio.get=function(E,D){if(!E||!baidu.isString(E))return null;var D=D||function(){},B=baidu.url.parseQuery(E,"callback"),_=document.createElement("SCRIPT");if(!B){var $=false;_.onreadystatechange=_.onload=function(){if($)return false;if(typeof _.readyState==="undefined"||_.readyState=="loaded"||_.readyState=="complete"){$=true;try{D()}finally{if(_&&_.parentNode)_.parentNode.removeChild(_);_.onreadystatechange=null;_.onload=null;_=null}}}}else{var A="CB"+Math.floor(Math.random()*2147483648).toString(36);E=E.replace(/(&|\?)callback=([^&]*)/,"$1callback="+A);window[A]=function(){try{var $=(D||window[B]);$.apply(null,arguments)}finally{if(_&&_.parentNode)_.parentNode.removeChild(_);_=null;window[A]=null}}}_.src=E;_.type="text/javascript";var C=document.getElementsByTagName("HEAD")[0];C.insertBefore(_,C.firstChild)};function json2Query(_){var $=[];if(!_)return"";for(var A in _)$.push(A+"="+encodeURIComponent(_[A]));return $.join("&")}baidu.json=baidu.json||{};-function(){var $=new(function(){var D={}.hasOwnProperty?true:false,_=function($){return $<10?"0"+$:$},C={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",‘"‘:‘\\"‘,"\\":"\\\\"},B=function($){if(/["\\\x00-\x1f]/.test($))return‘"‘+$.replace(/([\x00-\x1f\\"])/g,function(A,$){var _=C[$];if(_)return _;_=$.charCodeAt();return"\\u00"+Math.floor(_/16).toString(16)+(_%16).toString(16)})+‘"‘;return‘"‘+$+‘"‘},E=function(C){var B=["["],A,E,D=C.length,_;for(E=0;E<D;E+=1){_=C[E];switch(typeof _){case"undefined":case"function":case"unknown":break;default:if(A)B.push(",");B.push(_===null?"null":$.encode(_));A=true}}B.push("]");return B.join("")},A=function($){return‘"‘+$.getFullYear()+"-"+_($.getMonth()+1)+"-"+_($.getDate())+"T"+_($.getHours())+":"+_($.getMinutes())+":"+_($.getSeconds())+‘"‘};this.encode=function(F){if(typeof F=="undefined")return"undefined";else if(F===null)return"null";else if(F instanceof Array)return E(F);else if(F instanceof Date)return A(F);else if(typeof F=="string")return B(F);else if(typeof F=="number")return isFinite(F)?String(F):"null";else if(typeof F=="boolean")return String(F);else{var C=["{"],_,G,$;for(G in F)if(!D||F.hasOwnProperty(G)){$=F[G];switch(typeof $){case"undefined":case"function":case"unknown":break;default:if(_)C.push(",");C.push(this.encode(G),":",$===null?"null":this.encode($));_=true}}C.push("}");return C.join("")}}})();baidu.json.encode=$.encode}();/*config.js*/var Config={FormConfig:{web:{action:"http://www.baidu.com/s",imgLogo:"http://www.zzjs.net/img/logox3_20110125zzjs_net.gif",imgAlt:"\u767e\u5ea6\u9996\u9875",url:"http://www.baidu.com/index.php?tn=sitehao123",content:"",params:{word:"",tn:"sitehao123"}},mp3:{action:"http://mp3.baidu.com/m",imgLogo:"http://www.zzjs.net/img/logo_mp3_20110125zzjs_net.gif",imgAlt:"\u767e\u5ea6MP3",url:"http://mp3.baidu.com/",content:"",params:{word:"",tn:"baidump3",ct:"134217728",sc:"hao123"}},image:{action:"http://image.baidu.com/i",imgLogo:"http://www.zzjs.net/img/logo_pic_20110125zzjs_net.gif",imgAlt:"\u767e\u5ea6\u56fe\u7247",url:"http://image.baidu.com/",content:"",params:{word:"",tn:"baiduimage",ct:"201326592",cl:"2",lm:"-1",fm:"hao123"}},video:{action:"http://video.baidu.com/v",imgLogo:"http://www.zzjs.net/img/logo_video_20110125zzjs_net.gif",imgAlt:"\u767e\u5ea6\u89c6\u9891\u641c\u7d22",url:"http://video.baidu.com/",content:"",params:{word:"",sc:"hao123"}},zhidao:{action:"http://zhidao.baidu.com/q",imgLogo:"http://www.zzjs.net/img/logo_zhidao_20110125zzjs_net.gif",imgAlt:"\u767e\u5ea6\u77e5\u9053",url:"http://zhidao.baidu.com/",content:"",params:{word:"",tn:"ikaslist",ct:"17",sc:"hao123",rn:"20"}},tieba:{action:"http://tieba.baidu.com/f",imgLogo:"http://www.zzjs.net/img/logo_post_20110125zzjs_net.gif",imgAlt:"\u767e\u5ea6\u8d34\u5427",url:"http://tieba.baidu.com/",content:"",params:{kw:"",sc:"hao123"}},news:{action:"http://news.baidu.com/ns",imgLogo:"http://www.zzjs.net/img/logo_news_20110125zzjs_net.gif",imgAlt:"\u767e\u5ea6\u65b0\u95fb\u641c\u7d22",url:"http://news.baidu.com/",content:"",params:{word:"",tn:"news",sc:"hao123"}},map:{action:"http://map.baidu.com/m",imgLogo:"http://www.zzjs.net/img/logo_map_20110125zzjs_net.gif",imgAlt:"\u767e\u5ea6\u5730\u56fe\u641c\u7d22",url:"http://map.baidu.com/",content:"",params:{word:""}}},UserTrackConfig:{host:"http://www.zzjs.net/img/track_20110125zzjs_net.gif"}};/*main.js*/var ieUserData={init:function(){this.defaultExps=365;this.input=C("input");this.input.type="hidden";this.input.id="ieuserdata";this.input.addBehavior("#default#userData");document.body.appendChild(this.input);return this},set:function($,A,_){this.input.load($);var B=new Date();_=_||this.defaultExps;B.setDate(B.getDate()+_);this.input.load($);this.input.expires=B.toUTCString();this.input.setAttribute("code",A);this.input.save($)},change:function(_){var $=Config.MailConfig[_.selectedIndex];if($.type=="link"){UserTrack.send({level:"1",page:"index",type:"mail",index:_.selectedIndex});window.open($.action);_.selectedIndex=16}}},DynamicForm=(function(){var $="web";function D($){for(var A=0,_=$.length;A<_;A++)document.f.removeChild($[A]);return[]}var J={},B=[],A=null,I=[],E=null;function F(_,A){var D=C("input"),B=C("input"),$=C("input");D.type=B.type=$.type="hidden";D.name="oq",B.name="rsp",$.name="f";D.value=A;B.value=_-1;if(document.f.action=="http://zhidao.baidu.com/q")$.value="sug";else $.value="3";I.push(D);I.push(B);I.push($);document.f.appendChild(D);document.f.appendChild(B);document.f.appendChild($)}function _(){if(DynamicForm.sugCurIndex!=null)F(DynamicForm.sugCurIndex,DynamicForm.oq);if(DynamicForm.sugCurIndex==null&&I.length!=0)I=D(I);var C=cache.get("CURRENT_TAB_SCOURCE"),_=G("kww").value;if(B[0])B[0].value=_;document.f.submit();try{bdRecord.searchPolicy(_,$);bdRecord.printSearchRecord("hao_search_content",$)}catch(A){if(byId("content").offsetWidth==990)UserTrack.send({level:1,page:"index",type:"form"});else UserTrack.send({level:1,page:"indexk",type:"form"})}DynamicForm.sugCurIndex=null;I=D(I)}function H(I,K,_){var K=K,H=cache.set("CURRENT_TAB_SCOURCE",K),F=Config.FormConfig;$=K;G("kww").value="";G("kww").focus();function E(){var $=G("hao_img_logo");$.href=F[K].url;$.childNodes[0].src=F[K].imgLogo;$.childNodes[0].alt=F[K].imgAlt}function L(){if(J.key)J.key.className="tab_item";else G("wegTab").className="tab_item";I.className="tab_cur";J.key=I}function C(){var $=document.f;$.action=F[K].action;if(B.length!=0)B=D(B);for(var A in F[K].params){var _=Ci(A,F[K].params[A]);B.push(_);$.appendChild(_)}}function A(){var $=G("hao_search_content");$.innerHTML=F[K].content}if(!_)L();C();E();A()}return{tab:H,submit:_,sugCurIndex:A,oq:E}})();function bottomForm(){var $=document.bf.key.value;if(document.bf.sto[0].checked)if(byId("content").offsetWidth==990)window.open("http://www.baidu.com/s?tn=hao123&word="+$,"mspg6");else window.open("http://www.baidu.com/s?tn=sitehao123_1_pg&word="+$,"mspg6");if(document.bf.sto[1].checked)window.open("http://www.google.cn/search?hl=zh-CN&q="+$,"mspg4");if(document.bf.sto[2].checked)window.open("http://www.gougou.com/search?id=1&search="+$,"mspg1");if(document.bf.sto[3].checked)window.open("http://map.baidu.com/m?word="+$,"mspg14");if(document.bf.sto[4].checked)window.open("http://bk.baidu.com/?kw="+$+"&submit=search","mspg13");if(document.bf.sto[5].checked)window.open("http://search.hao123.com/search.php?query="+$,"mspg12");return false}function morePopup(_,A){var _=_||window.event,B=_.target||_.srcElement,C=G("hao_more_event"),$=G("hao_more_popup");switch(A){case"down":if($.style.display==""){C.border="1px solid #fff";$.style.display="none"}else{C.style.border="1px dotted #B0BEC7";$.style.display=""}if(_.stopPropagation)_.stopPropagation();else _.cancelBubble=true;break;case"over":C.style.border="1px solid #B0BEC7";break;case"out":C.style.border="1px solid #fff";break;case"click":setTimeout(function(){if($.style.display==""){C.border="1px solid #fff";$.style.display="none"}},200);break}}on(document.body,"mousedown",morePopup,"click");var indexWeather={init:function($,_){loadXSAjax({t:1,onerror:function(){indexWeather.error()}})},error:function(){var $=‘<a href="javascript:void(0)" onclick="indexWeather.init(); return false" >\u7531\u4e8e\u7f51\u7edc\u539f\u56e0\uff0c\u5929\u6c14\u52a0\u8f7d\u5931\u8d25...<b>\u70b9\u6b64\u91cd\u8bd5</b></a>‘;G("Forecast").innerHTML=$}};function byId($){return document.getElementById($)}function byTag($){return document.getElementsByTagName($)};Config.FormConfig.tieba.content = ‘<a href="http://www.zzjs.net">韩版秘密花园</a> <a href="http://www.zzjs.net">空间素材</a> <a href="http://www.zzjs.net">韩剧</a> <a href="http://www.zzjs.net">更多 »</a> ‘;Config.FormConfig.zhidao.content = ‘<a href="http://www.zzjs.net">极光是什么颜色的?</a> <a href="http://www.zzjs.net">更多 »</a> ‘;Config.FormConfig.mp3.content = ‘<a href="http://www.zzjs.net">恭喜发财</a> <a href="http://www.zzjs.net">没那么简单</a> <a href="http://www.zzjs.net"><font class="blackfont">更多 »</font></a> ‘;Config.FormConfig.image.content = ‘<a href="http://www.zzjs.net">春节素材</a> <a href="http://www.zzjs.net">马尔代夫</a> <a href="http://www.zzjs.net">陈翔</a> <a href="http://www.zzjs.net">更多 »</a> ‘;Config.FormConfig.video.content = ‘<a href="http://www.zzjs.net">我是特种兵</a> <a href="http://www.zzjs.net">一不小心爱上你</a> <a href="http://www.zzjs.net">更多 »</a> ‘;Config.FormConfig.news.content = ‘<a href="http://www.zzjs.net">火车票预售期调整</a> <a href="http://www.zzjs.net">更多 »</a> ‘;/*sug.js*/(function(){var A=1,S=G("sug"),B=G("kww"),N,Z=null,V=-1,E=false,Q=false,$=false,F=true,R=null,H=null,Y=0;function I(){B.setAttribute("autocomplete","on")}function c(){if(Browser.isIE)G("sugif").style.display="none";S.style.display="none";Y=0;F=true}function b(){var $=H.rows;for(var _=0;_<$.length;_++)$[_].className="ml"}var O={},f=true;function e(_){return function(){if(Browser.isGecko)B.blur();clearTimeout(Y);O.startTime=new Date();var A=this,_=0;while(A&&A.tagName=="TR"){A=A.previousSibling;_++}DynamicForm.sugCurIndex=_;DynamicForm.oq=N.q;B.value=N.s[_-1];L=B.value;B.focus();$=true}}function P($){var $=window.event||$,_=$.target||$.srcElement;if((new Date()-O.startTime)/1000>0.5&&L!=_.innerHTML)return;else{DynamicForm.submit();B.value=L;c()}}function K(){if(typeof(N)!="object"||typeof(N.s)=="undefined")return;F=false;var tab=C("table");with(tab){id="sug_t";style.width="100%";style.backgroundColor="#fff";cellSpacing=0;cellPadding=2;style.cursor="default"}var _=C("tbody");tab.appendChild(_);for(var I=0;I<N.s.length;I++){var A=_.insertRow(-1);A.onmouseover=function(){b();this.className="mo";Q=true};A.onmouseout=b;A.onmousedown=e(I);A.onmouseup=P;var D=A.insertCell(-1),$="";D.innerHTML=N.s[I];if(Browser.isOpera){D.style.lineHeight="20px";D.style.width=B.clientWidth+"px"}}S.innerHTML="";S.appendChild(tab);S.style.width=(((!Browser.isStrict)&&Browser.isIE)?B.offsetWidth:B.offsetWidth-2)+"px";S.style.top=(Browser.isIE)?(Browser.isGecko?B.offsetHeight-1:B.offsetHeight)+"px":(Browser.isGecko?B.offsetHeight-1:B.offsetHeight)+"px";S.style.display="block";if(Browser.isIE){var E=G("sugif");with(E.style){display="";position="absolute";width=S.offsetWidth+"px";height=tab.offsetHeight+"px"}}if(G("sug_t"))H=G("sug_t");V=-1;L=""}function J(A){A=A||window.event;E=false;var D=null;if(A.keyCode==9){c();return}if(A.keyCode==13){c();return}if(A.keyCode==38||A.keyCode==40){Q=false;if(S.style.display!="none"){var $=H.rows,C=$.length;for(var G=0;G<C;G++)if($[G].className=="mo"){V=G;break}b();if(A.keyCode==38)if(V==0){B.value=N.q;V=-1;E=true;DynamicForm.sugCurIndex=null;DynamicForm.oq=""}else{if(V==-1)V=C;D=$[--V];D.className="mo";var F=D,_=0;while(F&&F.tagName.toUpperCase()=="TR"){F=F.previousSibling;_++}DynamicForm.sugCurIndex=_;DynamicForm.oq=N.q;B.value=N.s[_-1];L=B.value}if(A.keyCode==40)if(V==C-1){DynamicForm.sugCurIndex=null;DynamicForm.oq=null;B.value=N.q;V=-1;E=true}else{D=$[++V];D.className="mo";F=D,_=0;while(F&&F.tagName.toUpperCase()=="TR"){F=F.previousSibling;_++}DynamicForm.sugCurIndex=_;DynamicForm.oq=N.q;B.value=N.s[_-1];L=B.value}if(!Browser.isIE)A.preventDefault()}}}window.baidu.sug=function($){if(typeof($)=="object"&&typeof($.s)!="undefined"&&typeof($.s[0])!="undefined"){N=$;K()}else{c();N={}}};var T="",L=B.value,W=0;function _(){if(A==0)return;B.onbeforedeactivate=function(){if(F)return;window.event.cancelBubble=true;window.event.returnValue=false;$=false;return false};var J=true,K=B.value;if(typeof(H)!="undefined"&&H!=null){var _=H.rows;for(var L=0;L<_.length;L++)if(_[L].className=="mo")if(K==_[L].cells[0].innerHTML&&!Q)J=false}if(J&&!E){var D=encodeURIComponent(B.value),I=(new Date()).getTime(),G="";(function(){var $=cache.get("CURRENT_TAB_SCOURCE");if($==null)$="web";switch($){case"mp3":G="http://nssug.baidu.com/su?wd="+D+"&prod=mp3&sc=hao123&t="+I;break;case"image":G="http://nssug.baidu.com/su?wd="+D+"&prod=image&sc=hao123&t="+I;break;case"video":G="http://nssug.baidu.com/su?wd="+D+"&prod=video&sc=hao123&t="+I;break;case"zhidao":G="http://nssug.baidu.com/su?wd="+D+"&prod=zhidao&sc=hao123&t="+I;break;default:case"web":G="http://suggestion.baidu.com/su?wd="+D+"&sc=hao123&t="+I;break;case"tieba":case"news":G=null;break}})();if(G==null)return false;if(Z)document.body.removeChild(Z);Z=C("script");Z.src=G;document.body.appendChild(Z)}}function M(){var $=B.value;if($==T&&$!=""&&$!=L){if(W==0)W=setTimeout(_,100)}else{clearTimeout(W);W=0;T=$;if($=="")c();if(L!=B.value)L=""}}var U=setInterval(M,10),a=0;B.oncontextmenu=function(){E=false};if(A==1)B.onkeydown=J;f=false;window.onblur=function(){c()};B.onblur=function(){if(f)if(Y==0){Y=setTimeout(c,200);c()}f=false};document.onmousedown=function(_){if($){$=false;return false}B.onbeforedeactivate=function(){};_=_||window.event;var A=_.target||_.srcElement;if(A==B)return;while(A==A.parentNode)if(A==S||A==B){f=true;return}if(Y==0)Y=setTimeout(c,200)};function d(){if(typeof(Y)!="undefined"&&Y!=0)clearTimeout(Y);X()}on(window,"resize",d);S.style.zIndex=200;if(Browser.isIE){var g=C("IFRAME");g.src="javascript:void(0)";g.id="sugif";g.style.zIndex="20";with(g.style){display="none";position="absolute"}S.parentNode.insertBefore(g,S)}function X(){if(S.style.display!="none")setTimeout(function(){c();if(N!=null){K(N);B.focus()}},100)}function D($){if(Browser.isGecko){$=$||window.event;if($.ctrlKey)if($.keyCode==61||$.keyCode==107||$.keyCode==109||$.keyCode==96||$.keyCode==48)X()}}on(document,"keydown",D);window.onunload=function(){}})()
</script>
</body>
</html>
下面贴一段网上找的 留着以后用
谷歌搜索:http://www.google.com.hk/search?hl=zh-CN&source=hp&q=TEST
百度搜索:http://www.baidu.com/s?wd=TEST
百度贴吧:http://tieba.baidu.com/f?kw=TEST
百度图片:http://image.baidu.com/i?ct=201326592&&word=TEST
百度音乐:http://mp3.baidu.com/m?tn=baidump3&ct=134217728&lm=-1&word=TEST
狗狗搜索:http://www.gougou.com/search?search=TEST
优酷搜索:http://www.soku.com/v?keyword=TEST
必应搜索:http://cn.bing.com/search?q=TEST
土豆搜索:http://so.tudou.com/isearch/TEST
有道搜索:http://www.youdao.com/search?q=TEST
官方自定义代码设置:http://www.google.com/cse/?hl=zh-cn
百度官方提供:http://www.baidu.com/search/freecode.html
Google谷歌
<form method=get action="http://www.google.com/search">
<table Googlebgcolor="#FFFFFF"><tr><td>
<a href="http://www.google.com/intl/zh-CN/">
<img src="http://www.google.com/logos/Logo_40wht.gif"
border="0" alt="Google" align="absmiddle"></a>
<input type=text name=q size=31 maxlength=255 value="">
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<input type=hidden name=hl value=zh-CN>
<input type=submit name=btnG value="Google 搜索">
</td></tr></table>
</form>
在新窗口打开设置 在第一段代码<FORM 标签里添加 target=_blank>
Baidu百度
<form action="http://www.baidu.com/baidu" target="_blank">
<div align="center">
<input name=tn type=hidden value=baidu>
<a href="http://www.baidu.com/"><img src="http://img.baidu.com/search/img/baidulogo_clarity_80_29.gif" alt="Baidu" align="bottom" border="0"></a>
<input type=text name=word size=30>
<input type="submit" value="百度搜索">
</div>
</form>
迅雷狗狗
<form action="http://www.gougou.com/search" target="_blank" method="get">
<div align="center">
<a href="http://www.gougou.com/">
<img border="0" src="http://www.gougou.com/images/all.gif" width="242" height="72"></a></div>
<div align="center">
<font size="2"> </font></div>
<div align="center">
<input type=text name="search" size=30>
</div>
<div align="center">
</div>
<div align="center">
<input type="submit" value="狗狗搜索">
</div>
</form>
<!--Google站内搜索开始-->
<form method=get action="http://www.google.com/search">
<input type=text name=q>
<input type=submit name=btnG value="Google 搜索">
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<input type=hidden name=hl value=zh-CN>
<input type=hidden name=domains value="http://hi.baidu.com/itwi">
<input type=hidden name=sitesearch value="http://hi.baidu.com/itwi">
</form>
<!--Google站内搜索结束-->
<!--Baidu站内搜索开始-->
<form action="http://www.baidu.com/baidu">
<input type=text name=word>
<input type="submit" value="Baidu 搜索">
<input name=tn type=hidden value="bds">
<input name=cl type=hidden value="3">
<input name=ct type=hidden value="2097152">
<input name=si type=hidden value="http://hi.baidu.com/itwi">
</form>
<!--Baidu站内搜索结束-->
<!--Yahoo站内搜索开始-->
<form action="http://www.yahoo.com.cn/search">
<input type=text name="p">
<input type="submit" value="Yahoo 搜索">
<input type=hidden name=vs value="http://hi.baidu.com/itwi">
</form>
<!--Yahoo站内搜索结束-->
下面是Google和百度的Javascript版的站内搜索代码:
<!--Google站内搜索开始-->
<script type="text/javascript">
function googlesearch () {
var wq=document.getElementsByName("wq")[0].value;
var link="http://www.google.com/search?domains=www.williamlong.info&sitesearch=http://hi.baidu.com/itwi&q="+wq;
window.open(link); }
</script>
<input type="text" name="wq"/><input type="submit" onclick="javascript:googlesearch()" value="Google 搜索" />
<!--Google站内搜索结束-->
<!--Baidu站内搜索开始-->
<script language="javascript">
function baidusearch () {
var wd=document.getElementsByName("wd")[0].value;
var link="http://www.baidu.com/s?si=http://hi.baidu.com/itwi&cl=3&ct=2097152&tn=baidulocal&word="+wd;
window.open(link); }
</script>
<input type="text" name="wd"/><input type="submit" onclick="javascript:baidusearch()" value="Baidu 搜索" />
<!--Baidu站内搜索结束-->
标签:des style blog http color java 使用 os
原文地址:http://www.cnblogs.com/zhouhaiou/p/3903523.html