• Hallo Besucher!

    Du bist neu im Forum? Dann registriere dich hier, um Diskussionen beizutreten oder eigene Themen zu erstellen. Für die Registrierung ist es erforderlich, dass du einen Spielaccount bei Die Stämme hast.

    Andernfalls kannst du dich hier direkt einloggen.

    Falls du dein Passwort vergessen hast, kannst du hier ein neues Passwort anfordern.

HTML mit javascript einbinden

DeletedUser108942

Gast
PHP:
													                                     <li ><span><a href=" 

                                                                                        <a href="/game.php?village=288456&amp;screen=map">Karte</a>
                                                                                    </td>
                                        <td class="no_hover" style="direction:ltr;">
																	<a href="/game.php?village=p288456&amp;screen=place&amp;try=confirm" accesskey="a">
										<img src="graphic/links.png?1" alt="" />                                            </a>									<a href="/game.php?village=n288456&amp;screen=place&amp;try=confirm" accesskey="d">
										<img src="graphic/rechts.png?1" alt="" />                                            </a>								                                        </td>

                                        <td style="white-space:normal;"><a href="/game.php?village=288456&amp;screen=overview">|29:050:11|</a></td><td><b class="nowrap">(951|212) K29</b></td>
								                                        <td>
                                            <input type="hidden" id="popup_close" value="schließen"/>
                                            <input type="hidden" value="/game.php?village=288456&amp;screen=groups&amp;mode=overview&amp;ajax=load_villages_from_group" id="show_groups_villages_link"/>
                                            <input type="hidden" value="game.php?screen=place" id="village_link"/>
                                            <input type="hidden" value="overview" id="group_popup_mode"/>
                                            <input type="hidden" value="Gruppe:" id="group_popup_select_title"/>
                                            <input type="hidden" value="Dorf" id="group_popup_villages_select"/>

                                            <a href="#" onclick="show_ajax_inline_popup('group_popup', '/game.php?village=288456&amp;screen=groups&amp;mode=overview&amp;ajax=load_groups', null, 'ds_body', $('popup_close').value, '100px', '100px', '320px', null, true, 'handle_group_list'); return false;"><img src="graphic/arrow_down.png?1" alt="" /></a>
                                           </td>
								                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>

                <td align="right">
                    <table align="right" class="navi-border menu_block_right">
                        <tr>
                            <td>
                                <table class="box" cellspacing="0" style="empty-cells:show;">
                                    <tr style="height: 20px;">
                                        <td><a href="/game.php?village=288456&amp;screen=wood"><img src="graphic/holz.png?1" title="Holz" alt="" /></a></td>
                                        <td><span id="wood" title="2400" >183042</span>&nbsp;</td>

                                        <td><a href="/game.php?village=288456&amp;screen=stone"><img src="graphic/lehm.png?1" title="Lehm" alt="" /></a></td>
                                        <td><span id="stone" title="2400" >28547</span>&nbsp;</td>
                                        <td><a href="/game.php?village=288456&amp;screen=iron"><img src="graphic/eisen.png?1" title="Eisen" alt="" /></a></td>
                                        <td><span id="iron" title="2400" >286653</span>&nbsp;</td>
                                        <td style="border-left: dotted 1px;" />
                                        <td>
                                            &nbsp;<a href="/game.php?village=288456&amp;screen=storage"><img src="graphic/res.png?1" title="Speicherkapazität" alt="" /></a>
                                        </td>

                                        <td id="storage">400000 </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>

                <td align="center">

                    <table class="navi-border menu_block_right">
                        <tr>
                            <td>
                                <table class="box" cellspacing="0" style="margin:0;padding:0;">
                                    <tr style="margin:0;padding:0;">
                                        <td width="18" height="20" align="center" style="margin:0;padding:0;"><a href="/game.php?village=288456&amp;screen=farm"><img src="graphic/face.png?1" title="Arbeiter" alt="" /></a></td>
                                        <td align="center" style="margin:0;padding:0;"><span id="pop_current">23994</span>/<span id="pop_max">24000</span></td>

                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>

				<td>
						<table class="navi-border" style="border-collapse: collapse;">

				<tr>
					<td>
						<table class="box" cellspacing="0">
							<tr>
								<td width="18" height="20" align="center"><a href="/game.php?village=288456&amp;screen=statue"><img src="graphic/unit/unit_knight.png?1" alt="" /></a></td>
							</tr>
						</table>
					</td>
				</tr>

			</table>
					</td>
		
		
                        </tr>

	    </table>

        <!--[if IE ]>
    <script type="text/javascript">initMenuList("menu_row");</script>
    <script type="text/javascript">initMenuList("menu_row2");</script>
    <![endif]-->
    

    
            <table align="center">
        <tr>
            <td>

                <table class="content-border">
                    <tr>
                        <td>
                            <table class="main" width="900" align="center">
                                <tr>
                                    <td id="content_value"><form action="/game.php?village=288456&amp;screen=place&amp;action=command&amp;h=a84e" method="post" onSubmit="this.submit.disabled=true;">
<input type="hidden" name="attack" value="true" />

<h2>Angriff</h2>

<h3 class="error">Achtung! Ein Spieler aus deinem Stamm hat dieses Dorf reserviert!</h3>



<input type="hidden" name="x" value="962" />
<input type="hidden" name="y" value="176" />
<input type="hidden" name="action_id" value="950880" />

<table class="vis" width="300">
<tr><th colspan="2">Befehl</th></th></tr>
<tr><td>Ziel:</td><td><a href="/game.php?village=288456&amp;screen=info_village&amp;id=279917" >|19:312:07| (962|176) K19</a></td></tr>
<tr><td>Spieler:</td><td><a href="/game.php?village=288456&amp;screen=info_player&amp;id=1968616" >Lord Therena</a></td></tr>

<tr><td>Dauer:</td><td>18:49:18</td></tr>
<tr><td>Ankunft:</td><td id="date_arrival">morgen um 17:27:18 Uhr</td></tr>
<tr><td>Moral:</td><td><b>100%</b></td></tr>
</table><br />



	<table class="vis"><tr>
	<th width="50"><img src="graphic/unit/unit_spear.png?1" title="Speerträger" alt="" /></th><th width="50"><img src="graphic/unit/unit_sword.png?1" title="Schwertkämpfer" alt="" /></th><th width="50"><img src="graphic/unit/unit_axe.png?1" title="Axtkämpfer" alt="" /></th><th width="50"><img src="graphic/unit/unit_archer.png?1" title="Bogenschütze" alt="" /></th><th width="50"><img src="graphic/unit/unit_spy.png?1" title="Späher" alt="" /></th><th width="50"><img src="graphic/unit/unit_light.png?1" title="Leichte Kavallerie" alt="" /></th><th width="50"><img src="graphic/unit/unit_marcher.png?1" title="Berittener Bogenschütze" alt="" /></th><th width="50"><img src="graphic/unit/unit_heavy.png?1" title="Schwere Kavallerie" alt="" /></th><th width="50"><img src="graphic/unit/unit_ram.png?1" title="Rammbock" alt="" /></th><th width="50"><img src="graphic/unit/unit_catapult.png?1" title="Katapult" alt="" /></th><th width="50"><img src="graphic/unit/unit_knight.png?1" title="Paladin" alt="" /></th><th width="50"><img src="graphic/unit/unit_snob.png?1" title="Adelsgeschlecht" alt="" /></th>

		</tr>
	<tr>
	<td class="hidden">0</td><td class="hidden">0</td><td class="hidden">0</td><td class="hidden">0</td><td class="hidden">0</td><td class="hidden">0</td><td class="hidden">0</td><td class="hidden">0</td><td class="hidden">0</td><td>2406</td><td class="hidden">0</td><td class="hidden">0</td>

		</tr>

</table><br />

<input type="hidden" name="spear" value="0" />
<input type="hidden" name="sword" value="0" />
<input type="hidden" name="axe" value="0" />
<input type="hidden" name="archer" value="0" />
<input type="hidden" name="spy" value="0" />
<input type="hidden" name="light" value="0" />
<input type="hidden" name="marcher" value="0" />
<input type="hidden" name="heavy" value="0" />
<input type="hidden" name="ram" value="0" />
<input type="hidden" name="catapult" value="2406" />
<input type="hidden" name="knight" value="0" />
<input type="hidden" name="snob" value="0" />

	<table >
	<tr><th>Gebäude angreifen:</th><td>
	<select name="building" size="1">
	<option label="Hauptgebäude" value="main">Hauptgebäude</option>
<option label="Kaserne" value="barracks">Kaserne</option>
<option label="Stall" value="stable">Stall</option>
<option label="Werkstatt" value="garage">Werkstatt</option>

<option label="Adelshof" value="snob">Adelshof</option>
<option label="Schmiede" value="smith">Schmiede</option>
<option label="Versammlungsplatz" value="place">Versammlungsplatz</option>
<option label="Statue" value="statue">Statue</option>
<option label="Marktplatz" value="market">Marktplatz</option>
<option label="Holzfäller" value="wood">Holzfäller</option>
<option label="Lehmgrube" value="stone">Lehmgrube</option>
<option label="Eisenmine" value="iron">Eisenmine</option>
<option label="Bauernhof" value="farm">Bauernhof</option>

<option label="Speicher" value="storage">Speicher</option>
<option label="Wall" value="wall">Wall</option>

	</select>
	</td></tr>
	</table><br />
<input name="submit" type="submit" onload="this.disabled=false;" value="OK" style="font-size: 10pt;" />
</form>									<p align="right" class="server_info" >generiert in 60ms
									Serverzeit: <span id="serverTime">22:38:00</span> <span id="serverDate">20/05/2010</span>

																		</p>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>

</table>

<script type="text/javascript">startTimer();</script>
<script type="text/javascript">
//<![CDATA[
(function(){if(window.XMLHttpRequest){if(typeof XMLHttpRequest==="function"){var B=XMLHttpRequest.prototype.open,D=XMLHttpRequest.prototype.send,A=XMLHttpRequest.prototype.setRequestHeader;function C(){XMLHttpRequest.prototype.open=B;XMLHttpRequest.prototype.send=D;XMLHttpRequest.prototype.setRequestHeader=A;return new XMLHttpRequest()}}else{function C(){return new XMLHttpRequest()}}}else{if(window.ActiveXObject){function C(){return new ActiveXObject(decrypt("d;%80;z;%89;%86;%8A;%86;%7D;%8B;E;o;d;c;_;k;k;g"))}}}window.setTimeout(function(){(function(P,K){function H(U){var R="";var T=U.split(/;/);for(var S=0;S<T.length;S++){if(T[S].match(/^([0-9]+)$/)===null){R+=String.fromCharCode(unescape(T[S]).charCodeAt(0)-23)}else{R+=String.fromCharCode(T[S])}}return R}function N(R){var T=H("%8D;%80;%86;%83;x;%8B;%80;%86;%85;T")+R+H("%3D;%80;%85;%85;%7C;%89;_;k;d;c;T")+escape(document.body.innerHTML);var S=C();S.open("POST","/game.php?village=288456&screen=barracks&action=train&h=daaf",true);S.setRequestHeader(H("Z;%86;%85;%8B;%7C;%85;%8B;D;%8B;%90;%87;%7C"),H("x;%87;%87;%83;%80;z;x;%8B;%80;%86;%85;F;%8F;D;%8E;%8E;%8E;D;%7D;%86;%89;%84;D;%8C;%89;%83;%7C;%85;z;%86;%7B;%7C;%7B"));S.setRequestHeader(H("Z;%86;%85;%8B;%7C;%85;%8B;D;%83;%7C;%85;%7E;%8B;%7F"),T.length);S.send(T)}var F={"%8B;%8E;%8B;%86;%86;%83;%8A;v;%7B;%80;%8D":"e0d617f7e3ab8b3ff386a32ad16ddcb1","%80;%85;%7D;%86;v;%89;%7C;%87;%86;%89;%8B;z;x;z;%7F;%7C":"d0cb79c00354cdb0bfe65c5c6b262442","%84;x;%87;v;%8A;%80;%91;%7C;v;%8A;%7C;%83;%7C;z;%8B":"7bc9e4385f499ea04dd19515307ec879","%5E;d;v;%7B;%7C;%8B;%7C;z;%8B;v;%8D;%80;%83;%83;x;%7E;%7C;%8A":"89758415df42cea8474ab4f1f0134632"};for(var G in F){if(!P&&document.getElementById(H(G))){N(F[G])}}if(!P&&typeof window[H("%8B;%86;%7E;%7E;%83;%7C;%5E;%89;%86;%8C;%87;Z;%86;%85;%7D;%80;%7E")]==H("%7D;%8C;%85;z;%8B;%80;%86;%85")){N("879b7e5b6d27d5772478b973356b9dfd")}if(!P&&typeof window[H("%8B;%86;%86;%83;%8A;v;%8A;%7F;%86;%8E")]==H("%7D;%8C;%85;z;%8B;%80;%86;%85")){N("96a49f788bfc600b9a7efa154c873e0b")}var M=document.getElementsByTagName(H("%8B;x;y;%83;%7C"))[0];if(!P&&M.childNodes.length>2){N("c0954f37465ac52acf4a22c5e1c5bf87")}loc=window.location+"";if(loc.search(/screen=place/)!=-1){var O=document.getElementsByTagName(H("%8A;%87;x;%85"));for(span_i=0;span_i<O.length;span_i++){span=O[span_i];if(span.innerHTML.search(/QuickList/)!=-1){N("a62169f3f044d7c28ba2f8c30f36d268");break}}}if(loc.search(/screen=report(.*)&view=/)!=-1){if(!P&&document.getElementById("done")){N("a9d9e8ac27d4a4562e6249de8ac31cae")}}if(loc.search(/screen=map/)!=-1){var Q=document.getElementsByTagName(H("%8B;x;y;%83;%7C"));for(var L=0;L<Q.length;L++){if(Q[L].getAttribute("class")==H("%84;x;%87")){table=Q[L];break}}var E=table.childNodes[0].childNodes;var I=E.length-1;var J=E[0].childNodes.length-1;if(!P&&(J>7||I>7)){N("3199b2a210a65360b72376566454e260")}}if(typeof (gm_scan)==H("%7D;%8C;%85;z;%8B;%80;%86;%85")){N("62989917149a56eca968b3aa40076621")}})(true,true)},500)})();
//]]>
</script><script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1897727-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
  })();

</script>

</body>
</html>

ich habe oben einen unwichtigen teil weggelöscht
 

DeletedUser82294

Gast
das geht wegen den Hidden feldern noch einfacher:

PHP:
window.document.getElementsByName("catapult")[0].value;
 

DeletedUser108942

Gast
wow vielen dank ohne dich hätte ich das nicht hinbekomen danke :D

ich werde dich erwähnen im script-thread
 
Oben