一搜图片搜索小偷

所属分类: 网络编程 / ASP编程 阅读数: 690
收藏 0 赞 0 分享
复制代码 代码如下:

<script type="text/javascript" language="JavaScript">
<!--
if (top.location !== self.location) {
 top.location = self.location + "&source=iframe_" + escape(document.referrer);
}
function set_focus() {this.document.search.p.focus();}
function od( aobj )
{
try
{
var width = 460
var height = 500;
var left = ( screen.width - width ) / 2;
var top = ( screen.height - height ) / 2;
var href = aobj.href;
var param = 'resizable=0, scrollbars=0, width=' + width + ', height=' + height + ', left=' + left +
'; top=' + top;
window.open( href, '_blank', param );
}
catch( e )
{

}
return false;
}
function slide_2003a05_02(url) {
window.open(url,'帮助','top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width=450,height=500,top=10,left=10');}
function verify_input(form) {
 if (form.p.value == "") {
 alert("请输入搜索关键字!");
 return false;
 } else {
 return true;
 }
}
function get_lang(form,name) {
 if (name == "chn") {
 form.lang.value = "chn";
 }
 else {
 form.lang.value = "en";
 }
 form.submit();
 return false;
}
function dtlpost( i )
{
 dtlpostfrm.action += "&sel=" + i;
 dtlpostfrm.sel.value = i;
 dtlpostfrm.submit();
 return false;
}
function popupwap( aobj )
{
 try
 {
 var width = 520
 var height = 370;
 var left = ( screen.width - width ) / 2;
 var top = ( screen.height - height ) / 2;
 var href = aobj;
 var param = 'resizable=0, scrollbars=0, width='
 + width + ', height=' + height + ', left='
 + left + '; top=' + top;
 window.open( href, '_blank', param );
 }
 catch( e )
 {

 }
 return false;
}
function popupshop( aobj )
{
 try
 {
 var width = 820
 var height = 570;
 var left = ( screen.width - width ) / 2;
 var top = ( screen.height - height ) / 2;
 var href = aobj;
 var param = 'resizable=1, scrollbars=1, width='
 + width + ', height=' + height + ', left='
 + left + '; top=' + top;
 window.open( href, '_blank', param );
 }
 catch( e )
 {

 }
 return false;
}
function submitbtm(pid)
{
 try
 {
 var href = "?p=" + document.bottom.p.value
 + "\x26source=ysearch_img_result_bottomsearch"
 + "\x26chnTotal=-1\x26enTotal=-1\x26pid=" + pid;
 if (document.search.lang.checked) {
 href += "\x26lang=trans";
 }
 document.location.href = href;
 }
 catch( e )
 {

 }
 return false;
}
function clk(el,ct,cd) {
 var newurl;
 if (document.images){
 newurl = "http://cn.wrs.yahoo.com/search/yisou/"+escape(ct)+"/"+1 +"/"+escape(cd)+"/"+'2005'+"/" + "*" + "http://cn.wrs.yahoo.com/clk.gif";
 (new Image()).src=newurl;
 }
 return true;
}
 function open_wl_win(href) {
 var width = 600;
 var height = 680;
 var left = ( screen.width - width ) / 2;
 var top = 10;
 var param = 'resizable=0, scrollbars=1, width='
 + width + ', height=' + height + ', left='
 + left + '; top=' + top;
 window.open( href, '_blank', param );
 }
--></script>
</head>

<body oncontextmenu="return false" onselectstart="return false" oncopy="return false" topmargin="0" leftmargin="0">
<BASE onmouseover="window.status='浏阳网店联盟-图片搜索-没有搜不到的图片';return true">

<table width="782" border="0" align="center" id="table1" height="82">
    <tr>
      <td width="776" valign="top" colspan="2"><p align="center">      </td>
    </tr>
    <form name="search" method="get" action="pic.asp">
    <tr background="images/Top_7.gif">
    <td width="163" rowspan="3" valign="top">
        <img border="0" src="http://www.lenoxo.com/index/logos.gif" width="157" height="64"></td>
        <td width="609">
        <p align="center">
    <p>图片搜索:
      <input type="text" name="p" size="30" value="<%=request("p")%>"><span lang="en-us">&nbsp;&nbsp;
       <input type="hidden" name="source" value="ysearch_img_hp_search" > <input type="hidden" name="pid" value=""> 
       <input type="hidden" name="mip" value="all" >
       <input type="hidden" name="miw" value="all" >
       <input type="hidden" name="chntotal" value="-1" >
       <input type="hidden" name="entotal" value="-1" >
    </span><input type="submit" value="搜 索" name="B1">&nbsp;&nbsp;
    <input type="reset" value="重 置" name="B2">&nbsp; 
</p></td>

        

    </tr>
    <tr>
    <td ></td>    

    </tr>
    <tr>
        <td width="609" bgcolor="#F4FEFF">
        <a href="http://www.lenoxo.com/index.asp">网站首页</a>&nbsp; 
        <a href="http://www.lenoxo.com/main.htm">搜索首页</a>&nbsp;&nbsp; 图片&nbsp; 
        <font color="#FF0000"><a href="http://www.lenoxo.com/mp3.htm">音乐</a></font>&nbsp; 
        <a href="http://www.lenoxo.com/newso.asp">新闻</a>&nbsp; 
        <a href="http://www.lenoxo.com/word.htm">文档</a>&nbsp;
        <a href="http://www.lenoxo.com/ring.htm">铃声</a>&nbsp; 
        <a href="http://www.lenoxo.com/yp.asp">黄页</a>
        <a href="http://www.lenoxo.com/hangye/">行业</a>&nbsp;
        <a href="http://www.lenoxo.com/login.asp">购物</a>&nbsp; 
        <a href="http://www.lenoxo.com/more.htm">更多</a></td>

        

    </tr>
    </form>
</table>
<%

Dim URL,Update,startimer,endtimer,overdate
Url = "http://image.yahoo.com.cn/search?source=ysearch_img_result_topsearch&mip=all&miw=all&p="&request("p")&"&chntotal="&request("chntotal")&"&entotal="&request("entotal")&"&pid="&request("pid")&"&lang=chn&b="&request("b")&""
Const adTypeText = 2

Update=GetURL(URL)
overdate=bytes2bstr2(Update)
first=instr(overdate,"<table width=""98%"" border=""0"" align=""center"" cellpadding=""6"" cellspacing=""0"">")
if first=0 then%>没有找到你想要的图片<%
else
betw=instr(overdate,"下一页>>")-first+5
overdate = Mid(overdate,first,betw)
overdate=replace(overdate,"search?","pic.asp?")
overdate=replace(overdate,"searchdtl_v3.html?","http://image.yahoo.com.cn/searchdtl_v3.html?")
overdate=replace(overdate,"searcheml.html?","http://image.yahoo.com.cn/searcheml.html?")
Response.Write overdate
end if

' 获取远程HTML
Function GetURL(url)
    Set Retrieval = CreateObject("Microsoft.XMLHTTP") 
    With Retrieval
        .Open "get", url, False
        .Send
        GetURL = .responsebody
    End With 
    Set Retrieval = Nothing 
End Function



Function Bytes2bStr2(vin)
 Dim BytesStream,StringReturn

 Set BytesStream = Server.CreateObject("ADODB.Stream")
 With BytesStream
  .Type = adTypeText   
  .Open               
  .WriteText vin           

  .Position = 0            

  .Charset = "GB2312"       
  .Position = 2             
  StringReturn = .ReadText 
  .close                    
 End With
 Set BytesStream = Nothing  
 Bytes2bStr2 = StringReturn
End Function
Function bytes2bstr1(vin) 
 strreturn = "" 
 For i = 1 To lenb(vin) 
 thischarcode = ascb(midb(vin,i,1)) 
 If thischarcode < &h80 Then 
  strreturn = strreturn & chr(thischarcode) 
 Else 
  nextcharcode = ascb(midb(vin,i+1,1)) 
  strreturn = strreturn & chr(clng(thischarcode) * &h100 + cint(nextcharcode)) 
  i = i + 1 
 End If 
 Next 
 bytes2bstr1 = strreturn 
End Function 
%>
</body>
</html>
更多精彩内容其他人还在看

asp知识整理笔记4(问答模式)

这是关于asp知识整理的最后一份笔记,希望大家仔细阅读。
收藏 0 赞 0 分享

ASP基础知识VBScript基本元素讲解

这篇文章主要介绍了ASP基础知识VBScript基本元素的相关资料,需要的朋友可以参考下
收藏 0 赞 0 分享

ASP编码和解码函数详解

这篇文章主要介绍了ASP编码和解码函数的相关资料,需要的朋友可以参考下
收藏 0 赞 0 分享

ASP显示页面执行时间的方法

这篇文章主要介绍了ASP显示页面执行时间的方法,在本地测试一下输出页面需要多少时间,需要的朋友可以参考下
收藏 0 赞 0 分享

ASP基础入门第一篇(ASP技术简介)

本文将以 Active Server Pages 为中心,向你全面展示制作动态商业网站的步骤和技巧并通过大量的实例,让你在不断的理论和实践之中笑傲“网络”……
收藏 0 赞 0 分享

ASP基础入门第二篇(ASP基础知识)

这篇文章是ASP基础入门第二篇,第一篇展示了ASP动态网站设计的一些最基本的方法,相信通过实践各位对 ASP 已经有了最基本的了解,本文将进一步介绍ASP动态网站的一些基本技巧,需要的朋友可以参考下
收藏 0 赞 0 分享

ASP基础入门第三篇(ASP脚本基础)

通过前两篇的学习,相信各位已经对 ASP 的动态网站设计有了一个基本的概念和整体的印象。从本篇开始作者将从脚本语言的使用着手,由浅入深地带领大家探索 ASP 动态网站设计的真正奥秘。
收藏 0 赞 0 分享

ASP基础入门第四篇(脚本变量、函数、过程和条件语句)

大家在学习了脚本语言 VBScript 的变量、常量和过程的基本概念后,本期将继续向各位介绍 VBScript 的函数和语法。
收藏 0 赞 0 分享

ASP基础入门第五篇(ASP脚本循环语句)

在本文上两篇中,我们学习了脚本语言 VBScript 的变量、函数、过程和条件语句,本篇将继续给大家介绍 VBScipt 的循环语句,并对脚本语言在 ASP 中的应用加以总结。  
收藏 0 赞 0 分享

ASP基础入门第六篇(ASP内建对象Request)

从本篇开始作者从 ASP 内建对象着手,为大家详细剖析 ASP 的六个内建对象和各种组件的特性和方法,需要的朋友可以参考下
收藏 0 赞 0 分享
查看更多