tech_header.js
来自「JavaMail的应用程序合集 jsp的java 的」· JavaScript 代码 · 共 76 行
JS
76 行
function changeaction(){
var channellvalue = document.searchForm.channelid.value;
var searchwordvalue = document.searchForm.searchword.value;
if (channellvalue == "001"){
document.searchForm.action = "http://www.microsoft.com/china/msdn/searchredir.aspx?qu=" + searchwordvalue;
}
else{
document.searchForm.action = "http://search.ccidnet.com/search.wct";
}
}
function kkk(){
searchForm12.searchword.value="";
}
function goSearch(action) {
if (action.indexOf("google") > -1)
{
searchForm12.q.value = searchForm12.searchword.value;
searchForm12.method = "get";
}
searchForm12.wd.value = searchForm12.searchword.value;
searchForm12.action = action;
}
function j_af(){
window.external.AddFavorite(location.href, document.title);}
document.writeln("<meta http-equiv=\"ccidnetblack-Type\" ccidnetblack=\"text/html; charset=gb2312\">");
document.writeln("<style>");
document.writeln(".ccidnetblack { FONT-SIZE: 12px; COLOR: #000000; LINE-HEIGHT: 17px; TEXT-DECORATION: none}");
document.writeln(".ccidnetblue { font-size: 12px; line-height: 17px; color: 0000CE; text-decoration: none}");
document.writeln(".ccidnetwhite { font-size: 12px; line-height: 17px; color: #FFFFFF; text-decoration: none}");
document.writeln("a:hover { text-decoration: underline}");
document.writeln("</style>");
document.writeln("");
document.writeln("<div align=\"center\">");
document.writeln(" <table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"http://tech.ccidnet.com/pub/images/1025_bg_1.gif\" style=\"border-bottom:4px solid #5C8AF9\" class=\"ccidnetblack\" height=\"52\">");
document.writeln(" <tr> ");
document.writeln(" <td width=\"240\" rowspan=\"2\"> </td>");
document.writeln(" <td class=\"ccidnetwhite\" height=\"28\" colspan=\"2\"><a href=\"http://tech.ccidnet.com/\" target=\"_blank\" class=\"ccidnetwhite\"><font color=\"#FFFFFF\">首页</font></a> ");
document.writeln(" | <a href=\"http://tech.ccidnet.com/col/301/301.html\" target=\"_blank\" class=\"ccidnetwhite\"><font color=\"#FFFFFF\">linux\\unix</font></a> ");
document.writeln(" | <a href=\"http://network.ccidnet.com\" target=\"_blank\" class=\"ccidnetwhite\"><font color=\"#FFFFFF\">网络通信</font></a> ");
document.writeln(" | <a href=\"http://tech.ccidnet.com/col/204/204.html\" target=\"_blank\" class=\"ccidnetwhite\"><font color=\"#FFFFFF\">安全</font></a> ");
document.writeln(" | <a href=\"http://tech.ccidnet.com/col/3455/3455.html\" target=\"_blank\" class=\"ccidnetwhite\"><font color=\"#FF0000\">软件</font></a> ");
document.writeln(" | <a href=\"http://tech.ccidnet.com/col/1077/1077.html\" target=\"_blank\" class=\"ccidnetwhite\"><font color=\"#FFFFFF\">编程语言</font></a> ");
document.writeln(" | <a href=\"http://tech.ccidnet.com/col/1110/1110.html\" target=\"_blank\" class=\"ccidnetwhite\"><font color=\"ffffff\">web开发</font></a> ");
document.writeln(" | <a href=\"http://tech.ccidnet.com/col/1105/1105.html\" target=\"_blank\" class=\"ccidnetwhite\"><font color=\"ffffff\">数据库</font></a> ");
document.writeln(" | <a href=\"http://tech.ccidnet.com/col/1128/1128.html\" target=\"_blank\" class=\"ccidnetwhite\"><font color=\"#FFFFFF\">移动开发</font></a> ");
document.writeln(" | <a href=\"http://tech.ccidnet.com/col/292/292.html\" target=\"_blank\" class=\"ccidnetwhite\"><font color=\"ffffff\">软件工程</font></a> ");
document.writeln(" </tr>");
document.writeln(" <tr> ");
document.writeln(" <td width=\"280\" align=\"center\"> ");
document.writeln(" <table width=\"350\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"ccidnetblue\">");
document.writeln(" <tr> ");
document.writeln(" <td> ");
document.write(' <form name="searchForm12" method="get" action="" style="margin:0px" target="_blank">');
document.writeln(" <b>检索:</b> ");
document.write(' <input type="hidden" name="channelid" class="ccidnetcontent" value="1649">');
document.write(' <input type="hidden" name="wd" class="content" size="10">');
document.write(' <input type="text" name="searchword" class="ccidnetcontent" size="20" value="请输入关键字搜索" onClick="kkk()">');
document.write(' <input onClick=\"javascript:goSearch(\'http://search.ccidnet.com/search.wct\')\" type="image" border="0" name="imageField" src="http://tech.ccidnet.com/pub/images/info/benzhan.jpg" width="37" height="15" alt="在本站搜索文章">');
document.write(' <input onClick=\"javascript:goSearch(\'http://event.ccidnet.com/baidu\')\" type="image" border="0" name="imageField1" src="http://tech.ccidnet.com/pub/images/info/baidu.gif" width="37" height="15" alt="通过百度搜索文章"> ');
document.write('<input onClick=\"javascript:goSearch(\'http://www.google.com/custom\')\" type="image" border="0" name="sa" src="http://tech.ccidnet.com/pub/images/info/google.jpg" width="40" height="15" alt="通过Google搜索文章">');
document.write(' <input type="hidden" name="client" value="pub-3653458698766474">');
document.write('<input type=hidden name=q value="">');
document.write(' <input type=hidden name=domains value="ccidnet.com">');
document.write(' <input type=hidden name=sitesearch value="ccidnet.com">');
document.write(' </form>');
document.writeln(" </td>");
document.writeln(" </tr>");
document.writeln(" </table>");
document.writeln(" </td>");
document.writeln(" <td class=\"ccidnetblack01\" width=\"340\"><a href=\" http://tech.ccidnet.com/java/index.htm\" target=\"_blank\" class=\"ccidnetblue\"><font color=\"#FF0000\">IBM技术专区</font></a> <a href=\"http://tech.ccidnet.com/cable\" target=\"_blank\" class=\"ccidnetblue\">综合布线培训专区</a></form></td>");
document.writeln(" </tr>");
document.writeln(" </table>");
document.writeln(" ");
document.writeln("</div>");
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?