代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
PHP
】
切换网页搜索引擎代码
作者:
小?伟
/ 发布于
2012/10/22
/
650
切换网页搜索引擎代码
<div><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></div> <div><html xmlns="http://www.w3.org/1999/xhtml"></div> <div><head></div> <div><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></div> <div><title>SOSO更懂你</title></div> <div><style></div> <div>* {</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>margin:0px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>padding:0px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>list-style:none;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>text-decoration:none;</div> <div>} <div>input, button, select, textarea {</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>outline:none;</div> <div>} <div>textarea {</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>font-size:13px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>resize:none;</div> <div>} <div>search_main{</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>width:629px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>height:32px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>margin:100px;</div> <div>} <div>search {</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>width:550px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>height:28px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>border:#1FA9F0 2px solid;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>float:left;</div> <div>} <div>.jsSelect {</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>width:62px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>height:170px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>float:left;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>display:inline;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>margin-left:-2px;</div> <div>} <div>.jsSelect ul {</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>width:62px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>height:28px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>overflow:hidden;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>background:#FFF;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>float:left;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>position:absolute;</div> <div>} <div>.jsSelect ul .s {</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>display:block;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>background:url(http://m1.img.libdd.com/farm4/2012/1016/20/3980B72CC089D6AEDF173FC70D8F755E6B8B7F9506523_68_60.PNG) 0px -30px no-repeat;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>cursor:default;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>cursor:pointer;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>color:#1FA9F0;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>border:none;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>border-left:2px solid #1FA9F0;</div> <div>} <div>.jsSelect ul li {</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>width:58px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>height:28px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>line-height:28px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>font-size: 14px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>font-weight: bold;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>cursor:pointer;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>text-align:center;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>color:#A8A8A8;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>border:none;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>border-left:2px solid #1FA9F0;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>border-right:2px solid #1FA9F0;</div> <div>} <div>youdao_s {</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>border-bottom:2px solid #1FA9F0;</div> <div>} <div>inp {</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>width:410px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>height:28px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>background:none;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>margin-left:2px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>font-size:16px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>border:none;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>line-height:28px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>color:#008ECA;</div> <div>} <div>searchimg{</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>width:50px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>height:14px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>background:url(http://mat1.gtimg.com/www/images/qq2012/sosologo.png) no-repeat;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>float:right;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>margin:7px;</div> <div>} <div>sure{</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>width:75px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>height:32px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>background:url(http://m3.img.libdd.com/farm5/2012/1016/23/F9993AD7867D5DEF397AB5C712EA5C8CC6F691A8ED565_75_32.PNG);</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>text-indent: -9999px;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>border:none;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>float:left;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>cursor:pointer;</div> <div>} <div></style></div> <div><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script></div> <div><script type="text/javascript"></div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(document).ready(function(){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("body #Select").each(function(i){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>i= i+1</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>this.id = "Select" + i;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>var SumimasenSelect = $("#Select"+i)</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(SumimasenSelect).find("ul li:first").hover(function(){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(".s").css("background","url(http://m1.img.libdd.com/farm4/2012/1016/20/3980B72CC089D6AEDF173FC70D8F755E6B8B7F9506523_68_60.PNG) 0px 0px no-repeat");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(this).parent("ul").css("height",170)</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(this).siblings("ul li:not(.s)").mouseenter(function(){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(".s").css("background","url(http://m1.img.libdd.com/farm4/2012/1016/20/3980B72CC089D6AEDF173FC70D8F755E6B8B7F9506523_68_60.PNG) 0px 0px no-repeat");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(this).css("background","#39f").css("color","#FFFFFF")</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(this).siblings("ul li:not(.s)").mouseleave(function(){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(this).css("background","none").css("color","#A8A8A8")</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(".s").css("background","url(http://m1.img.libdd.com/farm4/2012/1016/20/3980B72CC089D6AEDF173FC70D8F755E6B8B7F9506523_68_60.PNG) 0px -30px no-repeat");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(this).siblings("ul li:not(.s)").click(function(){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(this).parent("ul").css("height",28)</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>var cdContent = $(this).text()</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(SumimasenSelect).find("ul li:first").text(cdContent)</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(this).parent(SumimasenSelect).mouseleave(function(){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(this).css("height",28)</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#soso_s").click(function(){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#inp").attr("name","w");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#sform").attr("action","http://www.soso.com/q");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#searchimg").css("background","url(http://m3.img.libdd.com/farm4/2012/1016/23/4DAF82D0B27DC4FB62DC45CD3114B9A0B154A88F1D2C4_50_70.PNG) 0px 0px");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#baidu_s").click(function(){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#inp").attr("name","wd");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#sform").attr("action","http://www.baidu.com/s");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#searchimg").css("background","url(http://m3.img.libdd.com/farm4/2012/1016/23/4DAF82D0B27DC4FB62DC45CD3114B9A0B154A88F1D2C4_50_70.PNG) 0px -14px");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#google_s").click(function(){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#inp").attr("name","q");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#sform").attr("action","http://www.google.com.hk/search");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#searchimg").css("background","url(http://m3.img.libdd.com/farm4/2012/1016/23/4DAF82D0B27DC4FB62DC45CD3114B9A0B154A88F1D2C4_50_70.PNG) 0px -42px");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#sogou_s").click(function(){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#inp").attr("name","query");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#sform").attr("action","http://www.sogou.com/web");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#searchimg").css("background","url(http://m3.img.libdd.com/farm4/2012/1016/23/4DAF82D0B27DC4FB62DC45CD3114B9A0B154A88F1D2C4_50_70.PNG) 0px -28px");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#youdao_s").click(function(){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#inp").attr("name","q");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#sform").attr("action","http://www.youdao.com/search");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#searchimg").css("background","url(http://m3.img.libdd.com/farm4/2012/1016/23/4DAF82D0B27DC4FB62DC45CD3114B9A0B154A88F1D2C4_50_70.PNG) 0px -56px");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#wen_s").click(function(){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#sform").attr("action","http://wenwen.soso.com/z/Search.e?cid=w.q.in.sb.ww&ie=utf-8&sp=S")</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#news_s").click(function(){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$("#sform").attr("action","http://news.soso.com/n.q")</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span></div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>},function(){</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>$(".s").css("background","url(http://m1.img.libdd.com/farm4/2012/1016/20/3980B72CC089D6AEDF173FC70D8F755E6B8B7F9506523_68_60.PNG) 0px -30px no-repeat");</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span></div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div> <div></script></div> <div></head></div> <div><body></div> <div><div id="search_main"></div> <div><form action="http://www.soso.com/q" method="get" id="sform"></div> <div> <div id="search"></div> <div> <div class="jsSelect" id="Select"></div> <div> <ul></div> <div> <li class="s">搜搜</li></div> <div> <li id="soso_s">搜搜</li></div> <div> <li id="baidu_s">百度</li></div> <div> <li id="google_s">谷歌</li></div> <div> <li id="sogou_s">搜狗</li></div> <div> <li id="youdao_s">有道</li></div> <div> </ul></div> <div> </div></div> <div> <input name="w" type="text" value="" autocomplete="off" id="inp"></div> <div> <div id="searchimg"></div></div> <div> </div></div> <div> <input type="submit" value="搜素" id="sure"/></div> <div></form></div> <div></div></div> <div></body></div> <div></html></div>
试试其它关键字
搜索引擎代码
同语言下
.
用net匹配并替换iOS标准的emoji表情符号
.
处理带Emoji表情的的字符串
.
获取微信昵称时 过滤特殊字符
.
通过判断上传文件的头字符来判断文件的类型
.
模拟百度URL加密解密算法
.
以太坊检查地址是否合法
.
实现crontab解析类
.
获取每个月的开始和结束时间
.
图片上传工具类
.
APP手机应用信息采集
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
小?伟
贡献的其它代码
(
3
)
.
实现矩阵相乘
.
切换网页搜索引擎代码
.
JSP验证码生成
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3