zoukankan
html css js c++ java
新浪搜索TabPage
代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>新浪搜索TabPage</title> <meta name="Generator" content="EditPlus" /> <meta name="Author" content="" /> <meta name="Keywords" content="" /> <meta name="Description" content="" /> <style type=text/css> table,form,img{ border:none; padding:0 0 0 0; margin:0 0 0 0; } /**链接:鼠标响应隐藏下划线**/ .redlink a:link,.redlink a:visited,.whitelink a:link,.whitelink a:visited,.yellowlink a:link,.yellowlink a:visited,.orangelink a:link,.orangelink a:visited { text-decoration:underline; } .redlink a:active,.redlink a:hover,.whitelink a:active,.whitelink a:hover,.yellowlink a:active,.yellowlink a:hover,.orangelink a:active,.orangelink a:hover { text-decoration:none; } .whitelink a:link,.whitelink a:visited,.whitelink a:active,.whitelink a:hover,.white { color:#fff; } .orangelink a:link,.orangelink a:visited,.orangelink a:active,.orangelink a:hover { color:#fc0; } td,p,li,input,select {font-size:12px;} .b1 {border:1px solid #000000} .l140 {line-height:140%} .L15 {line-height:150%} .L17 {line-height:170%} .F7 {font-size:7px;} .s01 {border:1px;border-style:inset;} A:link {color:#00007f;} A:visited {color:#65038e;} A:active {color:#ff0000;} A:hover {color:#ff0000;} A.a03:link,A.a03:visited {text-decoration:none;color:#000000;} A.a03:active,A.a03:hover {text-decoration:none;color:#ff0000;} A.an02:link {text-decoration:none;color:#1110AC} A.an02:visited {text-decoration:none;color:#65038e} A.an02:active,A.an02:hover {text-decoration:none;color:#ff0000} A.a251:link,A.a251:visited {text-decoration:none;color:#ffffff;} A.a251:active,A.a251:hover {text-decoration:underline;color:#ffffff;} /**导航样式**/ #mainnav { border-left: 1px #000 solid; border-right: 1px #000 solid; } .mainnav-r { border-right: 1px #000 solid; } /**导航连接**/ .mainnav a:link,.mainnav a:visited { color:#000; } /**链接:鼠标响应显示下划线**/ .navred a:link,.navred a:visited,.mainnav a { text-decoration:none; } .navred a:active,.navred a:hover { text-decoration:underline; } /**红色链接**/ .mainnav a:active,.mainnav a:hover ,.navred a:link,.navred a:visited,.navred a:active,.navred a:hover,.red ,.reddot,.redlink a:link,.redlink a:visited,.redlink a:active,.redlink a:hover { color:#f00; } /**导航连接end**/ .smsimg img{border:1px #e71516 solid;} .dot7 ,.reddot{font-size:7px;} .lh19{line-height:19px} .lh17{line-height:17px} </style> </head> <body> <style type="text/css"> .s_on{background:url(http://image2.sina.com.cn/home/iask/v2_nav_a.gif) no-repeat top; background-color:#ffc52e; font-weight:bold; color:#fff;} .s_of{background:url(http://image2.sina.com.cn/home/iask/v2_nav_a.gif) no-repeat center; background-color:#f7f7f7;} .m_on{background:url(http://image2.sina.com.cn/home/iask/v2_nav_a.gif) no-repeat bottom; cursor:pointer; font-weight:bold;} .bk_n{height:22px; 100%; font-size:14px;} .bk_n1{height:22px; 50%; font-size:14px;} .eg{color:#999999; font-size:12px;} .pt2{padding-top:2px;} .pl5{padding-left:5px;} .blbr1d9{border-left:1px solid #d9d9d9; border-right:1px solid #d9d9d9;} </style> <script type="text/javascript"> function s_chg(td_now, fn) { s_td_1.className = s_td_2.className = s_td_3.className = s_td_4.className = s_td_6.className = s_td_7.className = "s_of"; td_now.className = "s_on"; if(td_now.id == "s_td_1") { lc.style.display = "none"; btn1.height = "25"; btn1.innerHTML = "<input id=btn_i type=submit value='搜 索' style='60px;' onClick='f.submit();return false;'> <input type=button value='提 问' style='60px;' onClick='ask(f);'>"; if(fn.i_k.value=="例:餐厅,酒吧") fn.i_k.value = ""; fn.i_k.name = "k"; fn.action = "http://iask.com/s"; } if(td_now.id == "s_td_3") { lc.style.display = "none"; btn1.height = "25"; btn1.innerHTML = "<input id=btn_i type=submit value='搜 索' style='60px;' onClick='f.submit();return false;'>"; if(fn.i_k.value=="例:餐厅,酒吧") fn.i_k.value = ""; fn.i_k.name = "k"; fn.action = "http://iask.com/n"; } if(td_now.id == "s_td_4") { lc.style.display = "none"; btn1.height = "25"; btn1.innerHTML = "<input id=btn_i type=submit value='搜 索' style='60px;' onClick='f.submit();return false;'>"; if(fn.i_k.value=="例:餐厅,酒吧") fn.i_k.value = ""; fn.i_k.name = "k"; fn.action = "http://p.iask.com/p"; } if(td_now.id == "s_td_6") { lc.style.display = "none"; btn1.height = "25"; btn1.innerHTML = "<input id=btn_i type=submit value='搜 索' style='60px;' onClick='f.submit();return false;'>"; if(fn.i_k.value=="例:餐厅,酒吧") fn.i_k.value = ""; fn.i_k.name = "k"; fn.action = "http://m.iask.com/g"; } if(td_now.id == "s_td_5") { lc.style.display = "none"; btn1.height = "25"; btn1.innerHTML = "<input id=btn_i type=submit value='搜 索' style='60px;' onClick='f.submit();return false;'>"; if(fn.i_k.value=="例:餐厅,酒吧") fn.i_k.value = ""; fn.i_k.name = "k"; fn.action = "http://iask.com/v"; } if(td_now.id == "s_td_2") { lc.style.display = "none"; btn1.height = "25"; btn1.innerHTML = "<input id=btn_i type=submit value='搜 索' style='60px;' onClick='f.submit();return false;'>"; if(fn.i_k.value=="例:餐厅,酒吧") fn.i_k.value = ""; fn.i_k.name = "q"; fn.action = "http://blog.iask.com/b"; } if(td_now.id == "s_td_7") { lc.style.display = "block"; lc.style.paddingTop = "0"; btn1.height = "25"; btn1.innerHTML = "<input id=btn_i type=submit value='搜 索' style='60px;' onClick='f.submit();return false;'>"; fn.i_k.name = "key"; fn.action = "http://bendi.iask.com/r.php"; fn.i_k.value="例:餐厅,酒吧"; fn.location.value="例:广州中山路"; } } function mouse_on(td_now) { if(td_now.className == "s_on") return false; else td_now.className = "m_on"; } function mouse_of(td_now) { if(td_now.className == "s_on") return false; else td_now.className = "s_of"; } </script> <script language="javascript"> function iask_ck(fn) { if(fn.i_k.value == "") { if(fn.btn_i.value == "提 问") { window.open("http://iask.sina.com.cn/"); return false; } } } function ask(fn) { if(fn.k.value == "") { window.open("http://iask.sina.com.cn/"); return false; } else { window.open("http://iask.sina.com.cn/question/ask_new_2.php?title=" + fn.k.value); } } </script> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr><td height="1"></td></tr> </table> <table border="0" width="286" cellpadding="0" cellspacing="0"> <tr bgcolor="#f9f9fa" valign="top"> <td height="30" class="blbr1d9"> <table border="0" width="100%" height="27" cellpadding="0" cellspacing="0" background="http://image2.sina.com.cn/home/iask/v2_nav_b.gif"> <tr align="center"> <td width="8"></td> <td width="45" id="s_td_1" class="s_on" onClick="s_chg(this,f);" onMouseOver="mouse_on(this);" onMouseOut="mouse_of(this);">网页</td> <td width="45" id="s_td_3" class="s_of" onClick="s_chg(this,f);" onMouseOver="mouse_on(this);" onMouseOut="mouse_of(this);">新闻</td> <td width="45" id="s_td_7" class="s_of" onClick="s_chg(this,f);" onMouseOver="mouse_on(this);" onMouseOut="mouse_of(this);">本地</td> <td width="45" id="s_td_4" class="s_of" onClick="s_chg(this,f);" onMouseOver="mouse_on(this);" onMouseOut="mouse_of(this);">图片</td> <td width="45" id="s_td_6" class="s_of" onClick="s_chg(this,f);" onMouseOver="mouse_on(this);" onMouseOut="mouse_of(this);">MP3</td> <td width="45" id="s_td_2" class="s_of" onClick="s_chg(this,f);" onMouseOver="mouse_on(this);" onMouseOut="mouse_of(this);">博客</td> <td> </td> </tr> </table> </td> </tr> <tr bgcolor="#f9f9fa"> <form name=f action=http://iask.com/s target=_blank onSubmit="return iask_ck(this)"> <td height="21" align="center" valign="top" class="blbr1d9"> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr><td height="2"></td></tr> <tr valign="top"> <td width="15"></td> <td><input type="text" id="i_k" name="k" size="10" class="bk_n" onClick="javascript:if(this.value=='例:餐厅,酒吧')this.value='';"></td> <td width="110" id="lc" class="pl5" style="display:none;"><input type="text" name="cl" id="location" size="5" class="bk_n" onClick="javascript:if(this.value=='例:广州中山路')this.value='';"></td> <td width="15"></td> </tr> </table> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr align="center" valign="middle"> <td id="btn1" height="25"><input id=btn_i type=submit value='搜 索' style='60px;'> <input type=button value='提 问' style='60px;' onClick='ask(f);'></td> </tr> </table> </td> <input type="hidden" name="fsh_s"> </form> </tr> </table> </body> </html>
[Ctrl+A 全选 提示:你可先修改部分代码,再点运行代码]
青苹果Web应用商店
https://webapp.taobao.com/
PHP/ASP.NET/ASP/UCHOME/DISCUZ! X系列网站开发,详细需求联系
QQ:8511978
查看全文
相关阅读:
axios
vue-cli-service 报错
避免大型、复杂的布局和布局抖动
vue 父子通信
== 区别 === ,!= 区别 !==
全选/取消全选
vue 注意
pyparsing:自定义一个属于你的语法解析器(更新中)
《python解释器源码剖析》第11章--python虚拟机中的控制流
collections:内建模块,提供额外的集合类
原文地址:https://www.cnblogs.com/Dicky/p/518682.html
最新文章
java 类初识
request session
java 数组2
java 储存机制
git 工作实用创建删除分支
java 数组
java 方法重载
java intellij 工具的简单用法
wx.navigateTo和wx.redirectTo的不同
wx.navigateTo的url不生效的问题
热门文章
小程序点击事件携带参数
小程序tabBar的使用
onPageScroll的使用
enablePullDownRefresh的使用
怎么样修改小程序分享的title/onShareAppMessage
小程序wx.showLoading的使用
小程序授权,微信授权,小程序获取用户电话号码
展示隐藏文件
http请求由哪几部分组成
请求相关
Copyright © 2011-2022 走看看