兼容性问题 [英] Compatibility Issue

查看:82
本文介绍了兼容性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得(我有点无能为力)我在这个网站的

模板中使用了一个表单脚本: www.flywessex.blogspot.com

我最理想的做法就是摆脱来自

右侧下拉菜单的'Go!''按钮,这样用户只需从列表中选择

即可直接拍摄到选定的页面。


我试过一个脚本,但它只适用于IE,而不是Firefox。我被告知

它无法完成并与两种浏览器兼容。我现在拒绝放弃,并认为我会先让你们问好我们的




非常感谢任何帮助。


干杯,


P.

解决方案

>这样用户只需从列表中选择

即可直接进入所选页面。




这很容易做到对于鼠标用户:

< select onchange =" myFunction(this.selectedIndex)">


确实非常困难为键盘用户做的事情(谁喜欢

使用向上/向下键滚动选项)。


虽然FF忽略了因更改事件引起的键盘,但直到你击中了

< Enter>,IE为每个滚动触发onchange。显然它使

导航无法实现。


我看到的唯一相当丑陋的解决方案是完全放弃onchange事件

并使用onkeypress / onclick / onscroll监控。


On 29/06/2005 08:58,Sev写道:


[snip]

我理想的做法是从
右侧下拉菜单中删除'Go!''按钮,这样用户只需从列表中选择
即可直接进入所选页面。




不要。这对可用性有害。看到上一篇文章[1]我写了

的一些问题。


[snip]


Mike

[1]

< URL:http://groups.google.co.uk/group/comp.lang.javascript/browse_frm/thread / 79d767415248b9e2 / 01a793f653ba095e?hl = en#01a793f653ba095e>


-

Michael Winter

替换.invalid与.uk通过电子邮件回复。


Michael Winter写道:

On 29/06/2005 08:58,Sev写道:

[snip]

我理想的做法就是摆脱右手边的Go!按钮 - 向下菜单,以便用户只需从列表中选择并直接进入所选页面。



不要。这对可用性有害。看到上一篇文章[1]我已经写了一些问题。

[snip]

迈克

[1]
< URL:http://groups.google.co.uk/group/comp.lang.javascript/browse_frm/thread/79d767415248b9e2/01a793f653ba095e?hl = en#01a793f653ba095e>




对,谢谢。我想我不是在合适的地方找人帮助

我找到一个与两种浏览器兼容的网站导航系统,

并不妨碍非鼠标用户和看起来不错。有人可以推荐一个

论坛吗?


I think (a bit clueless I''m afraid) I''m using a form script in the
template of this site: www.flywessex.blogspot.com

What I would ideally like to do is get rid of the ''Go!'' buttons from the
right-hand side drop-down menus, so that the user simply has to select
from the list and is taken straight to the selected page.

I tried a script but it only worked in IE, not Firefox. I''ve been told
that it just cannot be done AND be compatible with both browsers. I
refuse to give up just yet and thought I''d ask you guys before making my
mind up.

Any help greatly appreciated.

Cheers,

P.

解决方案

> so that the user simply has to select

from the list and is taken straight to the selected page.



It is very easy to do for the "mouse users":
<select onchange="myFunction(this.selectedIndex)">

It is indeed very difficult to do for the "keyboard users" (who prefer
to scroll options using up/down keys).

While FF ignores the keyboard caused onchange events untill you hit
<Enter>, IE fires onchange for each scroll. Obviously it makes the
navigation impossible.

The only rather ugly solution I see is to drop onchange event
completely and use onkeypress / onclick / onscroll monitoring instead.


On 29/06/2005 08:58, Sev wrote:

[snip]

What I would ideally like to do is get rid of the ''Go!'' buttons from the
right-hand side drop-down menus, so that the user simply has to select
from the list and is taken straight to the selected page.



Don''t. It''s bad for usability. See a previous article[1] I''ve written
for some of the issues.

[snip]

Mike
[1]
<URL:http://groups.google.co.uk/group/comp.lang.javascript/browse_frm/thread/79d767415248b9e2/01a793f653ba095e?hl=en#01a793f653ba095e>

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.


Michael Winter wrote:

On 29/06/2005 08:58, Sev wrote:

[snip]

What I would ideally like to do is get rid of the ''Go!'' buttons from
the right-hand side drop-down menus, so that the user simply has to
select from the list and is taken straight to the selected page.


Don''t. It''s bad for usability. See a previous article[1] I''ve written
for some of the issues.

[snip]

Mike
[1]
<URL:http://groups.google.co.uk/group/comp.lang.javascript/browse_frm/thread/79d767415248b9e2/01a793f653ba095e?hl=en#01a793f653ba095e>



Right, thanks. I guess I''m not in the right place to have someone help
me find a site navigation system that IS compatible with both browsers,
doesn''t hinder non mouse users AND looks good. Can anyone recommend a
forum please?


这篇关于兼容性问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆