错误消息 [英] Error Messages

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

问题描述

以下功能用于更改选项卡式导航界面的bgcolors。用户(已选择)单击的选项卡将更改为白色,所有其他选项卡将更改为另一种颜色。


在FF中,此代码返回错误target has no properties。 IE6返回错误Object required。有趣的是,无论FF中的错误和颜色是否改变,效果都有效。


有什么建议吗?谢谢。

展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号

解决方案

hi ...

可能你的一个数组元素值是你的标签的错误ID ...检查,或者发布相应的HTML请...


亲切的问候。 ..


好吧,我查了一下,我不这么认为:

展开 | 选择 | Wrap | Line数字


嗯......好吧......我把你的片段组合在一起,没有你提到的错误...所以它可能来自你代码的其他部分...以下工作没有错误:

展开 | 选择 | Wrap | 行号

The function below is used to change the bgcolors of a tabbed navigation interface. The tab clicked by user (chosen) is changed to white and all other tabs to another color.

In FF this code returns the error "target has no properties." IE6 returns the error "Object required." Interestingly, the effect works regardless of the error in FF and the colors are changed.

Any suggestions? Thanks.

Expand|Select|Wrap|Line Numbers

解决方案

hi ...

probably one of your array-elements-values is an incorrect id for your tabs ... check, or post your corresponding html please ...

kind regards ...


Well, I checked and I don''t think so:

Expand|Select|Wrap|Line Numbers


hmmm ... ok ... i combined your snippets and they work without the errors you mentioned ... so it may come from an other part of your code ... the following works without errors:

Expand|Select|Wrap|Line Numbers


这篇关于错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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