海海日记-冯海滨博客

您现在的位置是:首页 > Html > 正文

Html

根据域名判断网址跳转

happyfhb2014-03-10Html1885
<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>


平淡中储蓄成长

发表评论

评论列表

  • 这篇文章还没有收到评论,赶紧来抢沙发吧~