您当前的位置:图文娱乐站ASP专区 → 文章内容

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

作者:佚名  来源:不详  发布时间:2007-4-15 23:16:31
]

  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> 

9 7 3 12345 4 8 :
Tags:
责任编辑:阿婷
论坛】 【 】 【打印
文章评论 (评论内容只代表网友观点,与本站立场无关!)

用户名: 查看更多评论

分 值:100分 85分 70分 55分 40分 25分 10分 0分

内 容:

         (注“”为必填内容。)