?? getcode.asp
字號:
<!--#include file="config.asp"-->
<%
action=request("action")
style=request("style")
border=request("border")
background=request("background")
width=request("width")
coding=request("coding")
target=request("target")
baseurl="http://"+Request.ServerVariables("SERVER_NAME")+Left(Request.ServerVariables("PATH_INFO"),instrRev(Request.ServerVariables("PATH_INFO"),"/"))
if style="" then style="1"
if border="" then border="BBBBBB"
if background="" then background="FFFFFF"
if width="" then width="600"
if coding="" then coding="gb2312"
if target="" then target="_blank"
%>
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="gb2312">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<meta http-equiv="content-language" content="gb2312">
<title><%=name%></title>
<link rel="stylesheet" href="style/index_<%=skin%>.css" type="text/css" media="screen">
</head>
<script language="JavaScript" src="js/getcode_showpic.js"></script>
<body>
<script>
<!--
// 自動 COPY 代碼開始
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function JM_cc(ob){
var obj=MM_findObj(ob); if (obj) {
obj.select();js=obj.createTextRange();js.execCommand("Copy");}
alert("復制成功!您可以將此段代碼粘貼到網頁中!");
}
// 自動 COPY 代碼結束
//-->
</script>
<br>
<div id="logo"><a href="<%=weburl%>"><img src="<%=logo%>" alt="<%=name%>" border="0"></a></div>
<br><br><br>
<div id="search">
<form method="post">
<b>樣式</b>:<INPUT type=radio value=1 name=style<%if style="1" then%> CHECKED<%end if%>><a zzzpop='<img src=images/getcode_1.gif width=600 height=40>'>格式一</a> <INPUT type=radio value=2 name=style<%if style="2" then%> CHECKED<%end if%>><a zzzpop='<img src=images/getcode_2.gif width=605 height=60>'>格式二</a> <INPUT type=radio value=3 name=style<%if style="3" then%> CHECKED<%end if%>><a zzzpop='<img src=images/getcode_3.gif width=600 height=40>'>格式三</a> <INPUT type=radio value=4 name=style<%if style="4" then%> CHECKED<%end if%>><a zzzpop='<img src=images/getcode_4.gif width=602 height=56>'>格式四</a> <b>編碼</b>:<INPUT type=radio value=gb2312 name=coding<%if coding="gb2312" then%> CHECKED<%end if%>>GB2312 <INPUT type=radio value=utf name=coding<%if coding="utf" then%> CHECKED<%end if%>>UTF-8 <INPUT type=radio value=big name=coding<%if coding="big" then%> CHECKED<%end if%>>Big5<br>
<b>寬度</b>:<input type=text name=width value=<%=width%> style="width:22px;height:12px">px <b>邊框顏色</b>:#<input type=text name=border value=<%=border%> style="width:42px;height:12px"> <b>背景顏色</b>:#<input type=text name=background value=<%=background%> style="width:42px;height:12px"> <b>框架</b>:<select name=target style="font-size:12px;height:16px"><option value="_blank"<%if target="_blank" then%> selected<%end if%>>新建窗口(_blank)</option><option value="_self"<%if target="_self" then%> selected<%end if%>>當前窗口(_self)</option><option value="_parent"<%if target="_parent" then%> selected<%end if%>>父級窗口(_parent)</option><option value="_top"<%if target="_top" then%> selected<%end if%>>上部窗口(_top)</option></select><input type=hidden name=action value=create>
</div>
<input type="submit" value="生成代碼"></form><br><br>
<%if action="create" then%>
<script language="javascript" src="js/change.js"></script>
語言:<a href="javascript:t2s()">簡體中文</a> <a href="javascript:s2t()">繁體中文</a><br><br><br>
<%if style="1" then%>
<div id="search">
<textarea name="code" style="COLOR: #666666;width:600px;height:30px;overflow-x:hidden;">
<form target="<%=target%>" method="get" action="<%=baseurl%><%if coding="gb2312" then%>search.asp<%end if%><%if coding="utf" then%>client.asp<%end if%><%if coding="big" then%>big5.asp<%end if%>"><table style="border: 1px solid #<%=border%>;background-color:#<%=background%>;width:<%=width%>px;text-align:center" align="center" border="0" cellpadding="0" cellspacing="0"><tr><td nowrap style="padding-bottom:6px;padding-top:6px"><a target="_blank" href="<%=weburl%>"><img alt="<%=name%>" src="<%=baseurl%>images/logo_9025.gif" align="absmiddle" border="0"></a> <input style="width:<%=width-250%>px;" name="search" type="text" value="請輸入關鍵字" onmouseover="this.focus()" onblur="if (value ==''){value='請輸入關鍵字'}" onfocus="this.select()" onclick="if(this.value=='請輸入關鍵字')this.value=''"> <select style="width:77px" name="want"><option selected="selected" value="">全部網頁</option><option value="photo">圖片搜索</option><option value="music">音樂搜索</option><option value="video">影視搜索</option><option value="game">游戲搜索</option><option value="know">知識搜索</option><option value="site">站內搜索</option></select> <input style="line-height:130%;height:22px;width:39px" value="搜索" type="submit"></td></tr></table></form></textarea>
</div>
<input name="Submit" type=Submit onclick=runcodes();alert("效果預覽不具有任何搜索功能,若需搜索請將該搜索框代碼粘貼到您的網頁中!"); value="效果預覽"> <input type="Submit" name="Submit" value="復制代碼" id="btn_submit" onClick=JM_cc("code")><br><br>
<%end if%>
<%if style="2" then%>
<div id="search">
<textarea name="code" style="COLOR: #666666;width:600px;height:30px;overflow-x:hidden;">
<form target="<%=target%>" method="get" action="<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>"><table style="border: 1px solid #<%=border%>;background-color:#<%=background%>;width:<%=width%>px;text-align:center" align="center" border="0" cellpadding="0" cellspacing="0"><tr><td nowrap style="padding:6px 6px 3px 6px"><a target="_blank" href="<%=weburl%>"><img alt="<%=name%>" src="<%=baseurl%>images/logo_9025.gif" align="absmiddle" border="0"></a> <input style="width:<%=width-150%>px;" name="search" type="text" value="請輸入關鍵字" onmouseover="this.focus()" onblur="if (value ==''){value='請輸入關鍵字'}" onfocus="this.select()" onclick="if(this.value=='請輸入關鍵字')this.value=''"> <input style="line-height:130%;height:22px;width:39px" value="搜索" type="submit"></td></tr><tr><td style="font-size:12px;padding-left:100px;text-align:left"><input type="radio" name="want" value="" checked="checked" onclick="this.form.action='<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>';this.form.submit()" >網頁<input type="radio" name="want" value="photo" onclick="this.form.action='<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>';this.form.submit()" >圖片<input type="radio" name="want" value="music" onclick="this.form.action='<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>';this.form.submit()" >音樂<input type="radio" name="want" value="video" onclick="this.form.action='<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>';this.form.submit()" >影視<%if width>319 then%><input type="radio" name="want" value="game" onclick="this.form.action='<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>';this.form.submit()" >游戲<%end if%><%if width>359 then%><input type="radio" name="want" value="know" onclick="this.form.action='<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>';this.form.submit()" >知識<%end if%><%if width>409 then%><input type="radio" name="want" value="site" onclick="this.form.action='<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>';this.form.submit()" >站內<%end if%></td></tr></table></form></textarea>
</div>
<input name="Submit" type=Submit onclick=runcodes();alert("效果預覽不具有任何搜索功能,若需搜索請將該搜索框代碼粘貼到您的網頁中!"); value="效果預覽"> <input type="Submit" name="Submit" value="復制代碼" id="btn_submit" onClick=JM_cc("code")><br><br>
<%end if%>
<%if style="3" then%>
<div id="search">
<textarea name="code" style="COLOR: #666666;width:600px;height:30px;overflow-x:hidden;">
<form target="<%=target%>" method="get" action="<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>"><table style="border: 1px solid #<%=border%>;background-color:#<%=background%>;width:<%=width%>px;text-align:center" align="center" border="0" cellpadding="0" cellspacing="0"><tr><td nowrap style="padding:6px 6px 6px 6px"><input style="width:<%=width-140%>px;background-image:url(<%=baseurl%>images/logo_1616.gif);background-repeat: no-repeat;padding-left:16px" name="search" type="text" value="請輸入關鍵字" onmouseover="this.focus()" onblur="if (value ==''){value='請輸入關鍵字'}" onfocus="this.select()" onclick="if(this.value=='請輸入關鍵字')this.value=''"> <select style="width:77px" name="want"><option value="">全部網頁</option><option value="photo">圖片搜索</option><option value="music">音樂搜索</option><option value="video">影視搜索</option><option value="game">游戲搜索</option><option value="know">知識搜索</option><option value="site">站內搜索</option></select> <input style="line-height:130%;height:22px;width:39px" value="搜索" type="submit"></td></tr></table></form></textarea>
</div>
<input name="Submit" type=Submit onclick=runcodes();alert("效果預覽不具有任何搜索功能,若需搜索請將該搜索框代碼粘貼到您的網頁中!"); value="效果預覽"> <input type="Submit" name="Submit" value="復制代碼" id="btn_submit" onClick=JM_cc("code")><br><br>
<%end if%>
<%if style="4" then%>
<div id="search">
<textarea name="code" style="COLOR: #666666;width:600px;height:30px;overflow-x:hidden;">
<style>
.search_table,.search_select,.search_ul,.search_li{font-size:12px;line-height:20px;}
.search_form{margin:0;padding:0;}
.search_mb5{margin-bottom:5px;border:1px solid #92C3F2;border-top:0px;background:#D3E8FD}
.search_fod1,.search_fod2{height:23px;width:63px;text-align:center;cursor:pointer;}
.search_fod1{background:url(<%=baseurl%>images/search_code_nav.gif) no-repeat;font-weight:bold;color:#fff}
.search_fod2{background:url(<%=baseurl%>images/search_code_nav_bg.gif) no-repeat;}
.search_bor3{border:1px solid #B2D0EA;}
.search_bort{border-top:1px solid #B2D0EA;}
.search_f14{font-size:14px;}
.search_blue a{color:#004BCA;}
.search_more{position:absolute;background:#fff;margin:-5px 0 0 0!important;margin:13px 0 0 -55px;z-index:10;}
.search_more a,.search_more a:visited{width:70px;display:block;text-decoration:none;color:#00007F;}
.search_more a:hover{background:#<%=border%>;color:#fff;}
.search_more ul{list-style-type:none;margin:0;padding:0;}
.search_more li{line-height:24px;list-style-type:none;margin:0;padding:0;text-align:left;}
</style>
<SCRIPT>
var searchCurrHighLight = document.getElementById("search");
function trim(str){
return str.replace(/(^\s*)|(\s*$)/g, "");
}
function searchValidate(){
wval = trim(frm_head.search.value);
if(frm_head.want.value=="video")
{
}
else if(frm_head.want.value=="game" && wval != "")
{
window.open("<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>?want=game&search="+frm_head.search.value, "_blank");
return false;
}
if(wval == "")
return false;
else {
return true;
}
}
function searchSubSearch(want){
changePage(want);
frm_head.want.value = want;
if(want == "photo")
{
frm_head.action = "<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>";
}
else if(want == "music")
{
frm_head.action = "<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>";
}
else if(want == "")
{
frm_head.action = "<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>";
}
else if(want == "know")
{
frm_head.action = "<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>";
}
else if(want == "video"){
frm_head.want.value = "video";
searchGovideo();
}
else if(want == "game")
{
frm_head.want.value = "game";
frm_head.action = "<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>";
}
else
{
frm_head.action = "<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>";
}
}
function searchGovideo(){
frm_head.action = "<%=baseurl%><%if coding<>"utf" then%>search.asp<%else%>client.asp<%end if%>";
}
function changePage(want){
if(searchCurrHighLight == null){
searchCurrHighLight = document.getElementById("search");
}
searchCurrHighLight.className = "search_fod2";
searchCurrHighLight = document.getElementById("search" + want)
searchCurrHighLight.className = "search_fod1";
frm_head.want.value = want;
}
function isvideo(){
if(searchCurrHighLight == document.getElementById("searchvideo")){
searchGovideo();
return true;
}
else{
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -