简单问题,但是给分不少! 这个问题,可以用javascript来实现最佳。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 使用 Javascript 来控制,最简单最方便。 <script>var IE = ((navigator.userAgent.indexOf("Opera") == -1) && (navigator.appName) == "Microsoft Internet Explorer")?true:false;var browser, earStr, startIndex, endIndex, edition;var userAgent = navigator.userAgent;if (IE) { browser = "Microsoft Internet Explorer"; earStr = "MSIE"; startIndex = userAgent.indexOf(earStr) + earStr.length; endIndex = userAgent.indexOf(";",startIndex); edition = userAgent.slice(startIndex,endIndex);}document.write("您的浏览器是:" + browser + "<br>版本是:" + edition + "<br>" + "分辨率是" + screen.width + "*" + screen.height);</script> 要完成此效果把如下代码加入到<body>区域中<script language="JavaScript1.2"><!--var correctwidth=800var correctheight=600if (screen.width!=correctwidth||screen.height!=correctheight)document.write("本站最佳分辨率: "+correctwidth+"*"+correctheight+". 你当前的分辨率是:"+screen.width+"*"+screen.height+"。设置合适的分辨率才能取得最佳的显示效果!")//--></script> 求救:Resource id #3问题~~ php的浏览器地址中没有.PHP 哪位能给我一个PHP+XAJAX的进度条的例子 请教php发信功能 在apache上写html的问题!(大送50分) 字符串截取的问题,在线等 php 有没有控制时间的函数 问些php安全的问题 请问大家那里有PHP+mysql数据库的相关SQL手册 如何解决 Apache 下 PHP 用户验证问题? 用PHP存储图片或其他2进制文件报错问题?谢谢,急 关于symlink(string target,string link)文件系统建立软连接的问题
var IE = ((navigator.userAgent.indexOf("Opera") == -1) && (navigator.appName) == "Microsoft Internet Explorer")?true:false;
var browser, earStr, startIndex, endIndex, edition;
var userAgent = navigator.userAgent;
if (IE) {
browser = "Microsoft Internet Explorer";
earStr = "MSIE";
startIndex = userAgent.indexOf(earStr) + earStr.length;
endIndex = userAgent.indexOf(";",startIndex);
edition = userAgent.slice(startIndex,endIndex);
}
document.write("您的浏览器是:" + browser + "<br>版本是:" + edition + "<br>" + "分辨率是" + screen.width + "*" + screen.height);
</script>