var url = location.href; switch(url) {   case "http://ch…">
当前位置:首页 > Html

根据域名判断网址跳转

happyfhb13年前 (2014-03-10)Html2711
摘要:<script type="text/javascript"> var url = location.href; switch(url) {   case "http://ch…
<script type="text/javascript">
var url = location.href;

switch(url)
{
  case "http://chaxun.toothbest.com/":
		{
		  window.location.href='http://chaxun.toothbest.com/yabaile/search.aspx';
		}
		break;
  case "http://chaxun.longxingyc.cn/":
		{
		  window.location.href='http://chaxun.longxingyc.cn/longxing/search.aspx';
		}
		break;
  case "http://chaxun.zyyc88.com/":
		{
		  window.location.href='http://chaxun.zyyc88.com/zhuoyue/index.aspx';
		}
		break;

		default:
		{
	
		}
	}
</script>


扫描二维码推送至手机访问。

版权声明:本文由海海日记-冯海滨博客发布,如需转载请注明出处。

本文链接:http://www.fenghaibin.com/?id=1145

“根据域名判断网址跳转” 的相关文章

JQuery获取DIV高度

 $("#content").height();$("#content").innerHeight();//元素内部区域高度,忽略padding、border$("#content").outerHeight();//忽略边框$(…

推荐一个网页入门学习的好网站

 http://www.monmonkey.com非常不错,我认为非常适合新手。…

C#处理html工具

C#处理html工具

 csdn下载的免费提供给大家。C#处理html工具.zip …

网页宽度自动适应手机屏幕宽度的方法

<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0,…

图片超出固定高度后自动等比例缩小js

<script type="text/javascript">  window.onload=function(){     var myimg,oldwidth,oldheight;…

js重复执行某段代码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/x…

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。