|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我想详细了解ASP整站代码与PSP整站代码有什么优缺点,那个更好,更安全,更用容易维护,和管理。。。asp+|js|客户端|显现|页面<%
bigurl="bigscreen.htm"
smallurl="smallscreen.htm"
A=LCase(Request.ServerVariables("HTTP_USER_AGENT"))
ifinstr(A,"msie5")>0orinstr(A,"msie4")>0then
%>
<scriptlanguage="JavaScript">
varw=document.body.clientWidth;
if(w>=650)
{
window.location.href="<%=bigurl%>";
}
else
{
window.location.href="<%=smallurl%>";
}
</script>
<%
elseifinstr(A,"msie3")>0then
smallurl="smallscreen.htm"
bigurl="bigscreen.htm"
a=request("http_ua_pixels")
url=smallurl
ifinstr(a,"x")>0then
a=split(a,"x")
ifclng(a(0))>=650then
url=bigurl
endif
endif
response.redirect(url)
elseifinstr(A,"zilla/4")>0Then
%>
<scriptlanguage="JavaScript">
varw=document.body.clientWidth;
if(w>=650)
{
window.location.href="<%=bigurl%>";
}
else
{
window.location.href="<%=smallurl%>";
}
</script>
<%
elseifinstr(A,"zilla/3")>0then
%>
<scriptlanguage="javascript">
varSizer=java.awt.Toolkit.getDefaultToolkit();
varScrSize=Sizer.getScreenSize();
varScrW=ScrSize.width;
if(ScrW>=650)
{
window.location.href="<%=bigurl%>";
}
else
{
window.location.href="<%=smallurl%>";
}
</script>
<%
else
respose.redirect(smallurl)
endif
%></p>想法是和程序员的想法不一样的.至于为什么.大家去想一想.跟心理学有关的 |
|