noscript,onload还是其他什么? [英] noscript, onload or something else?

查看:72
本文介绍了noscript,onload还是其他什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是新手......只是想弄清楚一些简单的东西,我很有信心。


我已经我的< head>中有一个脚本单击时显示/隐藏div的标签:

Hi,
I''m a novice... just trying figure out something simple, I''m sure.

I''ve got a script within my <head> tags to show/hide divs on click:

展开 | 选择 | Wrap | 行号

推荐答案

你可以得到所有按公共类名称进行div并将函数应用于它。需要对代码进行一些小的改动以反映这个的使用。


(时间不够?)
you can get all divs by a common class name and apply the function to it. needs some minor change in the code to reflect the use of this.

(out of time?)


谢谢,Dormilich。


我能够使用className搜索一些示例,我让它工作。
Thanks, Dormilich.

I was able to search out some examples using className and I got it to work.


请记住
keep in mind that document.getElementsByClassName() is not fully supported in every version of IE.


这篇关于noscript,onload还是其他什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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