posted @ 2009-10-10 15:31
随笔分类 - FF & IE 兼容相关
浏览器兼容
摘要:function getEvent(){ //同时兼容ie和ff的写法if(document.all) return window.event; func=getEvent.caller; while(func!=null){ var arg0=func.arguments[0];if(arg0){...
阅读全文
摘要:FireFox使用技巧 关键字: 取消页面缓存 调试程序的时候发现FireFox在访问一些页面时会不能及时更新,总是把缓存的页面显示出来,总要自己刷一下才行。Google了一下, 找到解决方法如下:在FireFox 的地址栏目输入:about:config在弹出的界面中找到如下项目:brow...
阅读全文
posted @ 2009-06-22 18:01
摘要:str.replace(/[^\x00-\xff]/g, "**").length
阅读全文
posted @ 2009-02-27 09:48
摘要:ff: style.cssFloat = 'left' IE: style.styleFloat = 'left'
阅读全文
posted @ 2008-12-08 00:37
摘要:在浏览器 IE6 、IE7、Firefox2+、Firefpx3+、Opera9.6+、Safari3.1+中测试以下代码(Demo): Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeH...
阅读全文
posted @ 2008-11-11 00:42
摘要:png透明AlphaImageLoader filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=bEnabled,sizingMethod=sSize,src=sURL) enabled:可选项。布尔值(Boolean...
阅读全文
posted @ 2008-10-18 12:29
摘要:function insertFlash(elm, url, w, h) { if (!document.getElementById(elm)) return; var str = ''; str += ''; document.getElementById(elm).innerHTML = st...
阅读全文
posted @ 2008-06-06 01:05