2008/08/28 6:30:04
59
4
0 particletree.com [
この元コンテンツへ ]
is not already built into JavaScript is beyond me, but it’s not and so Prototype had added to it to the arsenal as an extension of the document object. It behaves exactly like document.getElementsByTagName(), the only difference being that it checks for className. allNodes = document.getElementsByClassName("red"); for(i = 0; i < allNodes.length; i++) { alert(allNodes[i].innerHTML); } An array is returned containing all elements that match the given className. This will also work with elements that ...
[
← 前の画面 ]
【 PR 】 Photoshop 便利ブラグイン [ 無料 ] [
ニコニコ風 ] [
関連記事 ] [
Feeling Lucky ]