- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
ie和firefox的js兼容性整理(JS compatibility with IE and Firefox)
ie和firefox的js兼容性整理(JS compatibility with IE and Firefox) the 代替 以下以 internet explorer, firefox 代替 mozzila 以 mf 1. document.form.item 问题 (1) 现有问题. 现有代码中存在许多 document.formname.item (itemname 这样的语句, 下运行 不能在 fm ) (2) 解决方法. 改用 document.formname.elements elementname] (3) 其它 参见 2 2. 集合类对象问题 (1) 现有问题. 现有代码中许多集合类对象取用时使用 (), the 能接受, mf 不能. (2) 解决方法. 改用 [] 作为下标运算.如: document.forms (formname) 改为 formname document.forms []. 又如: document.getelementsbyname (inputname) (1) (inputname 改为 document.getelementsbyname) [1] (3) 其它 3. window.event (1) 现有问题. 使用 window.event 上运行 无法在 mf (2) 解决方法. mf 的 event 只能在事件发生的现场使用, 此问题暂无法解决.可以这样变通. 原代码 (可在ie中运行). input type = button name = somebutton value = 提交 onclick = javascript: gotosubmit / ... script language = javascript gotosubmit () () ... alert (window.event); / / use window.event ... } / td 新代码 (可在ie和mf中运行). input type = button name = somebutton value = 提交 onclick = javascript: gotosubmit (event). ... script language = javascript gotosubmit () (net) poss = net? net (window.event? window.event: null). ... alert (vte); / / use net ... } / td 此外, 如果新代码中第一行不改, 与老代码一样的话 (即 gotosubmit 调用没有给参数), 则仍然只能在ie中运行, 但不会出错.所以, 部分仍与老代码兼容 这种方案 dwt. 4. 对象的 id 作为对象名的问题 html (1) 现有问题 the 中 在 html document 的下属对象变量名直接使用.在 中不能 对象的 id 可以作为 fm. (2) 解决方法 用 getelementbyid (idname) 代替 idname 作为对象变量使用. 5. 用idname字符串取得对象的问题 (1) 现有问题 在ie中, 利用 eval (idname) 可以取得 id 为 idname 的 html 对象, 在mf 中不能. (2) 解决方法 用 getelementbyid (idname) 代替 eval (idname). 6. 对象 id 相同的问题 变量名与某 html (1) 现有问题 在 mf 中, 因为对象 id 不作为 所以可以使用与 html html 对象的名称, 对象 id 相同的变量名, 中不能. (2) 解决方法 在声明变量时, 一律加上 以避免歧义 这样在 var, the 中亦可正常运行. 此外, 最好不要取与 html 对象 id 相同的变量名, 以减少错误. (3) 其它 参见 问题4 7. event.x 与 event. Y problem (1) existing problems In IE, the event object has the X and Y attributes, not in the MF. (2) solutions In MF, event.x is equivalent to event.pageX. But not in event.pageX IE. Therefore, the use of event.clientX instead of event.x. This variable is also available in IE. There is a subtle differen
您可能关注的文档
- 2011年陕西高考数学试题及答案(理科)(Mathematics examination questions and answers of Shaanxi college entrance examination in 2011 (Science)).doc
- 2011年青浦区高三化学一模试卷(附答案)(Qingpu District in 2011 the first mock exam papers of Senior Chemistry (with answers)).doc
- 2011微博营销发展方向漫谈(2011, micro-blog marketing development direction).doc
- 2011湖南衡阳物理试题(2011 Hunan Hengyang physics examination).doc
- 2011总结(2011 summary).doc
- 2011申论热点剖析人肉有哪些信誉好的足球投注网站案暴露民事立法之不足(Analysis on 2011 hot spots human flesh search case exposed a lack of civil legislation).doc
- 2011福建高考满分作文(2011 Fujian college entrance examination scores).doc
- 2011考研必备考研英语每年都出现的单词(2011, postgraduate entrance examination must English for postgraduate entrance examination every year).doc
- 2011护士资格考试资料(2011 nurse qualification examination data).doc
- 2011考研生应做好生理和心理上的双重准备(2011, postgraduate students should do both physical and psychological preparation).doc
- ie和火狐的css兼容(Ie is compatible with Firefox's CSS).doc
- ie和ff兼容问题(IE and FF compatibility issues).doc
- ie和firefox兼容(Ie compatible with Firefox).doc
- iis apache+php+mysql+zend optimizer+phpmyadmin安装配置(IIS,Apache + PHP + MySQL + Zend Optimizer + phpMyAdmin安装配置).doc
- imageurl数据绑定(imageurl数据绑定).doc
- ie和firefox浏览器css兼容性技巧(IE and Firefox browser CSS compatibility skills).doc
- go for it 七年级(下)期末质量检测英语试卷(去吧七年级(下)期末质量检测英语试卷).doc
- ie6.0、ie7.0 与firefox css兼容的解决方法(IE6.0, IE7.0 and Firefox CSS compatible solutions).doc
- ipo新制度下如何打新 - 东方财富网(Under the new IPO system, how to hit the new - Eastern wealth network).doc
- ip等级(ip degree).doc
最近下载
- 成品油管道运输项目突发环境事件应急预案.pdf
- 浙江金华市金婺资源开发集团有限公司招聘笔试题库2023.pdf VIP
- 2025-2026学年沪书画版(五四学制)(2024)小学美术一年级上册(全册)教学设计(附目录P102).docx
- 九年级化学上册单元练习题2.doc VIP
- 20210810-海通国际-中国有色金属行业:决战元素周期表.pdf VIP
- 三峡大学2020年831电路考研真题.docx VIP
- YD 5178-2017-T 通信管道人孔和手孔图集.pptx VIP
- 学堂在线网课《如何写好科研论文》课后作业单元考核答案.docx VIP
- 三种人(工作票签发人、负责人、许可人)培训.ppt VIP
- 初中数学专题:有理数混合运算.doc VIP
文档评论(0)