查看: 7147|回复: 0
打印 上一主题 下一主题

各种页面跳转特效(二)

[复制链接]
跳转到指定楼层
1#
发表于 2007-10-5 22:23:17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
台州网址导航
<script language=javascript>
function randompage(){
var randomindex=Math.floor(Math.random()*3)+1;//如果你有四个就把3改成4,如果有5个,就把3改成5
alert(randomindex);
top.location.replace('index'+randomindex+'.htm');
}
randompage()
</script>
在index1.htm,index2.htm,index3.htm,index4.htm,index5中进行随机选择的


<Script language=VBscript>
<!--
Randomize()
Myvalue = Int((2 * Rnd) + 1)
if Myvalue=1 then
window.location="http://www.1qq.cn/index.php?styleid=7"
else
window.location="http://www.1qq.cn/index.php?styleid=8"
end if
//-->
</script>

在2者中任选一个跳转。



根据用户的分辨率进行选择跳转
<html>
<head>
<title>《八○年代学生社区》欢迎您!!!</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
function redirectPage(){
var url800x600="http://100.netman.hk/bbs/index.php";
var url1024x768="http://100.netman.hk/bbs/index.php?styleid=4";
if ((screen.width==800)&&(screen.height==600))
window.location.href= url800x600;
else if ((screen.width==1024)&&(screen.height==768))
window.location.href=url1024x768;
else window.location.href=url800x600;
}
-->
</script>

</head>

<body onLoad="redirectPage()">
<script language="JavaScript" type="text/JavaScript">
<!--
var w=screen.width;
var h=screen.height;
document.write("系统已检测到您的分辨率为:");
document.write("<font size=3 color=red>");
document.write(w+"×"+h);
document.write("</font>");
document.write("正在进入页面转换,请稍候…");
//-->
</script>
<a href="http://100.netman.hk/bbs/index.php">如果您的浏览器没有自动跳转,请点击这里</a>
</body>
</html>
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖
台州维博网络(www.tzweb.com)专门运用PHP+MYSQL/ASP.NET+MSSQL技术开发网站门户平台系统等。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

网站推广
关于我们
  • 台州朗动科技(Tzweb.com)拥有多年开发网站平台系统门户手机客户端等业务的成功经验。主要从事:政企网站,系统平台,微信公众号,各类小程序,手机APP客户端,浙里办微应用,浙政钉微应用、主机域名、虚拟空间、后期维护等服务,满足不同企业公司的需求,是台州地区领先的网络技术服务商!

Hi,扫描关注我

Copyright © 2005-2026 站长论坛 All rights reserved

Powered by 站长论坛 with TZWEB Update Techonolgy Support

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