网页跳转代码几个常用的网页跳转图片跳转自动跳转页面代码分享

网页跳转代码几个常用的网页跳转图片跳转自动跳转页面代码分享插图

这里就是整理下自己常用的一个跳转代码,喜欢的话就收藏哈

域名页面显示几秒钟之后跳转

可以在html代码的部分加上这样的域名跳转代码:

<strong><</strong>meta http-equiv="refresh" content="3; url=http://将这里改成要跳转的域名";<strong>></strong>

不隐藏域名跳转之后的地址

<strong><</strong>html<strong>></strong> <strong><</strong>body<strong>></strong> <strong><</strong>meta http-equiv="refresh" content="0.1;url=将这里改成要跳转的域名"<strong>></strong> <strong><</strong>/body<strong>></strong> <strong><</strong>/html<strong>></strong>

可隐藏域名跳转之后的地址

<strong><</strong>html<strong>></strong> <strong><</strong>frameset framespacing="0" border="0" rows="0" frameborder="0"<strong>></strong> <strong><</strong>frame name="main" src="将这里改成要跳转的域名" scrolling="auto" noresize<strong>></strong> <strong><</strong>/frameset<strong>></strong> <strong><</strong>/html<strong>></strong>

定时的域名跳转代码

<strong><</strong>meta http-equiv="refresh" content="3;rul=http://将这里改成要跳转的域名";<strong>></strong>

此代码可以让网页在一定的时间内,跳转到另外一个网页上,其中content=” 为跳转前停暂的秒数,rul= 为跳转的域名

域名要在客户端跳转,可以这样

<strong><</strong>script language="javascript" type="text/javascript"<strong>></strong>window.location="http://将这里改成要跳转的域名";;<strong><</strong>/script<strong>></strong>

域名在服务器端跳转

Response.Redirect<strong>(</strong>http://将这里改成要跳转的域名)Response.End

图片跳转代码

<strong><</strong>a href="将这里改成要跳转的域名" target="_blank"<strong>><</strong>img src="图片跳转" style="width:100%"<strong>><</strong>/a<strong>></strong>
------本页内容已结束,喜欢请分享------

感谢您的来访,获取更多精彩文章请收藏本站。

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 共1条

请登录后发表评论

    • Austin的头像-薄荷云博客钻石会员Austin徽章-2020年人气明星-薄荷云博客等级-LV10-薄荷云博客作者0