[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
回复 10# wanghan519


      ASP还不太熟悉,刚开始还似乎成功了,但网页从XML获取的资源显示中文的全是乱码,几经修改反而出500错误了,完全搞不定了,似乎ASP比HTML简约多了,求高手解决一下,谢谢,网页http://chren.web3v.vip/st/index.asp?k=1

TOP

呃,把你的index.asp贴出来,服务器端的东西,客户端又看不到

TOP

回复 16# 447219071


     中文乱码需要在asp开头加上<%@ Language="VBScript" CodePage=65001 %>,文件需要保存成utf-8

但asp不一定是好选择,asp classic太旧了,.net用的人又很少,它的好处是和office那一套配合很好,用起来也基本一致;
js可以发请求再解析xml获取数据,但更多网站需要从数据库取数据,浏览器里的js不太合适;
php是目前最多网站所采用的,但找工作还是java后端养活了最多的人。。。

也就是说花精力学asp或php不太划算,不过这种动态网页,需要个简单的后端语言,再加上这个服务器的支持,好像只能选php或asp了,php强一点asp简单一点

TOP

一个贴不下,分成2个回复才成
  1. <%
  2. k = Request.QueryString("k")
  3. xmlFile = Server.MapPath(k & ".xml")
  4. Set MyFile = fso.CreateTextFile(xmlfile,True,-1)
  5. Set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")
  6. XmlDom.load(Server.mappath(xmlFile))
  7. a1 = xmlDoc.getElementsByTagName("a1")(0).text
  8. a2 = xmlDoc.getElementsByTagName("a2")(0).text
  9. a3 = xmlDoc.getElementsByTagName("a3")(0).text
  10. a4 = xmlDoc.getElementsByTagName("a4")(0).text
  11. a5 = xmlDoc.getElementsByTagName("a5")(0).text
  12. a6 = xmlDoc.getElementsByTagName("a6")(0).text
  13. a7 = xmlDoc.getElementsByTagName("a7")(0).text
  14. a8 = xmlDoc.getElementsByTagName("a8")(0).text
  15. a9 = xmlDoc.getElementsByTagName("a9")(0).text
  16. a10 = xmlDoc.getElementsByTagName("a10")(0).text
  17. a11 = xmlDoc.getElementsByTagName("a11")(0).text
  18. a12 = xmlDoc.getElementsByTagName("a12")(0).text
  19. a13 = xmlDoc.getElementsByTagName("a13")(0).text
  20. a14 = xmlDoc.getElementsByTagName("a14")(0).text
  21. a15 = xmlDoc.getElementsByTagName("a15")(0).text
  22. a16 = xmlDoc.getElementsByTagName("a16")(0).text
  23. a17 = xmlDoc.getElementsByTagName("a17")(0).text
  24. a18 = xmlDoc.getElementsByTagName("a18")(0).text
  25. a19 = xmlDoc.getElementsByTagName("a19")(0).text
  26. a20 = xmlDoc.getElementsByTagName("a20")(0).text
  27. a21 = xmlDoc.getElementsByTagName("a21")(0).text
  28. a22 = xmlDoc.getElementsByTagName("a22")(0).text
  29. a23 = xmlDoc.getElementsByTagName("a23")(0).text
  30. a24 = xmlDoc.getElementsByTagName("a24")(0).text
  31. a25 = xmlDoc.getElementsByTagName("a25")(0).text
  32. a26 = xmlDoc.getElementsByTagName("a26")(0).text
  33. a27 = xmlDoc.getElementsByTagName("a27")(0).text
  34. a28 = xmlDoc.getElementsByTagName("a28")(0).text
  35. a29 = xmlDoc.getElementsByTagName("a29")(0).text
  36. a30 = xmlDoc.getElementsByTagName("a30")(0).text
  37. a31 = xmlDoc.getElementsByTagName("a31")(0).text
  38. a32 = xmlDoc.getElementsByTagName("a32")(0).text
  39. a33 = xmlDoc.getElementsByTagName("a33")(0).text
  40. a34 = xmlDoc.getElementsByTagName("a34")(0).text
  41. a35 = xmlDoc.getElementsByTagName("a35")(0).text
  42. a36 = xmlDoc.getElementsByTagName("a36")(0).text
  43. a37 = xmlDoc.getElementsByTagName("a37")(0).text
  44. a38 = xmlDoc.getElementsByTagName("a38")(0).text
  45. a39 = xmlDoc.getElementsByTagName("a39")(0).text
  46. a40 = xmlDoc.getElementsByTagName("a40")(0).text
  47. a41 = xmlDoc.getElementsByTagName("a41")(0).text
  48. a42 = xmlDoc.getElementsByTagName("a42")(0).text
  49. a43 = xmlDoc.getElementsByTagName("a43")(0).text
  50. a44 = xmlDoc.getElementsByTagName("a44")(0).text
  51. a45 = xmlDoc.getElementsByTagName("a45")(0).text
  52. a46 = xmlDoc.getElementsByTagName("a46")(0).text
  53. a47 = xmlDoc.getElementsByTagName("a47")(0).text
  54. a48 = xmlDoc.getElementsByTagName("a48")(0).text
  55. a49 = xmlDoc.getElementsByTagName("a49")(0).text
  56. a50 = xmlDoc.getElementsByTagName("a50")(0).text
  57. a51 = xmlDoc.getElementsByTagName("a51")(0).text
  58. a52 = xmlDoc.getElementsByTagName("a52")(0).text
  59. a53 = xmlDoc.getElementsByTagName("a53")(0).text
  60. a54 = xmlDoc.getElementsByTagName("a54")(0).text
  61. a55 = xmlDoc.getElementsByTagName("a55")(0).text
  62. a56 = xmlDoc.getElementsByTagName("a56")(0).text
  63. a57 = xmlDoc.getElementsByTagName("a57")(0).text
  64. a58 = xmlDoc.getElementsByTagName("a58")(0).text
  65. a59 = xmlDoc.getElementsByTagName("a59")(0).text
  66. a60 = xmlDoc.getElementsByTagName("a60")(0).text
  67. a61 = xmlDoc.getElementsByTagName("a61")(0).text
  68. a62 = xmlDoc.getElementsByTagName("a62")(0).text
  69. a63 = xmlDoc.getElementsByTagName("a63")(0).text
  70. a64 = xmlDoc.getElementsByTagName("a64")(0).text
  71. a65 = xmlDoc.getElementsByTagName("a65")(0).text
  72. a66 = xmlDoc.getElementsByTagName("a66")(0).text
  73. a67 = xmlDoc.getElementsByTagName("a67")(0).text
  74. a68 = xmlDoc.getElementsByTagName("a68")(0).text
  75. %>
  76. <!DOCTYPE html>
  77. <html lang="en">
  78. <head>
  79. <meta charset="UTF-8">
  80. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  81. <meta name="viewport" content="width=device-width, initial-scale=1">
  82. <title>我的简历</title>
  83. <meta name="description" content="个人简历描述">
  84. <meta name="keywords" content="关键词" />
  85. <!-- Favicons -->
  86. <link rel="shortcut icon" href="img/favicon_jianli.ico" type="image/x-icon">
  87. <!-- Bootstrap -->
  88. <link rel="stylesheet" type="text/css" href="css/bootstrap.css">
  89. <link rel="stylesheet" type="text/css" href="fonts/font-awesome/css/font-awesome.css">
  90. <!-- Slider -->
  91. <link href="css/owl.carousel.css" rel="stylesheet" media="screen">
  92. <link href="css/owl.theme.css" rel="stylesheet" media="screen">
  93. <!-- Stylesheet -->
  94. <link rel="stylesheet" type="text/css" href="css/style.css">
  95. <link rel="stylesheet" type="text/css" href="css/prettyPhoto.css">
  96. <link rel="stylesheet" type="text/css" href="fonts/sns_fonts/iconfont.css">
  97. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  98. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  99. <!--[if lt IE 9]>
  100. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  101. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  102. <![endif]-->
  103. </head>
  104. <body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
  105. <!-- Navigation -->
  106. <nav class="navbar navbar-custom navbar-fixed-top" role="navigation">
  107. <div class="container">
  108. <div class="navbar-header">
  109. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse">
  110. <i class="fa fa-bars"></i>
  111. </button>
  112. <a class="navbar-brand page-scroll" href="#page-top"><i class="fa fa-terminal"></i>我的简历</a>
  113. </div>
  114. <!-- Collect the nav links, forms, and other content for toggling -->
  115. <div class="collapse navbar-collapse navbar-right navbar-main-collapse">
  116. <ul class="nav navbar-nav">
  117. <!-- Hidden li included to remove active class from about link when scrolled up past about section -->
  118. <li class="hidden">
  119. <a href="#page-top"></a>
  120. </li>
  121. <li>
  122. <a class="page-scroll" href="#services">基本资料</a>
  123. </li>
  124. <li>
  125. <a class="page-scroll" href="#works">个人随拍</a>
  126. </li>
  127. <li>
  128. <a class="page-scroll" href="#about">专业技能</a>
  129. </li>
  130. <li>
  131. <a class="page-scroll" href="#team">个人经历</a>
  132. </li>
  133. <li>
  134. <a class="page-scroll" href="#testimonials">自我评价</a>
  135. </li>
  136. <li>
  137. <a class="page-scroll" href="#contact">联系方式</a>
  138. </li>
  139. </ul>
  140. </div>
  141. <!-- /.navbar-collapse -->
  142. </div>
  143. <!-- /.container -->
  144. </nav>
  145. <!-- Header -->
  146. <header class="intro">
  147. <div class="intro-body">
  148. <div class="container">
  149. <div class="row">
  150. <div class="col-md-8 col-md-offset-2">
  151. <h1>简历<span class="brand-heading">-我的简历</span></h1>
  152. <p class="intro-text">喜欢技术,热爱挑战</p>
  153. <a href="#services" class="btn btn-circle page-scroll">
  154. <i class="fa fa-angle-double-down animated"></i>
  155. </a>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. </header>
  161. <div class="copyrights">Copyright &copy; 2023 诚信图文广告中心&emsp;QQ:447219071&emsp;<a href='weixin://contacts/profile/chengxing880405' target='_blank' title="点此加微信好友">我也想建个这样的小站</a></div>
  162. <!-- Services Section -->
  163. <div id="services" class="text-center">
  164. <div class="container">
  165. <div class="section-title center">
  166. <h2>基本<strong>资料</strong></h2>
  167. <hr>
  168. </div>
  169. <div class="space"></div>
  170. <div class="row">
  171. <div class="col-md-3 col-sm-6 service"><i class="fa fa-laptop"></i>
  172. <h4><strong>个人信息</strong></h4>
  173. <p>
  174. <%=a1%></br>
  175. 年龄: <%=a2%> 籍贯:<%=a3%>
  176. </p>
  177. </div>
  178. <div class="col-md-3 col-sm-6 service"><i class="fa fa-code"></i>
  179. <h4><strong>专业学历</strong></h4>
  180. <p>
  181. <%=a4%></br>
  182. <%=a5%></br>
  183. </p>
  184. </div>
  185. <div class="col-md-3 col-sm-6 service"><i class="fa fa-rocket"></i>
  186. <h4><strong>毕业学校</strong></h4>
  187. <p>
  188. 毕业学校:<%=a6%></br>
  189. 学习技能:<%=a7%>
  190. </p>
  191. </div>
  192. <div class="col-md-3 col-sm-6 service"><i class="fa fa-bullseye"></i>
  193. <h4><strong>联系方式</strong></h4>
  194. <p><%=a8%></br>
  195. <%=a9%></p>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. <!-- Portfolio Section -->
  201. <div id="works">
  202. <div class="container"><!-- Container -->
  203. <div class="section-title text-center center">
  204. <h2>个人<strong>随拍</strong></h2>
  205. <hr>
  206. <div class="clearfix"></div>
  207. <p><%=a10%></p>
  208. </br>
  209. </div>
  210. </div>
  211. <div class="row">
  212. <div class="portfolio-items">
  213. <div class="col-sm-6 col-md-3 col-lg-3 web">
  214. <div class="portfolio-item">
  215. <div class="hover-bg">
  216. <div class="hover-text">
  217. <h4><a href='<%=a11%>' target='_blank' ><%=a12%></a></h4>
  218. <small><%=a13%></small>
  219. <div class="clearfix"></div>
  220. <i class="fa fa-search"></i></div>
  221. <img src="<%=a14%>" class="img-responsive" ></div>
  222. </div>
  223. </div>
  224. <div class="col-sm-6 col-md-3 col-lg-3 web">
  225. <div class="portfolio-item">
  226. <div class="hover-bg">
  227. <div class="hover-text">
  228. <h4><a href="<%=a15%>" target='_blank'><%=a16%></a></h4>
  229. <small><%=a17%></small>
  230. <div class="clearfix"></div>
  231. <i class="fa fa-search"></i></div>
  232. <img src="<%=a18%>" class="img-responsive"></div>
  233. </div>
  234. </div>
复制代码

TOP

<div class="col-sm-6 col-md-3 col-lg-3 web">
<div class="portfolio-item">
<div class="hover-bg">
<div class="hover-text">
<h4><a href="<%=a19%>" target='_blank'><%=a20%></a></h4>
<small><%=a21%></small>
<div class="clearfix"></div>
<i class="fa fa-search"></i></div>
<img src="<%=a22%>" class="img-responsive"></div>
</div>
</div>

<div class="col-sm-6 col-md-3 col-lg-3 web">
<div class="portfolio-item">
<div class="hover-bg">
<div class="hover-text">
<h4><a href='<%=a23%>' target='_blank'><%=a24%></h4>
<small><%=a25%></small>
<div class="clearfix"></div>
<i class="fa fa-search"></i></div>
<img src="<%=a26%>" class="img-responsive"></div>
</div>
</div>
<div class="col-sm-6 col-md-3 col-lg-3 web">
<div class="portfolio-item">
<div class="hover-bg">
<div class="hover-text">
<h4><a href='<%=a27%>' target='_blank'><%=a28%></a></h4>
<small><%=a29%></small>
<div class="clearfix"></div>
<i class="fa fa-search"></i></div>
<img src="<%=a30%>" class="img-responsive">
</div>
</div>
</div>
<div class="col-sm-6 col-md-3 col-lg-3 branding">
<div class="portfolio-item">
<div class="hover-bg">
<div class="hover-text">
<h4><a href="<%=a31%>" target='_blank'><%=a32%></a></h4>
<small><%=a33%></small>
<div class="clearfix"></div>
<i class="fa fa-search"></i></div>
<img src="<%=a34%>" class="img-responsive"></div>
</div>
</div>
<div class="col-sm-6 col-md-3 col-lg-3 branding app web">
<div class="portfolio-item">
<div class="hover-bg">
<div class="hover-text">
<h4><a href="<%=a35%>" target='_blank'><%=a36%></a></h4>
<small><%=a37%></small>
<div class="clearfix"></div>
<i class="fa fa-search"></i></div>
<img src="<%=a38%>" class="img-responsive"></div>
</div>
</div>
<div class="col-sm-6 col-md-3 col-lg-3 web app">
<div class="portfolio-item">

<div class="hover-bg">
<div class="hover-text">
<h4><a href='<%=a39%>' target='_blank'><%=a40%></a></h4>
<small><%=a41%></small>
<div class="clearfix"></div>
<i class="fa fa-search"></i>
</div>
<img src="<%=a42%>" class="img-responsive">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- About Section -->
<div id="about">
<div class="container">
<div class="section-title text-center center">
<h2><strong>专业</strong> 技能</h2>
<hr>
</div>
<div class="row">
<div class="col-md-6"><img src="img/about.png" class="img-responsive"></div>
<div class="col-md-6">
<div class="about-text"><i class="fa fa-users"></i>
<div class="padding-left"><h4>个人能力</h4>
<p><%=a43%></p></div>
<i class="fa fa-magic"></i>
<div class="padding-left"><h4>个人荣誉</h4>
<p><%=a44%></p></div>
<i class="fa fa-check-square-o"></i>
<div class="padding-left"><h4>其它</h4>
<p><%=a45%></p></div>
</div>
</div>
</div>
</div>
</div>

<!-- Team Section -->
<div id="team" class="text-center">
<div class="container">
<div class="section-title center">
<h2>个人<strong>经历</strong></h2>
<hr>
<p><%=a46%></p>
</div>
<div id="row">

<div class="col-md-3 col-sm-6">
<div class="thumbnail"><img src="<%=a47%>" class="img-circle team-img">
<div class="caption">
<h3><%=a48%></h3>
<p><%=a49%></p>
<p><%=a50%></p>
</div>
</div>
</div>

<div class="col-md-3 col-sm-6">
<div class="thumbnail"><img src="<%=a51%>" class="img-circle team-img">
<div class="caption">
<h3><%=a52%></h3>
<p><%=a53%></p>
<p><%=a54%></p>
</div>
</div>
</div>



<div class="col-md-3 col-sm-6">
<div class="thumbnail"><img src="<%=a55%>"  class="img-circle team-img">
<div class="caption">
<h3><%=a56%></h3>
<p><%=a57%></p>
<p><%=a58%></p>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="thumbnail"><img src="<%=a59%>" class="img-circle team-img">
<div class="caption">
<h3><%=a60%></h3>
<p><%=a61%></p>
<p><%=a62%></p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Testimonials Section -->
<div id="testimonials" class="text-center">
<div class="container">
<div class="section-title center">
<h2>自我<strong>评价</strong></h2>
<hr>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div id="testimonial" class="owl-carousel owl-theme">
<div class="item">
<p><%=a63%></p>
</div>
<div class="item">
<p><%=a64%></p>
</div>
<div class="item">
<p><%=a65%></p>
</div>
</div>
</div>
</div>
</div>
</div>

<!-- Contact Section -->
<div id="contact" class="text-center">
<div class="container">
<div class="section-title center">
<h2><strong>联系</strong> 方式</h2>
<hr>
</div>
<div class="col-md-8 col-md-offset-2">
<div class="col-md-4"><i class="fa fa-map-marker fa-2x"></i>
<p><%=a66%></p>
</div>
<div class="col-md-4"><i class="icon iconfont"></i>
<p><%=a67%></p>
</div>
<div class="col-md-4"><i class="fa fa-phone fa-2x"></i>
<p><%=a68%></p>
</div>

<hr>
<div class="clearfix"></div>
</div>

<div class="form-group">

<p class="help-block text-danger"></p>
</div>
<div id="success"></div>
</form>
</div>
</div>
</div>
</div>
<nav id="footer">
<div class="container">
<div class="pull-left fnav">
<p>Copyright &copy; 2023 诚信图文广告中心&emsp;QQ:447219071&emsp;<a href='weixin://contacts/profile/chengxing880405' target='_blank' title="点此加微信好友">我也想建个这样的小站</a></p>
</div>
<div class="pull-right fnav">
<ul class="footer-social">
<div class="bshare-custom"><a title="分享到QQ空间" class="bshare-qzone"></a><a title="分享到新浪微博" class="bshare-sinaminiblog"></a><a title="分享到人人网" class="bshare-renren"></a><a title="分享到腾讯微博" class="bshare-qqmb"></a><a title="分享到网易微博" class="bshare-neteasemb"></a><a title="更多平台" class="bshare-more bshare-more-icon more-style-addthis"></a><span class="BSHARE_COUNT bshare-share-count">0</span></div><script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/button.js#style=-1&uuid=&pophcol=2&lang=zh"></script><a class="bshareDiv" οnclick="javascript:return false;"></a><script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script>
</ul>
</div>
</div>
</nav>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script type="text/javascript" src="js/jquery.1.11.1.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/SmoothScroll.js"></script>
<script type="text/javascript" src="js/jquery.prettyPhoto.js"></script>
<script type="text/javascript" src="js/jquery.isotope.js"></script>
<script type="text/javascript" src="js/jquery.counterup.js"></script>
<script type="text/javascript" src="js/waypoints.js"></script>
<script type="text/javascript" src="js/jqBootstrapValidation.js"></script>
<script type="text/javascript" src="js/contact_me.js"></script>
<script src="js/owl.carousel.js"></script>

<!-- Javascripts
================================================== -->
<script type="text/javascript" src="js/main.js"></script>

<script>
$(function()
{
var u = navigator.userAgent;
if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1||u.indexOf('iPhone') > -1||u.indexOf('Windows Phone') > -1||navigator.userAgent.indexOf("iPad")>-1) {
$(".hover-bg .hover-text").css({'opacity':'1'});

$(".hover-bg .hover-text>h4").css({'opacity':'1','-webkit-transform':'translateY(0)','transform':'translateY(0)'});

$(".hover-bg .hover-text>i").css({'opacity':'1'});
}

});

</script>
</body>
</html>

TOP

回复 19# 447219071
大概是(19楼代码)第四行是fso没之前没定义,是空的,作用也不明

TOP

返回列表