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

2011-01-12 18:05:10 +08:00
 xinzhi
一直以来,浏览器alert对话框最让人讨厌了;但在Firefox4里面(我改applications.ini为3.6以便兼容旧扩展),感觉真是太好了,我不能喜欢更多。

http://img.ly/2Nbk
4709 次点击
所在节点    分享发现
15 条回复
freefcw
2011-01-12 18:18:12 +08:00
看起来很不错啊~~这种效果给人的感觉可以接受。我还没遇到
fanzeyi
2011-01-12 18:30:00 +08:00
LZ怎么实现的挖?
xinzhi
2011-01-12 18:41:31 +08:00
@fanzeyi 不是我鼓捣的,它自己就那样。我还不清楚是Firefox还是系统主题的效果。
freefcw
2011-01-12 18:41:36 +08:00
。。。。这个是浏览器自己的啊--
xinzhi
2011-01-12 18:43:58 +08:00
已确认,是Firefox4默认主题的效果。
fanzeyi
2011-01-12 18:47:46 +08:00
@xinzhi 好吧 chrome党泪目。。
shellex
2011-01-12 19:11:19 +08:00
@fanzeyi Chrome想得到一样的效果也很容易吧。写一个小扩展在页面里面重新做alert函数就好。
fanzeyi
2011-01-12 19:12:02 +08:00
@shellex 好吧我不懂js........ 就靠你来开发了。。
chone
2011-01-12 19:13:25 +08:00
@shellex 确实是这样,这个不是很复杂
freefcw
2011-01-12 19:37:47 +08:00
@chone 但就是这样的小功能,很贴心啊
shellex
2011-01-12 19:41:20 +08:00
@fanzeyi @chone 额。。。但是chrome貌似用的isolated环境跑content script,不知道能不能搞
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
2011-01-12 20:47:28 +08:00
我困惑好多天了,原来真是原生的。太好了!
是从 4.0b8 才出现的特性?
freefcw
2011-01-12 21:01:17 +08:00
@lianghai 应该是最近才有的功能吧,以前好像没出现过
caoyue
2011-01-12 22:52:15 +08:00
确实是4.0Beta添加的特性,而且现在警告窗口变成标签模态了,也就是说弹出窗口的时候可以切换标签,以前是不行的

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/7138

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX