时间: 2021-07-31 作者:daque
咱们领会,对于存户端辨别率的题目不妨经过asp在效劳器端举行确定,我用javascript剧本也不妨实行这个功效。底下是源步调:
<script language="javascript">if (window.screen){ var widths = screen.width; url_640 = "default800.htm"; url_800 = "default800.htm"; url_1024 = "default1024.htm"; if(widths<740){ self.location.replace(url_640); } if(widths>=740 & w<835){ self.location.replace(url_800); } if(widths>=835){ self.location.replace(url_1024); }}</script>