看来你基本概念有问题
不能那前台Javascript脚本中的条件做为后台ASP的条件.
你上面的所有Session赋值将会从头到尾都执行以便,最后当然只能是你else里面的赋的值了.
不能那前台Javascript脚本中的条件做为后台ASP的条件.
你上面的所有Session赋值将会从头到尾都执行以便,最后当然只能是你else里面的赋的值了.
解决方案 »
- 用getBoundingClientRect获取元素位置,拉动浏览器窗口怎么让它随之改变
- 求个正则表达式,貌似有点难
- 这个正则表达式为什么不行哦?
- 模仿sina的图片切换javascript代码失效和去除flash边框的代码均失效。请教解决办法
- 删除所选的列表值,各位帮帮新人。。
- 一个注册页面 我在输入错误格式的email时 会有js校验 客户端如何才能强制禁止js校验或绕过eamil格式校验
- 求IE浏览器工具栏的“上一页”的代码 高手請進
- 关闭窗口时弹出提示 应该怎样实现?谢谢
- 如何在页面的加载的时候,屏蔽掉工具栏、菜单栏等?
- 先500分了
- 求类似windows属性框效果的代码
- 急:dettachEvent为什么失败?
<!--
var w = screen.width;
if (w == 1024)
alert("1024");
else
alert("no 1024");
var h = screen.height;
if (h == 768)
alert("768");
else
alert("no 768");
// -->
</script>我测试上面代码是没有错的,你看看。。是不是?
<!--
var w = screen.width;
if (w == 800) {
document.hidden_iframe.location="check.asp?w=585"; }
else {
document.hidden_iframe.location="check.asp?w=760";
}
var h = screen.height
if (h == 768) {
document.hidden_iframe.location="check.asp?h=630";
}
else {
document.hidden_iframe.location="check.asp?h=400";
}
// -->
</script>
<iframe name="hidden_iframe" height=0 width=0 src=""></iframe>check.asp:
<%
Session(cMapImageHeight) = Request("w")
Session(cMapImageHeight) = Request("h")
%>