推荐:ASP初学者常用源代码总结篇 - asp语言 -

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

时间:2013-04-07 12:32:04   来源:   评论:加载中...   点击:加载中...
  1.获得系统时间:  <%=now()%>   2.取得来访用的IP:  <%=r...

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 十天学会ASP之第十天
下一篇:关于学习ASP和编程的28个观点
收藏 将此文推荐给朋友
分享到: