首页 > 开发 > Asp > 正文

推荐:ASP初学者常用源代码总结篇_ASP教程

2020-04-06 21:24:28
字体:
来源:转载
供稿:网友

推荐:ASP编程中15个非常有用的例子
1.如何用Asp判断你的网站的虚拟物理路径答:使用Mappath方法 以下为引用的内容: <p align="center"><font size="4

1.获得系统时间

  <%=now()%>

2.取得来访用的IP

  <%=request.serverVariables("remote_host")%>

3.获得系统,浏览器版本

  <script>
  window.document.write("版本:" navigator.appName navigator.appVersion " browser.")
  </script>

4.去除IE混动条: 

  <body scroll="no">
  或
  <body style="overflow-y:hidden">

5.进入网站,跳出广告:  

  <script language="javascript">
  <!--
  <!-- 注意更改文件所在路径-->
  window.open('http://www.XXXXXX.com','','height=200,width=300,top=0,left=30');
  // -->
  </script>

6.随机数: 

  <%randomize%>
  <%=(int(rnd()*n) 1)%>

N为可改变数

7.向上混动代码: 

  <marquee direction="up" scrolldelay="200" style="font-size: 9pt; color: #FF0000; line-height: 150%; font-style:italic; font-weight:bold" scrollamount="2" width="206" height="207" bgcolor="#FFFF00">hhhhhhhhhhhhhhhhhhh</marquee>

分享:asp当中判断函数一览
最新的WEB源码下载,马上去看看... 商业源码热门下载www.chinaz.com<1>IsArray 函数 返回 Boolean 值指明某变量是否为数组。 语法 IsArray(varname) varname 参数可以是任意变量

共5页上一页12345下一页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表