<script language="JavaScript"> 
var url800x600="800.htm"; 
var url1024x768="1024.htm"; 
if ((screen.width == 800) && (screen.height == 600)) 
window.location.href=url800x600; 
else if ((screen.width == 1024) && (screen.height == 768)) 
window.location.href=url1024x768; 
else 
window.location.href=url1024x768; 
</script> 
上述代码是JS程序来的,代码意思是当分辨率为800*600就跳转800.htm,为1024*768时就跳转1024.htm 
请问:怎样用上述的JS程序融合到ASP中,就是当if ((screen.width == 800) && (screen.height == 600)) 时<%width=1%>,又当else if ((screen.width == 1024) && (screen.height == 768))时<%width=2%>