首页 新闻 会员 周边

网址中自动加入的?bhcp=1是怎么回事呢?

0
悬赏园豆:200 [已关闭问题]
<P>访问很多网站都有这个情况,输入<A href="http://www.xxx.com">www.xxx.com</A></P> <P>自动跳转到了<A href="http://www.xxx.com?bhcp=1">www.xxx.com?bhcp=1</A></P> <P>例如这个:<A href="http://www.thomasglobal.com/Default.asp">http://www.thomasglobal.com/Default.asp</A></P>
charlie的主页 charlie | 初学一级 | 园豆:4
提问于:2008-07-10 15:03
< >
分享
其他回答(3)
0
lz真是有心人啊:) 应该是默认情况下参数吧。 至于bhcp,不知道代表什么,如果很多网站都用的话,应该代表某一特定的变量
麒麟.NET | 园豆:3614 (老鸟四级) | 2008-07-10 15:57
0
是因为这个default.asp页面中做了转向;你可以用vs 2005打开这个http://www.thomasglobal.com/Default.asp 地址就会看到下面内容。可以看到用js做了转向 [code] <HTML xmlns:BHAWK><HEAD><STYLE>@media all { BHAWK\:clientCaps {behavior:url(#default#clientcaps)} }</STYLE> <!-- These scripts are provided under the terms of the BrowserHawk license agreement and may not be copied or used otherwise. [9, 0, 0, 20 Enterprise; BDD ver: 9.00] See cyscape.com for details. Copyright (C) 1999-2005 cyScape, Inc. All rights reserved. --> <noscript><meta http-equiv="refresh" content="0; url=/Default.asp?bhjs=0"><a href="/Default.asp?bhjs=-1">Please click here to continue</a></noscript> <script language="JavaScript"> <!-- function bhawkGetVer(id) { var bha = ""; try {bha = document.all("caps").getComponentVersion(id, "ComponentID");} catch (e) {} return bha; } // --> </script> <script language="JavaScript"> <!-- function bhawkTest() { var hashIndex = self.location.href.indexOf("#"); if (hashIndex == -1) { hash = ""; } else { hash = self.location.href.substring(hashIndex); } var rs = "bhjs=1"; if (document.cookie.indexOf("bhCookieSess=1") != -1) { document.cookie = "bhResults="+rs+"; path=/"; document.cookie = "bhPrevResults="+rs+"; path=/"; if (document.cookie.indexOf("bhResults") != -1) self.location.replace("/Default.asp?bhcp=1"+hash); else self.location.replace("/Default.asp?"+rs+"&bhqs=1"+hash); } else self.location.replace("/Default.asp?"+rs+"&bhqs=1"+hash); } // --> </script> <title></title></head> <noscript><body onLoad="bhawkTest();"></noscript> <script>document.write('<body onLoad="bhawkTest();">');</script> <BHAWK:clientCaps ID="caps" /> </body></html> [/code]
玉开 | 园豆:8822 (大侠五级) | 2008-07-10 16:59
0
我估计这种转向有两种可能,一种是适应不同分辨率的用户;还有一种可能是为了保证网页可以在不同的浏览器里显示而做的转向吧?
金鱼 | 园豆:1090 (小虾三级) | 2008-07-10 21:46
0
是用来将对cookie操作得到的结果通过GET方式传给服务器吧
西安小柯 | 园豆:205 (菜鸟二级) | 2008-07-11 14:21
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册