加为好友
发送私信
在线聊天
ASDFE123
等级:
可用分等级:贫农
总技术分:796
总技术分排名:23055
发表于:2008-08-21 20:14:43 8 楼 得分:0
用NetBox 测试的时候是OK的,但把网站放到目录下就出现了错误~ Microsoft VBScript 编译器错误 '800a0400' 缺少语句 \www\home.asp, line 104 -------------------------------------------------------------------------------- Host by NetBox Version 2.8 Build 4128 网站首页是home.asp 如下==========================请告诉要怎么修改??? 谢谢 <% Session("Page")="home" Session("Top")="English" %> <!--#include File="Top.inc"--> <% Set conn = Server.CreateObject("ADODB.Connection") conn.Open Driver & SourceType & SourceDB Set RSnw = Server.CreateObject("ADODB.RecordSet") nwSQL="Select * From news_run.dbf where nr_ifon='琌'" RSnw.Open nwSQL ,conn ,1 ,1 i=0 news_run="" If NOT RSnw.EOF Then RSnw.MoveFirst Do While NOT RSnw.EOF nr_econt=Trim(RSnw("nr_econt")) nr_link=Trim(RSnw("nr_link")) news_run=news_run & "" & " <a href=' " & nr_link & " '>" & nr_econt & " </a>" i=i+1 RSnw.MoveNext Loop End If RSnw.Close : Set RSnw=Nothing : conn.Close : Set conn=Nothing %> <% dateline=(Year(date)-2004)*372+Month(date)*31+Day(date) Set conn = Server.CreateObject("ADODB.Connection") conn.Open Driver & SourceType & SourceDB Set RSnw = Server.CreateObject("ADODB.RecordSet") nwSQL="Select * From news_area.dbf where na_ifon='琌' And ((Year(na_date)-2004)*372)+(Month(na_date)*31)+Day(na_date)>="&dateline&" Order by na_date Desc,na_no" RSnw.Open nwSQL ,conn ,1 ,1 i=0 tableListNA="" If NOT RSnw.EOF Then RSnw.MoveFirst Do While NOT RSnw.EOF na_link=Trim(RSnw("na_link")) na_econt=Trim(RSnw("na_econt")) tableListNA=tableListNA & " <font size='0' color='orange'> </font> <a href=' " & na_link & " '>" & na_econt & " </a> <br>" i=i+1 RSnw.MoveNext Loop End If RSnw.Close : Set RSnw=Nothing : conn.Close : Set conn=Nothing %> <% Randomize strA="" redim NPSray(3) tableListNPS="" Set conn = Server.CreateObject("ADODB.Connection") conn.Open Driver & SourceType & SourceDB Set RSnps = Server.CreateObject("ADODB.RecordSet") npsSQL="Select * From new_products.dbf where nps_ifon='琌' Order by nps_no Desc" RSnps.Open npsSQL ,conn ,1 ,1 If NOT RSnps.EOF Then numNPS=RSnps.RecordCount max_no=CSng(Right(Trim(RSnps("nps_no")),3)) If numNPS <=3 Then RSnps.MoveFirst Do While NOT RSnps.EOF nps_no=Trim(RSnps("nps_no")) nps_name=Trim(RSnps("nps_name")) nps_photo=Trim(RSnps("nps_photo")) nps_exp=Trim(RSnps("nps_exp")) nps_csno=Trim(RSnps("nps_csno")) nps_cano=Trim(RSnps("nps_cano")) nps_pdf=Trim(RSnps("nps_pdf")) If Len(nps_exp)>60 Then nps_exp=Left(nps_exp,60) tableListNPS=tableListNPS & " <div id='newprd'> <a href='pdf/"&nps_pdf&"' target='_blank'> <img src='" & npsPhotoRoot & nps_photo & "' alt='" & nps_name & "' name='newprd1' width='90' height='90' border='0'> </a>" tableListNPS=tableListNPS & " <div id='newprdhead'> <a href='pdf/"&nps_pdf&"' target='_blank'>" & nps_name & " </a> </div>"&nps_exp&" </div>" RSnps.MoveNext Loop Else rundomNUM="[" & Round(max_no * Rnd) & "]" If rundomNUM="[0]" Then rundomNUM="[1]" For j=0 To 2 Do While Instr(1,strA,rundomNUM)>0 rundomNUM="[" & Round(max_no * Rnd) & "]" If rundomNUM="[0]" Then rundomNUM="[1]" Loop NPSray(j)=Replace(rundomNUM,"[","") NPSray(j)=Replace(NPSray(j),"]","") NPSray(j)="nps" & Right(CSng(NPSray(j))+1000,3) strA=strA & rundomNUM Next For k=0 To 2 Set RSnps = Server.CreateObject("ADODB.RecordSet") nps_no=NPSray(k) npsSQL="Select * From new_products.dbf where nps_ifon='琌' And nps_no='"&nps_no&"'" RSnps.Open npsSQL ,conn ,1 ,1 If NOT RSnps.EOF Then nps_name=Trim(RSnps("nps_name")) nps_photo=Trim(RSnps("nps_photo")) nps_exp=Trim(RSnps("nps_exp")) nps_csno=Trim(RSnps("nps_csno")) nps_cano=Trim(RSnps("nps_cano")) nps_pdf=Trim(RSnps("nps_pdf")) If Len(nps_exp)>60 Then nps_exp=Left(nps_exp,60) tableListNPS=tableListNPS & " <div id='newprd'> <a href='pdf/"&nps_pdf&"' target='_blank'> <img src='" & npsPhotoRoot & nps_photo & "' alt='" & nps_name & "' name='newprd1' width='90' height='90' border='0'> </a>" tableListNPS=tableListNPS & " <div id='newprdhead'> <a href='pdf/"&nps_pdf&"' target='_blank'>" & nps_name & " </a> </div>"&nps_exp&" </div>" If k=2 Then tableListNPS=tableListNPS & " <div id='more2'> <a href='newsprd.asp'> <img src='images/icon_li.gif' alt='>>' width='6' height='5' border='0'> more.. </a> </div>" //tableListNPS=tableListNPS & " </div>" End If Next End If End If RSnps.Close : Set RSnps=Nothing : conn.Close : Set conn=Nothing %> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-2977683-1"; urchinTracker(); </script> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="490" height="235"> <param name="movie" value="home.swf"> <param name=quality value=high> <param name="WMODE" value="transparent"> <embed src="home.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="490" height="235"> </embed> </object> </td> <td> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="260" height="235"> <param name="movie" value="home2.swf"> <param name=quality value=high> <param name="WMODE" value="transparent"> <embed src="home2.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="260" height="235"> </embed> </object> </td> </tr> </table> <div id="homecontent"> <div id="news"> <div id="newshead"> <strong>HOT </strong> NEWS </div> <div id="marquee"> <marquee behavior="scroll" direction=left scrollamount=2 onmouseover="this.stop();" onmouseout="this.start();"> <%=news_run%> </marquee> </div> <div id="newslist"> <marquee direction="up" height="50" scrollamount=1 onmouseover="this.stop();" onmouseout="this.start();"> <%=tableListNA%> </marquee> </div> <div id="more"> <a href="news.asp"> <img src="images/icon_li.gif" alt=">>" width="6" height="5" border="0"> more.. </a> </div> <br> <br> </div> <div id="newsprdfield"> <%=tableListNPS%> <!-- <div id="newprd"> <a href="#"> <img src="123.gif" alt="New Product 1" name="newprd1" width="90" height="90" border="0"> </a> <div id="newprdhead"> <a href="#">Prduct name 1 </a> </div>product detail goes here product detail goes </div> <div id="newprd"> <a href="#"> <img src="123.gif" alt="New Product 1" name="newprd1" width="90" height="90" border="0"> </a> <div id="newprdhead"> <a href="#">Prduct name 2 </a> </div>product detail goes here product detail goes </div> <div id="newprd"> <a href="#"> <img src="123.gif" alt="New Product 1" name="newprd1" width="90" height="90" border="0"> </a> <div id="newprdhead"> <a href="#">Prduct name 3 </a> </div>product detail goes here product detail goes </div> </div> --> </div> </div> </div> <!--#include File="Bottom.inc"-->
修改
删除
举报
引用
回复