| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 780 人关注过本帖
标题:大虾帮我写几句代码
只看楼主 加入收藏
farly
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2005-3-9
收藏
 问题点数:0 回复次数:9 
大虾帮我写几句代码
请问出数据库中调用标题、时间、作者、内容从而使之成为一张网页的代码怎么写
也就是通常用shownews.asp?new_id=1语句调用的网页,它是怎么生成的!!
搜索更多相关主题的帖子: 代码 
2005-03-14 20:41
suyongtao
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:33
帖 子:8674
专家分:127
注 册:2004-11-6
收藏
得分:0 

面朝大海,春暖花开!
2005-03-15 09:58
suyongtao
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:33
帖 子:8674
专家分:127
注 册:2004-11-6
收藏
得分:0 

<!--#include file="conn.asp"--> <% set rs1=server.CreateObject("adodb.recordset") sql="select top 12 * from chanpin order by id desc" rs1.open sql,conn,1 %> <% dim id id=Request.QueryString("id") Set rs=Server.CreateObject("ADODB.Recordset") sql="select * from chanpin where id="& id &"" rs.open sql,conn,3,3 %> <html> <head> <title>other.jpg</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <!--Fireworks MX 2004 Dreamweaver MX 2004 target. Created Tue May 25 16:06:33 GMT+0800 2004--> <style type="text/css"> <!-- body { margin-top: 0px; } --> </style> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_goToURL() { //v3.0 var i, args=MM_goToURL.arguments; document.MM_returnValue = false; for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'"); } //--> </script>

<link href="sina.css" rel="stylesheet" type="text/css"> </head> <SCRIPT language=javascript> <!--

function check_input() { if (Frm.keyword.value=="") { alert("关键字不能为空,请重新填写!"); return false; } return true; } //--> </SCRIPT> <body bgcolor="#ffffff"> <table width="778" border="0" align="center" cellpadding="0" cellspacing="0"> <!-- fwtable fwsrc="duan.png" fwbase="other.jpg" fwstyle="Dreamweaver" fwdocid = "1016162604" fwnested="0" --> <tr> <td><img src="pic/other/spacer.gif" width="14" height="1" border="0" alt=""></td> <td><img src="pic/other/spacer.gif" width="178" height="1" border="0" alt=""></td> <td><img src="pic/other/spacer.gif" width="428" height="1" border="0" alt=""></td> <td><img src="pic/other/spacer.gif" width="144" height="1" border="0" alt=""></td> <td><img src="pic/other/spacer.gif" width="14" height="1" border="0" alt=""></td> <td><img src="pic/other/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr>

<tr> <td rowspan="7" background="pic/current/left14.jpg">&nbsp;</td> <td rowspan="4"><img name="other_r1_c2" src="pic/other/other_r1_c2.jpg" width="178" height="130" border="0" alt=""></td> <td colspan="2"><img src="pic/other/other_r1_c3.jpg" alt="" name="other_r1_c3" width="572" height="30" border="0" usemap="#other_r1_c3Map"></td> <td rowspan="7" background="pic/current/right14.jpg">&nbsp;</td> <td><img src="pic/other/spacer.gif" width="1" height="30" border="0" alt=""></td> </tr> <tr> <td colspan="2"><img name="other_r2_c3" src="pic/other/other_r2_c3.jpg" width="572" height="36" border="0" alt=""></td> <td><img src="pic/other/spacer.gif" width="1" height="36" border="0" alt=""></td> </tr> <tr> <td><img name="other_r3_c3" src="pic/other/other_r3_c3.jpg" width="428" height="24" border="0" alt=""></td> <td><img name="other_r3_c4" src="pic/other/other_r3_c4.jpg" width="144" height="24" border="0" alt=""></td> <td><img src="pic/other/spacer.gif" width="1" height="24" border="0" alt=""></td> </tr> <tr> <form name="form1" method="post" action="ceshi.asp"> <td background="pic/other/other_r4_c3.jpg"> &nbsp; 用户名: <input name="name" type="text" size="16"> 密码: <input type="password" name="password" size="16"> &nbsp; <input type="submit" name="Submit" value="提交"> &nbsp; <input type="reset" name="Submit2" onClick="MM_goToURL('parent','code/member/ok.asp');return document.MM_returnValue" value="注册"> </td> </form> <td><img src="pic/other/other_r4_c4.jpg" alt="" name="other_r4_c4" width="144" height="40" border="0" usemap="#other_r4_c4Map"></td> <td><img src="pic/other/spacer.gif" width="1" height="40" border="0" alt=""></td> </tr> <tr> <td valign="top" background="pic/current/left178.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="pic/current/menubut178.jpg" width="178" height="27"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="94" valign="top" background="pic/current/menu178.jpg"><table width="178" border="0" cellspacing="0" cellpadding="0"> <tr> <td>&nbsp;</td> <td align="center">&nbsp;</td> <td align="center"></td> <td align="left">&nbsp;</td> </tr> <% do while not rs1.eof%> <tr> <td width="28">&nbsp;</td> <td width="19" align="center"><img src="pic/current/jiantou.gif" width="7" height="5"></td> <td width="16" align="center"></td> <td width="115" align="left"><a href="showcenter.asp?id=<%=rs1("id")%>"><%=rs1("mingzi")%></a></td> </tr> <%rs1.movenext loop%> </table></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="pic/current/menudi178.jpg" width="178" height="18"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="13" background="pic/current/lw178.jpg">&nbsp;</td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="pic/current/dibian.jpg" width="178" height="23"></td> </tr> </table></td> <td colspan="2" align="left" valign="top" bgcolor="#FFFFFF"> <table width="572" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td><img src="img/line.gif" width="572" height="1"></td> </tr> </table> <table width="572" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td> <table width="50%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td><br> <form name="Frm" method="post" action="searchshow.asp" onSubmit="return check_input()"> <div align="center">产品检索 <input type="text" name="keyword" value=""> <input type="submit" name="Submit" value=" 搜 索 "> </div> </form> </td> </tr> </table> <table width="100%" border="0" cellspacing="8" cellpadding="0" align="center"> <tr valign="top"> <td width="100%"> <div align="center"> <table width="96%" border="0" cellspacing="0" cellpadding="0" align="left"> <tr> <td width="20%"><font color="#FF0000">[ 产品图片 ]<font color="#000000">:</font></font></td> <td width="80%"> <div align="center"><img src="<%=rs("tupian")%>" border="1"></div> </td> </tr> </table> </div> </td> </tr> <tr valign="middle"> <td height="20" bgcolor="#e8ecec"> <div align="center"> <table width="71%" border="0" cellspacing="0" cellpadding="0" align="left"> <tr> <td width="33%"><font color="#FF0000">[ 产品名称 ]</font>:</td> <td width="67%"> <div align="center"><b><%=rs("mingzi")%></b></div> </td> </tr> </table> </div> </td> </tr> <tr> <td height="21" bgcolor="#e8ecec"> <div align="left"><font color="#FF0000">[ 产 品 介 绍 ]</font>:</div> </td> </tr> <tr> <td><font class="pt9">&nbsp;&nbsp;&nbsp;&nbsp;<%=rs("neirong")%></font></td> </tr> <tr bgcolor="#e8ecec"> <td height="20"> <div align="left"><font color="#FF0000">[ 产 品 参 数 ]</font></div> </td> </tr> <tr> <td class="p1112"> <div align="left"> <% if rs("tupian1")="" then response.Write"" else response.Write"<img src="& rs("tupian1")&">" end if %> <font class="pt9"><%=rs("canshu")%></font> </div> </td> </tr> </table> </td> </tr> </table> <table width="572" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td><img src="img/line.gif" width="572" height="1"></td> </tr> </table> <% rs.close set rs=nothing set conn=nothing %> </td> <td><img src="pic/other/spacer.gif" width="1" height="429" border="0" alt=""></td> </tr> <tr> <td colspan="3"><img src="pic/other/other_r6_c2.jpg" alt="" name="other_r6_c2" width="750" height="55" border="0" usemap="#other_r6_c2Map"></td> <td><img src="pic/other/spacer.gif" width="1" height="55" border="0" alt=""></td> </tr> <tr> <td colspan="3" bgcolor="#E5E5E5">&nbsp;</td> <td><img src="pic/other/spacer.gif" width="1" height="45" border="0" alt=""></td> </tr> </table> <map name="other_r1_c3Map"> <area shape="rect" coords="1,2,96,31" href="index.asp"> <area shape="rect" coords="97,2,188,31" href="product.asp"> <area shape="rect" coords="188,1,287,30" href="news.asp"> <area shape="rect" coords="288,2,383,28" href="gq.asp"> <area shape="rect" coords="384,2,479,30" href="adbbs/"> <area shape="rect" coords="480,1,571,28" href="#"> </map> <map name="other_r4_c4Map"> <area shape="rect" coords="74,1,145,40" href="code/manage/index.asp"> <area shape="rect" coords="1,2,74,41" href="javascript:window.external.AddFavorite('http://www.atst.cn/','中国广告外设网')"> </map> <map name="other_r6_c2Map"> <area shape="rect" coords="196,12,255,31" href="index.asp"> <area shape="rect" coords="285,12,346,32" href="product.asp"> <area shape="rect" coords="383,11,446,31" href="news.asp"> <area shape="rect" coords="485,11,548,32" href="gq.asp"> <area shape="rect" coords="586,11,647,32" href="adbbs/"> <area shape="rect" coords="679,12,738,31" href="down.asp"> </map> </body> </html>


面朝大海,春暖花开!
2005-03-15 09:58
dkp88
Rank: 1
等 级:新手上路
帖 子:235
专家分:5
注 册:2004-10-18
收藏
得分:0 
大哥,<map>……</map>是什么意思呀,他有什么功能呀,请指教!谢~~~~~~

[此贴子已经被作者于2005-3-15 16:40:40编辑过]


学程序真有味!
2005-03-15 16:39
belin2000
Rank: 3Rank: 3
等 级:论坛游侠
威 望:5
帖 子:975
专家分:194
注 册:2004-6-2
收藏
得分:0 
MM_goToURL()  ???
dm生成的代码。。。

59ita点com(我就爱TA)
2005-03-15 17:45
farly
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2005-3-9
收藏
得分:0 
大哥,解释一下代码的含义嘛
2005-03-15 18:24
suyongtao
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:33
帖 子:8674
专家分:127
注 册:2004-11-6
收藏
得分:0 
<map>……</map>这是个热点,就是图片上的链结,呵呵,

面朝大海,春暖花开!
2005-03-15 18:35
dekhgmdn
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-3-15
收藏
得分:0 
你对你自己这么有信心,不知道你对学习的态度是怎样看待的。
2005-03-15 19:15
dekhgmdn
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-3-15
收藏
得分:0 
我不知道你编的是什么东东,能大概解释一下嘛
2005-03-15 19:22
suyongtao
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:33
帖 子:8674
专家分:127
注 册:2004-11-6
收藏
得分:0 
哪不懂??!??#$???
贴出来,,

面朝大海,春暖花开!
2005-03-16 13:37
快速回复:大虾帮我写几句代码
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.020178 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved