V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
xinzhi
V2EX  ›  分享发现

这样的alert对话框,我不能喜欢更多!

  •  
  •   xinzhi · 2011-01-12 18:05:10 +08:00 · 4693 次点击
    这是一个创建于 4863 天前的主题,其中的信息可能已经有所发展或是发生改变。
    一直以来,浏览器alert对话框最让人讨厌了;但在Firefox4里面(我改applications.ini为3.6以便兼容旧扩展),感觉真是太好了,我不能喜欢更多。

    15 条回复    1970-01-01 08:00:00 +08:00
    freefcw
        1
    freefcw  
       2011-01-12 18:18:12 +08:00
    看起来很不错啊~~这种效果给人的感觉可以接受。我还没遇到
    fanzeyi
        2
    fanzeyi  
       2011-01-12 18:30:00 +08:00
    LZ怎么实现的挖?
    xinzhi
        3
    xinzhi  
    OP
       2011-01-12 18:41:31 +08:00
    @fanzeyi 不是我鼓捣的,它自己就那样。我还不清楚是Firefox还是系统主题的效果。
    freefcw
        4
    freefcw  
       2011-01-12 18:41:36 +08:00
    。。。。这个是浏览器自己的啊--
    xinzhi
        5
    xinzhi  
    OP
       2011-01-12 18:43:58 +08:00
    已确认,是Firefox4默认主题的效果。
    fanzeyi
        6
    fanzeyi  
       2011-01-12 18:47:46 +08:00
    @xinzhi 好吧 chrome党泪目。。
    shellex
        7
    shellex  
       2011-01-12 19:11:19 +08:00
    @fanzeyi Chrome想得到一样的效果也很容易吧。写一个小扩展在页面里面重新做alert函数就好。
    fanzeyi
        8
    fanzeyi  
       2011-01-12 19:12:02 +08:00
    @shellex 好吧我不懂js........ 就靠你来开发了。。
    chone
        9
    chone  
       2011-01-12 19:13:25 +08:00
    @shellex 确实是这样,这个不是很复杂
    freefcw
        10
    freefcw  
       2011-01-12 19:37:47 +08:00
    @chone 但就是这样的小功能,很贴心啊
    shellex
        11
    shellex  
       2011-01-12 19:41:20 +08:00
    @fanzeyi @chone 额。。。但是chrome貌似用的isolated环境跑content script,不知道能不能搞
    shellex
        12
    shellex  
       2011-01-12 19:44:23 +08:00
    @chone @fanzeyi 恩,确认一下,用content scripts是没法搞的~

    “Content scripts execute in a special environment called an isolated world. They have access to the DOM of the page they are injected into, but not to any JavaScript variables or functions created by the page. It looks to each content script as if there is no other JavaScript executing on the page it is running on. The same is true in reverse: JavaScript running on the page cannot call any functions or access any variables defined by content scripts.”

    http://code.google.com/chrome/extensions/content_scripts.html
    lianghai
        13
    lianghai  
       2011-01-12 20:47:28 +08:00
    我困惑好多天了,原来真是原生的。太好了!
    是从 4.0b8 才出现的特性?
    freefcw
        14
    freefcw  
       2011-01-12 21:01:17 +08:00
    @lianghai 应该是最近才有的功能吧,以前好像没出现过
    caoyue
        15
    caoyue  
       2011-01-12 22:52:15 +08:00
    确实是4.0Beta添加的特性,而且现在警告窗口变成标签模态了,也就是说弹出窗口的时候可以切换标签,以前是不行的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2636 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 15:45 · PVG 23:45 · LAX 08:45 · JFK 11:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.