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

根据域名判断网址跳转

happyfhb13年前 (2014-03-10)Html2614
摘要:<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();//忽略边框$(…

C#处理html工具

C#处理html工具

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

强制页面运行于IE8模式下

 突然发现IE8不能使用querySelectorAll,实在拿IE没办法,只好用以下手段强制使用IE8模式,于是选择器终于回到正轨。<meta http-equiv="X-UA-Compatible" content="IE=8" /> 注意,它是不能通过编程方式实…

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

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

textarea 中的换行符

<textarea >'----'+&#13;&#10;+'---'</textarea> <SCRIPT LANGUAGE="JavaScript"> <!--…

发表评论

访客

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