Small HTML code

by noname on December 22nd, 2009

Why the alert only return “1″.
I think it should return “2″ the
0 =
1 =

javascript:alert(document.getElementsByTagName(”title”).length);

What javascript code i need to use to see both ?

Thanks

Syntax: HTML
Show lines - Hide lines - Show in textbox - Download
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tribal Wars - Mundo 9</title>
<link href="css/stamm.css?1255509606" type="text/css" rel="stylesheet">
1a:link { font-weight:bold; color: #804000; text-decoration:none; }
2a:visited { font-weight:bold; color: #804000; text-decoration:none; }
3a:active { font-weight:bold; color: #0082BE; text-decoration:none; }
4a:hover { font-weight:bold; color: #0082BE; text-decoration:none; }
5td { font-size:9pt; }
6.hidden { color:#DED3B9; }
7table.main { background-color:#F1EBDD; background-image:url(../graphic/background/content.jpg); border:1px solid #804000;}
8table.news { background-color:#F1EBDD; }
9.in_border { background-color:#F1EBDD; text-align:left;}
10
11
12span.timer_replace span { display:none; }
13
14form { margin: 0px; }
15p:first-child, h1:first-child, h2:first-child, h3:first-child, h4:first-child,
16 h5:first-child, h6:first-child, h1+p, h2+p, h3+p, h4+p, h5+p, h6+p { margin-top: 0px; }
17
18table.blind { border-spacing:0px; }
19table.blind td { padding: 0px; }
20
21table.left { float: left;}
22table.vis {border-collapse:separate;}
23table.vis td { background-color:#F7EED3; }
24table.vis td.selected { background-color:#F0D49A; }
25table.vis td.no_bg { background-color:transparent; }
26table.vis td.align_right { text-align:right; }
27table.vis tr.nowrap td { white-space:nowrap; background-color:#F7EED3; background-image:none;}
28table.vis tr.units_home td { background-color:#F6EBCA; background-image:none;}
29table.vis tr.units_there td { background-color:#FBF4DD; background-image:none;}
30table.vis tr.units_away td { background-color:#F7EED3; background-image:none;}
31table.vis tr.units_moving td { background-color:#FBF4DD; background-image:none;}
32table.vis tr.row_a td { background-color:#F6EBCA; background-image:none;}
33table.vis tr.row_b td { background-color:#FBF4DD; background-image:none;}
34table.vis tr.edit_player_colors td{ background-image:none;}
35
36tr.nowrap td { white-space:nowrap; }
37
38table.intro td { background-color:#F8F4E8; line-height:1.5em; padding:6px; font-size:8pt}
39
40/* Tooltips Waffenkammer (mootools) */
41.tool-tip{
42 width:250px;
43 background-color:#F8F4E8;
44 z-index:9999;
45}
46.tool-title{
47 background-color:#DED3B9;
48 font-weight:bold;
49 padding:2px;
50}
51.tool-text{
52 padding:5px;
53}
54
55/* Menüleiste */
56table.menu, ul.quickbar {
57 border: 1px solid;
58 border-color:#997733 #FFDD99 #FFEECC #BB9955;
59 background-repeat: repeat-x;
60 background-color: #F7EED3;
61}
62
63ul.quickbar{
64 border-spacing:1px;
65 list-style-type:none;
66 padding:0;
67 margin:0;
68}
69
70/* Top-Menu-Item mit Hover */
71table.menu tr td {
72 padding: 0px; padding-left: 4px; padding-right: 4px;
73 margin: 0px;
74 white-space: nowrap;
75 background-color: #F7EED3;
76 background-repeat: repeat-x;
77 border-collapse: collapse;
78}
79
80table.menu table.menu_column tr, table.menu table.menu_column td {
81 background-image: none;
82 background-color: #FFF4DE;
83}
84
85ul.quickbar li {
86 background: transparent;
87}
88
89.content-border {
90 border:1px solid;
91 border-color:#994c00 #603000 #552a00 #804000;
92 border-collapse: collapse;
93 padding: 0;
94 margin: 0;
95 direction:ltr;
96}
97
98.navi-border {
99 border:1px solid;
100 border-color:#ffeecc #bb9955 #997733 #ffdd99;
101 padding: 0;
102 margin: 0;
103}
104
105.navi-border td, .main-border td, .content-border td {
106 margin: 0;
107 padding: 0;
108}
109.main td{padding:2px;} /* Must follow navi-border td otherwise no padding in Opera */
110
111.luck{border: 1px solid black;}
112.luck td {padding:0;}
113
114/* Quickbar MenuItem */
115ul.quickbar li{
116 padding-top: 0px; padding-bottom: 0px;
117 display:inline;
118}
119
120/* Das gesamte Untermenu */
121table.menu tr td table {
122 z-index:100;
123 position:absolute;
124 border-top: 1px solid black;
125 margin-left: -5px;
126 visibility: hidden;
127}
128
129/* Das gesamte Untermenu in sichtbar */
130table.menu tr td:hover table, table.menu tr td.hover table {
131 visibility: visible;
132 z-index:9999;
133 direction: ltr;
134}
135
136/* Ein Untermenupunkt */
137table.menu tr td table tr td {
138 border: 1px solid black;
139 border-top: none;
140}
141/* Ein Link in einem Untermenupunkt */
142table.menu tr td table tr td a{
143 display: block;
144 width: 100%;
145}
146
147/* Forum */
148.forum { display:inline-block; background-color:#F1EBDD; margin-bottom:4px; padding:1px; border:1px solid #000; white-space:nowrap; line-height:150%; }
149.selected { background-color:#FADC9B;}
150
151.shared_forum { display:inline-block; background-color:#DDDDDD; margin-bottom:4px; padding:1px; border:1px solid #000; white-space:nowrap; line-height:150%; }
152.shared_selected { background-color:#b7c3c9;}
153input.answer { margin-bottom:4px; }
154
155table.map_container { background-color: #DDCCAA; border: 1px solid #000000; direction:ltr;}
156table.map td { font-size:8pt; text-align:center; vertical-align:middle;padding:0;}
157table.map div.lay1 { position:absolute;z-index:1;text-align:right; }
158
159#info_bonus_image{background-image:url(../graphic/background/content.jpg);}
160
161td.space-left { border-left:1px solid #175E36; } /* zwischen normalen Feldern */
162td.space-bottom { border-bottom:1px solid #175E36; }
163td.border-left { border-left:1px solid #103530; } /* "Sektorgrenzen" S1/S2/S6 */
164td.border-bottom { border-bottom:1px solid #103530; }
165td.sector-left { border-left:1px solid #DED3B9; } /* Sektorgrenzen */
166td.sector-bottom { border-bottom:1px solid #DED3B9; }
167
168td.space-left-new {}
169td.space-bottom-new {}
170td.border-left-new { border-left:1px solid #214B18; }
171td.border-bottom-new { border-bottom:1px solid #214B18; }
172td.sector-left-new { border-left:1px solid #DED3B9; }
173td.sector-bottom-new { border-bottom:1px solid #DED3B9; }
174td.con-left-new { border-left:1px solid #000000; }
175td.con-bottom-new { border-bottom:1px solid #000000; }
176
177tr.center td { text-align:center; }
178tr.lit td { font-weight:bold; background-color:#F0D49A; background-image:none;}
179tr.lit2 td { font-weight:bold; background-color:#F0E6C8; background-image:none;}
180tr.admin td { background-color:#F0E6C8; }
181tr.mini td { font-style: italic; font-size: x-small }
182th { font-size:9pt; text-align: left; font-weight:bold; background-color:#DFCCA6; }
183.top_background { background-image: url(../graphic/index/bg-top.jpg); background-repeat: repeat-x; height: 27px; width: 100%; position: absolute; top:0; z-index: -1; }
184body { background-color: #d2c09e; background-image:url(../graphic/background/bg-tile.jpg); font-size:9pt; font-family: Verdana, Arial; width:100%; margin: 0; }
185/* !!! ACHTUNG !!! 'Wenn css nicht als UTF-8 gespeichert, dann wird dies hier kaputt gehen !!! */
186h1 { font-size:16pt;}
187h2 { font-size:14pt;}
188h3 { font-size:12pt; font-weight:bold; }
189h4 { font-size:10pt; font-weight:bold; font-style:italic; margin-bottom:4pt}
190h5 { font-size:10pt; font-weight:bold; margin-bottom:2pt}
191img { border: none; }
192img.middle { vertical-align:middle; }
193
194.grey { color: gray; }
195.warn { color: rgb(220, 0, 0); }
196.error { color: rgb(180, 0, 0); font-weight:bold; }
197.inactive { color: #C5A76B; }
198.nowrap { white-space: nowrap; }
199.small { font-size: xx-small; }
200
201hr {
202 border-color : #997733 transparent #FFEECC transparent;
203 border-width : 1px 0;
204 border-style : solid;
205}
206
207table.box {
208 background-color:#F7EED3;
209 background-repeat: repeat-x;
210 border: 1px solid;
211 border-color:#997733 #FFDD99 #FFEECC #BB9955;
212 vertical-align: middle;
213}
214
215table.box tr td { white-space:nowrap; }
216
217input, select { font-size: 8pt; /*background-color:#FDFBF3;*/ }
218
219input.attack { background-color: rgb(250, 210, 210) }
220input.support { background-color: rgb(210, 250, 210) }
221
222input.check { margin:0px; margin-right:5px; }
223
224table.quote td.quote_author { font-weight: bold; font-size: 8pt; }
225table.quote td.quote_message { background-color:#FFFFFF; font-size: 8pt; }
226
227.post { border: 2px solid #804000; background-color: #f8f4e8; padding:0px; margin-bottom:5px;}
228.igmline { background-color:#efe6c9; padding-left:4px; border-bottom:1px solid #804000; position:relative;}
229.text { padding:6px; }
230.date { font-size:x-small; right:5px; position:absolute;}
231.right { right:5px; position:absolute; }
232
233#igm_groups { position:absolute;z-index:100; border: 2px solid #804000; background-color:#efe6c9;}
234#igm_groups td { padding:2px; }
235
236#bb_sizes { position:absolute;z-index:100; border: 2px solid #804000; background-color:#efe6c9; top: 24px; left: 200px;}
237#bb_sizes td { padding:2px; }
238
239#bb_color_picker { position:absolute;z-index:100;border:2px solid #804000; background-color:#efe6c9; top:24px; left:220px;}
240#bb_color_picker_tones {padding:4px; border-bottom:2px solid #804000; height:86px;}
241#bb_color_picker_colors {padding:4px; border-bottom:2px solid #804000; height:18px;}
242#bb_color_picker_colors div { float:left; border-top:1px solid black; border-left:1px solid black; width:16px; height:16px; cursor:pointer}
243#bb_color_picker_tones div { float:left; border-top:1px solid black; border-left:1px solid black; width:16px; height:16px; cursor:pointer}
244#bb_color_picker_50,#bb_color_picker_51,#bb_color_picker_52,#bb_color_picker_53,#bb_color_picker_54,#bb_color_picker_55 {border-bottom:1px solid black;}
245#bb_color_picker_55,#bb_color_picker_45,#bb_color_picker_35,#bb_color_picker_25,#bb_color_picker_15,#bb_color_picker_05 {border-right:1px solid black;}
246#bb_color_picker_c0,#bb_color_picker_c1,#bb_color_picker_c2,#bb_color_picker_c3,#bb_color_picker_c4,#bb_color_picker_c5 {border-bottom:1px solid black;}
247#bb_color_picker_c5 {border-right:1px solid black;}
248#bb_color_picker_preview {margin:2px;border:1px solid black; height:16px; width:104px;background:#f7eed3;text-align:center}
249#bb_color_picker_tx {width:64px}
250#bb_color_picker_ok {}
251
252#igm_to { position:absolute; z-index:1; border: 2px solid #804000; background-color:#DED3B9;}
253#igm_to_content { background-color:#efe6c9; height: 250px; width:200px; overflow:auto}
254#igm_to td { padding:2px; }
255
256#box{
257color:black;
258background-color : #F8F4E8;
259width:100%;
260height:200px;
261text-align:left;
262padding : 0px;
263overflow:auto;
264position:relative;
265}
266
267#inline_popup {
268 border: 2px solid #804000;
269 background-color:#ded3b9;
270 position:absolute;
271 display: none;
272 width:298px;
273 z-index:5;
274}
275#inline_popup_menu{
276 width:100%;
277 text-align:right;
278}
279#inline_popup_main{
280 overflow:auto;
281 height:300px;
282 width:288px;
283 background-image: url('../graphic/background/content.jpg');
284 padding:3px;
285}
286
287ul.help{padding-left:1px; margin-left:0px}
288li.help{list-style-type:none; background-color:#DED3B9; margin:2px; padding-left:8px; padding-top:4px; padding-bottom:4px;}
289
290ul.help li.help ul.help li.help{ background-color:#F1EBDD; }
291ul.help li.help ul.help li.help ul.help li.help { background-color:#F8F4E8; }
292/*ul.help ul.help ul.help{background-color:#F8F4E8;}*/
293
294ul.submenu{padding-left:1px; margin-left:0px}
295li.submenu{list-style-type:none; margin:2px; padding-left:8px; padding-top:4px; padding-bottom:4px;}
296
297a.sel { color:#0082BE; text-decoration:underline;}
298
299.bonus_icon{background-image:url(../graphic/overview/bonus_icons.png?1);width:14px;height:14px;display:inline-block;margin-left:2px;}
300.bonus_icon_1{background-position:0 0}
301.bonus_icon_2{background-position:0 112px}
302.bonus_icon_3{background-position:0 98px}
303.bonus_icon_4{background-position:0 28px}
304.bonus_icon_5{background-position:0 70px}
305.bonus_icon_6{background-position:0 56px}
306.bonus_icon_7{background-position:0 42px}
307.bonus_icon_8{background-position:0 84px}
308.bonus_icon_9{background-position:0 14px}
309
310
311.server_info{
312 font-size: 7pt;
313 margin-top:0px;
314 margin-bottom:0px;
315}
316
317.hide_toggle{display: none; margin-left:-1px;}
318.show_toggle{display: inline;}
319
320/* Premium-Vorteile - Blättern-buttons */
321.premium_left_button_passive {
322 width: 32px;
323 height: 55px;
324 background-image: url(../graphic/premium/pa_button_left_passive.png);
325 background-repeat: no-repeat;
326}
327.premium_right_button_passive {
328 width: 32px;
329 height: 55px;
330 background-image: url(../graphic/premium/pa_button_right_passive.png);
331 background-repeat: no-repeat;
332}
333.premium_button {
334 width: 32px;
335 height: 55px;
336 background-image: url(../graphic/premium/pa_button.png);
337 background-repeat: no-repeat;
338 cursor: pointer;
339}
340.premium_left_button {
341 background-position: 0px 0px;
342}
343.premium_left_button_hover {
344 background-position: 0px -55px;
345}
346.premium_right_button {
347 background-position: -32px 0px;
348}
349.premium_right_button_hover {
350 background-position: -32px -55px;
351}
352
353#premium_buy_button {
354 width: 140px; height:75px;
355 background-image:url(../graphic/premium/buynow.jpg);
356 float: left;
357 font-size: 20px; color: white; text-align: center; line-height:75px
358}
359
360#premium_buy_button:hover {
361 background-position: 0px -75px;
362}
363
364/* Karte */
365.map_container * {
366 direction:ltr;
367}
368#spoiler div{
369 background:#EFE6C9 none repeat scroll 0 0;
370 border: 1px inset;
371 margin: 3px 0px;
372 padding: 6px;
373}
</link>
<script type="text/javascript">
</script>
</head>
<frameset border="0" framespacing="0" frameborder="0" rows="66, *">
<frame scrolling="no" name="ad" src="ad_top.php" marginheight="4" noresize="" frameborder="0">
</frame>
<frame name="main" src="game.php?screen=overview_villages&intro&popup" border="0" marginheight="5" marginwidth="5" frameborder="0">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>67>Dinamite (578|859) - Tribal Wars - Mundo 9</title>
<link href="/css/inventory.css?1254831608" type="text/css" rel="stylesheet">
1.inv_empty{position:absolute; z-index:3;width:600px; height:430px;}
2
3.inv_map{position:absolute; z-index:2;}
4
5.inv_archer{top:157px;left:198px;}
6.inv_axe{top:257px;left:128px;}
7.inv_catapult{top:0px;left:38px;}
8.inv_heavy{top:24px;left:76px;}
9.inv_light{top:56px;left:245px;}
10.inv_marcher{top:217px;left:483px;}
11.inv_ram{top:157px;left:361px;}
12.inv_spear{top:43px;left:99px;}
13.inv_snob{top:276px;left:398px;}
14.inv_spy{top:264px;left:340px;}
15.inv_sword{top:208px;left:336px;}
16
17.tooltip_container {
18 background-color: #F4F0E5;
19 z-index: 9999;
20 width: 250px;
21}
22
23.tip-title {
24 font-weight: bold;
25 background-color: #DED3B9;
26 padding: 3px;
27}
28
29.tip-text {
30 padding: 3px;
31}
</link>
<link href="/css/stamm_new_menu.css?1251209465" type="text/css" rel="stylesheet">
1ul.quickbar {
2 border: 1px solid black;
3 background-color: #F1EBDD;
4 border-spacing:1px;
5 list-style-type:none;
6 padding:0;
7 margin:0 auto;
8}
9 ul.quickbar li {
10 padding:0px;
11 padding-left: 4px; padding-right: 4px;
12 white-space: nowrap;
13 background-color: #F8F4E8;
14 background-image:url(../graphic/background/grey.jpg);
15 display:inline;
16}
</link>
<link href="/css/stamm.css?1255509606" type="text/css" rel="stylesheet">
</link>
<link href="/css/overview.css?1251209465" type="text/css" rel="stylesheet">
</link>
<script type="text/javascript" src="/js/mootools.js?1251209464">
</script>
<script type="text/javascript">
</script>
<script type="text/javascript" src="/js/ajax.js?1251209464">
</script>
<script type="text/javascript" src="/js/script.js?1257345606">
</script>
<script type="text/javascript" src="/js/menu.js?1251209464">
</script>
<script type="text/javascript">
</script>
</head>
<body id="ds_body">
<div class="top_background"/>

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS