云水论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 4092|回复: 1
打印 上一主题 下一主题

网页跳转代码大全(资料)

[复制链接]

1788

主题

62

好友

8525

积分

管理员

Rank: 9Rank: 9Rank: 9

跳转到指定楼层
楼主
发表于 2009-4-5 10:10:05 |只看该作者 |倒序浏览
 

<meta http-equiv="refresh" c>

x 是跳转时间,可自己设定.

------------------------------------------------------------------------------
不隐藏转向之后的地址 代码一
------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Language" c>
<meta HTTP-EQUIV="Content-Type" C>
<title></title>
</head>
<body>
<form name=loading>
<P align=center><FONT face=Arial color=#0066ff size=2>loading...</FONT> <INPUT
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: bolder; PADDING-BOTTOM: 0px; COLOR: #0066ff; BORDER-TOP-style: none; PADDING-TOP: 0px; FONT-FAMILY: Arial; BORDER-RIGHT-style: none; BORDER-LEFT-style: none; BACKGROUND-COLOR: white; BORDER-BOTTOM-style: none"
size=46 name=chart> <BR><INPUT
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; COLOR: #0066ff; BORDER-BOTTOM: medium none; TEXT-ALIGN: center"
size=47 name=percent>
<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()",100);}
else
{window.location = "将这里改成要转入的网址";}
}</SCRIPT>
</P></form>
</body>
</html>
-------------------------------------------------------------------------------

不隐藏转向之后的地址 代码二
-------------------------------------------------------------------------------
<html>
<body>
<script language="javascript">
<!--
function goToURL() { //v2.0
for (var i=0; i< (goToURL.arguments.length - 1); i =2) //with arg pairs
eval(goToURL.arguments ".location='" goToURL.arguments[i 1] "'");
document.returnvalue = false;
}
//-->
</script>
<body bgcolor="#FFFFFF" >
</body>
</html>
-
------------------------------------------------------------------------------

不隐藏转向之后的地址 代码三
-------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Language" c>
<meta HTTP-EQUIV="Content-Type" C>
<title></title>
</head>
<SCRIPT LANGUAGE="javascript">
<!-- Start Code
var ver = navigator.appVersion;
if (ver.indexOf("MSIE") != -1)
{
window.location.href="将这里改成要转入的网址"
}else
window.location.href="将这里改成要转入的网址"
// End Code -->
</SCRIPT>
</html>
-------------------------------------------------------------------------------

不隐藏转向之后的地址 代码四
-------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Language" c>
<meta HTTP-EQUIV="Content-Type" C>
<title></title>
</head>
<body>
<meta http-equiv="refresh" c>
</body>
</html>
-------------------------------------------------------------------------------

可隐藏转向之后的地址
-------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Language" c>
<meta HTTP-EQUIV="Content-Type" C>
<title></title>
</head>
<frameset framespacing="0" border="0" rows="0" frameborder="0">
<frame name="main" src="将这里改成要转入的网址" scrolling="auto" noresize>
</frameset>
</html>
透明Flash的设置

主要是在Flash代码段中插入这一语句:<param name=wmode value=transparent>,请看以下实例:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">
<param name="movie" value="../images/hudie.swf">
<param name="quality" value="high">
<param name=wmode value=transparent> <!--这个代码表示背景透明--!>
<embed src="../images/hudie.swf" width="100%" height="100%" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>

  你的沉默明亮如灯、简单如指环。

  论坛其他名字 【云水.墨】 【淡墨瀑雪】
回复

使用道具 举报

1788

主题

62

好友

8525

积分

管理员

Rank: 9Rank: 9Rank: 9

沙发
发表于 2009-4-5 11:14:44 |只看该作者
方案一

<html>
<head>
<meta http-equiv="Content-Language" c>
<meta HTTP-EQUIV="Content-Type" C>
<meta http-equiv="refresh" chttp://www.dreamershop.com/" target=_blank>http://www.dreamershop.com">
<title></title>
</head>
<body>
</body>
</html>

方案二

<html>
<head>

<meta http-equiv="Content-Type" c>
<title>正在进入</title>
</head>
<body>
<form name=loading>
<p align=center> <font color="#0066ff" size="2">正在进入,请稍等</font><font color="#0066ff" size="2" face="Arial">...</font>
<input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:#0066ff; background-color:#fef4d9; padding:0px; border-style:none;">

<input type=text name=percent size=47 style="color:#0066ff; 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()",100);}
else
{window.location = "http://www.dreamershop.com";}
}</script>
</p>
</form>
<p align="center"> 如果您的浏览器不支持跳转,<a style="text-decoration: none" href="http://www.dreamershop.com"><font color="#FF0000">请点这里</font></a>.</p>
</body>
</html>
  你的沉默明亮如灯、简单如指环。

  论坛其他名字 【云水.墨】 【淡墨瀑雪】
回复

使用道具 举报

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

Archiver|手机版|云水网 ( 鲁ICP备09069806号 )

GMT+8, 2025-5-2 19:34 , Processed in 0.061925 second(s), 18 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部