无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 9538|回复: 13
打印 上一主题 下一主题

[推荐]实现网页跳转访问

[复制链接]
跳转到指定楼层
1#
发表于 2002-8-2 12:20:52 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[UploadFile=31_14.zip][这个贴子最后由wwwfox在 2002/10/03 08:20pm 编辑]

有些人想访问网站时,直接进入某个子目录中的文件,如cgi-bin/leoboard.cgi,这时,你只要写一个默认的首页文件如index.htm,内容如下,就可以实现你的要求.
方法一:
<html>
<head>
<title>网页跳转</title>
<meta http-equiv="refresh" content="0;url=cgi-bin/leoboard.cgi">
</head>
<body>
</body>
</html>
2#
 楼主| 发表于 2002-10-3 20:16:10 | 只看该作者

[推荐]实现网页跳转访问

[这个贴子最后由wwwfox在 2002/10/03 08:19pm 编辑]

如果想搞得花哨一点,可以采用如下方法:
<html>
<head>
<title>正在进入>>> Loading>>> </title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p> </p><tr> <td width=724>
<p align=center><font color="red" size="2">正在进入,请等待,谢谢......</font></p></td></tr><tr>
<td width="724">
<p align=center>
<form name=loading>
<div align=center>
<p>
<input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:rgb(124,119,119); background-color:white; padding:0px; border-style:none;">
<br> <input type=text name=percent size=46 style="color:rgb(138,134,134); text-align:center; border-width:medium; border-style:none;"><script>var bar = 0
var line = "||"
var amount ="||"
count()
function count(){
bar= bar+2
amount =amount  +  line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if (bar<99)
{setTimeout("count()",10);}
else
{window.location = "http://www.wwwfox.net/cgi-bin/leoboard.cgi";}
}</script>
</body>
</html>
回复

使用道具 举报

3#
发表于 2002-10-21 15:49:06 | 只看该作者

[推荐]实现网页跳转访问

真是好东东,谢谢了!
回复

使用道具 举报

4#
发表于 2002-11-21 16:46:35 | 只看该作者

[推荐]实现网页跳转访问

还不错噢!!
下次还有好的多来一点。
回复

使用道具 举报

5#
发表于 2002-11-22 06:52:44 | 只看该作者

[推荐]实现网页跳转访问

……
回复

使用道具 举报

6#
发表于 2002-12-12 15:48:49 | 只看该作者

[推荐]实现网页跳转访问

3Q
回复

使用道具 举报

7#
 楼主| 发表于 2003-6-8 19:19:29 | 只看该作者

[推荐]实现网页跳转访问

如果要cgi的文件,可以用以下方式:
#!/usr/bin/perl
print "Content-type:text/html\n\n";
print<<END;
<html>
<head>
<title>正在进入 http://bbs.wwwfox.net >>> Loading>>> </title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p> </p><tr> <td width=724>
<p align=center> </p>
<p align=center><b><font size="6">论坛新地址:</font><font color="red" size="6"> http://bbs.wwwfox.net
!</font></b></p>
<p align=center><b><font size="6">正在进入,请等待,谢谢......</font></b></p></td></tr><tr>
<td width="724">
<p align=center>
<form name=loading>
<div align=center>
<p>
<input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:rgb(124,119,119); background-color:white; padding:0px;
border-style:none;">
<br> <input type=text name=percent size=46 style="color:rgb(138,134,134); text-align:center; border-width:medium; border-style:none;"
><script>var bar = 0
var line = "||"
var amount ="||"
count()
function count(){
bar= bar+2
amount =amount  +  line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if (bar<99)
{setTimeout("count()",10);}
else
{window.location = "http://bbs.wwwfox.net/cgi-bin/leoboard.cgi";}
}</script>
</body>
</html>
END
exit;
回复

使用道具 举报

8#
发表于 2003-6-16 20:56:29 | 只看该作者

[推荐]实现网页跳转访问

以 htm 可以用以下方式:
<html>
<body>
<script language='javascript'>document.location= 'http://l39.net/lb5000/leoboard.cgi'</script>
</body>
</html>
以 asp  可以用以下方式:
<%
response.redirect "http://l39.net/lb5000/leoboard.cgi"
%>
回复

使用道具 举报

9#
发表于 2003-10-12 12:00:11 | 只看该作者

[推荐]实现网页跳转访问

这些都是 在哪里设置的?
回复

使用道具 举报

10#
发表于 2003-10-31 19:25:40 | 只看该作者

[推荐]实现网页跳转访问

好晕!
对我这个菜鸟来说
好难呀!
回复

使用道具 举报

11#
发表于 2003-12-18 08:37:27 | 只看该作者

[推荐]实现网页跳转访问

老大:现在有人已经把这个用到“光盘启动区”了,凡他发表过的主题一点击就进了另一个网站。建议封了他。
回复

使用道具 举报

12#
发表于 2004-2-9 09:20:56 | 只看该作者

[推荐]实现网页跳转访问

我在局域网中建成的论坛,IP地址是192.168.0.100,我想让局域网中的用户输入
http://192.168.0.100就能访问我的论坛(CGI-BIN/leoboard.cgi)那我的链接应该怎么样写.
回复

使用道具 举报

13#
发表于 2004-2-10 08:11:43 | 只看该作者

[推荐]实现网页跳转访问

在WWWROOT的目录下建一个首页INDEX.HTM
代码就是上面哪个就可以实现跳转了
回复

使用道具 举报

14#
发表于 2006-9-5 22:02:45 | 只看该作者
谁帮帮我  我以前记得在这里看到无忧老大发的  输入不同域名进行同一空间不同目录的方法。  现在找不到了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2026-3-1 20:32

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表