当前位置:首页>维修大全>综合>

ASP编程常用的代码(ASP编程教学)

ASP编程常用的代码(ASP编程教学)

更新时间:2024-12-05 08:43:25

ASP编程常用的代码

一些ASP初学者常用的代码

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 >

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

<script language="javascript">

<!--

<!-- 注意更改文件所在路径-->

window.open('http://www.gbunix.com",'','height=200,width=300,top=0,left=30');

// -->

</script>

6.随机数:

<%randomize%>

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

N为可改变数

7.向上混动代码:

<marquee direction="up" scrolldelay="200" scrollamount="2" width="206"

height="207" bgcolor="#FFFF00">Unix中文站</marquee>

更多栏目