| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1083 人关注过本帖
标题:如何实现你现在位于XX 位置?????
只看楼主 加入收藏
狼轩
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2004-7-4
收藏
 问题点数:0 回复次数:1 
如何实现你现在位于XX 位置?????

如何实现你现在位于XX 位置?????

以下是js程序接口:

function code_html(vars,chtype,cutenum) { if (vars==null || vars=="") { return(""); } var strer=vars; //strer=health_var(strer,1) if (cutenum>0) { strer=cuted(strer,cutenum); } // / &#47; if (chtype>10) { strer=strer.replace(/\'/gi,"\'") //μ¥òyo?&#39; strer=strer.replace(/\"/gi,"\"") //??òyo?&#34; } else { strer=strer.replace(/</gi,"&lt;") //&#60; strer=strer.replace(/>/gi,"&gt;") //&#62; strer=strer.replace(/\'/gi,"&#39;") //μ¥òyo?&#39; strer=strer.replace(/\"/gi,"&quot;") //??òyo?&#34; strer=strer.replace(/ /gi,"&nbsp;") //???? } switch (chtype) { case 1,11: strer=strer.replace(/\r/gi,"") //table strer=strer.replace(/\n/gi,"") //??3μ case 2,22: strer=strer.replace(/\r/gi,"") //table strer=strer.replace(/\n/gi,"<br>") //??3μ } return(strer); }

function web_head(var3,index_url) { document.write ("<table border=0 cellpadding=0 cellspacing=0 width='98%' align=center>"); document.write ("<tr><td align=left height=30 width='80%'>"); document.write ("您现在位于:&nbsp;<a href='./'>首页</a>&nbsp;→&nbsp;"); if (tit_fir=="") { document.write ( "<font title='"+code_html(tit,1,0)+"'>"+code_html(tit,1,30)+"</font>" ); } else { document.write ("<a href='"+index_url+".asp'>"+tit_fir+"</a>&nbsp;→&nbsp;<font title='"+code_html(tit,1,0)+"'>"+code_html(tit,1,12)+"</font>" ); } document.write ("</td><td width='20%' align=right>"); document.write ("</td></tr></table>"); }

现在问题是:如何用asp取得当前URL地址。传递index_url地tut_fir 这两个变量。。。。。。。。。。。。。。。。。。。。。

搜索更多相关主题的帖子: 位置 
2004-07-04 16:59
griefforyou
Rank: 6Rank: 6
等 级:贵宾
威 望:27
帖 子:3336
专家分:0
注 册:2004-4-15
收藏
得分:0 

request.ServerVariables("HTTP_HOST")

request.ServerVariables("SERVER_NAME")

request.ServerVariables("SCRIPT_NAME")

看看这几个值

[此贴子已经被作者于2004-07-04 22:22:41编辑过]


天津网站建设 http://www./
2004-07-04 22:21
快速回复:如何实现你现在位于XX 位置?????
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014339 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved