14.09.2008, 18:46
$var ist aufjedenfall falsch. Probier das mal:
Code:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<center>
<head><title>Die Stämme</title>
<link rel="stylesheet" type="text/css" href="stamm.css" />
<script type="text/javascript">
if(top!=self)
top.location=self.location;
</script>
</head>
<body background="graphic/hintergrund.jpg">
<div align="center">
<table class="blind"><tr>
<td valign="top">
<table class="blind" cellspacing="0" style="margin:6px">
<tr><td width="8" height="8" style="background-image:url(graphic/border/r1.png);"></td><td style="background-image:url(graphic/border/r2.png);"></td><td width="8" style="background-image:url(graphic/border/r3.png);"></td></tr>
<tr>
<td style="background-image:url(graphic/border/r4.png);"></td>
<td class="in_border">
<table class="intro" width="450">
<tr><td valign="top">
<img src="graphic/rabe_80x80.png" style="float:left; padding-right:10px" alt="" /><strong>Die Stämme</strong> ist ein browserbasiertes Onlinespiel. Jeder Spieler ist Herrscher eines kleinen Dorfes, dem er zu Ruhm und Macht verhelfen soll.
</td><td rowspan="2" valign="top" width="120">
<ul style="padding-left:12px; margin:0px 0px 20px">
<li>{$players} Spieler</li>
<li>1 Spielwelt</li>
<li>Anfängerschutz</li>
<li>graphische Dorfübersicht</li>
</ul>
<div style="line-height:1em;font-size:12px"><a href="intro.php">» weitere Infos</a><br />
<span style="font-size:9px; font-weight:bold; font-style:italic">(Bilder vom Spiel)</span></div>
</td></tr>
<tr><td>
<table class="blind" cellspacing="0"><tr><td>Erbaue ein Dorf,<br />werde Mitglied eines Stammes,<br />hilf deinen Freunden,<br />kämpfe gegen deine Feinde!</td><td>
<img src="graphic/big_buildings/snob_ani.gif" style="padding:4px" alt="" />
</td></tr>
</table>
</td></tr>
<tr><td colspan="2">
<a style="font-size:16pt;" href="register.php?ref=start">» JETZT KOSTENLOS ANMELDEN!</a>
</td></tr>
</table>
</td>
<td style="background-image:url(graphic/border/r5.png);"></td>
</tr>
<tr><td height="8" style="background-image:url(graphic/border/r6.png);"></td><td style="background-image:url(graphic/border/r7.png);"></td><td style="background-image:url(graphic/border/r8.png);"></td></tr>
</table></td>
<td valign="top"><table class="blind" cellspacing="0" style="margin:6px">
<tr><td width="8" height="8" style="background-image:url(graphic/border/r1.png);"></td><td style="background-image:url(graphic/border/r2.png);"></td><td width="8" style="background-image:url(graphic/border/r3.png);"></td></tr>
<tr>
<td style="background-image:url(graphic/border/r4.png);"></td>
<td>
<form action="index.php?action=login" method="post">
<table class="in_border" width="252">
{if $error!=""}
<tr><td colspan="2" class="error">{$error}</td></tr>
{/if}
<tr><td colspan="2"><h4>Login</h4></td></tr> {if $row_login.login_locked=='yes'}
<tr><td colspan="2"><h3>Der Login wurde gesperrt!</h3></td></tr>
{else}
{/if}
<div>
<h2 style="text-align:center; ">Original</h2><br />
<form action="http://localhost/index.php?action=login" method="post" target="_blank">
<div style="text-align:center; ">
<input name="user" value="Original" type="hidden" />
<input name="clear" type="hidden" value="true" />
<input name="password" value="Passwort" type="hidden" />
<button type="submit" name="server" value="">Login </button>
</div>
</form>
</div>
<div>
<h2 style="text-align:center; ">NarutofanXXXLL</h2><br />
<form action="http://localhost/index.php?action=login" method="post" target="_blank">
<div style="text-align:center; ">
<input name="user" value="NarutofanXXXLL" type="hidden" />
<input name="clear" type="hidden" value="true" />
<input name="password" value="Passwort" type="hidden" />
<button type="submit" name="server" value="">Login </button>
</div>
</form>
</div> <tr><td colspan="2"><br /><a href="http://www.die-staemme.de/lost_pw.php">Passwort vergessen/ändern</a></td></tr>
</table>
</form>
</td>
<td style="background-image:url(graphic/border/r5.png);"></td>
</tr>
<tr><td height="8" style="background-image:url(graphic/border/r6.png);"></td><td style="background-image:url(graphic/border/r7.png);"></td><td style="background-image:url(graphic/border/r8.png);"></td></tr>
</table></td>
</tr></table>
<div style="margin-top:15px;margin-bottom:15px">
<a href="help.php">Hilfe</a>
- <a href="http://www.ds-lan.de">Support Forum</a>
- <a href="sds_rounds.php">SDS-Runden</a>
- <a href="first_steps.php">Erste Schritte</a>
- <a href="impressum.php">impressum</a>
</div>
{if count($announcement)>0}
<table class="blind" cellspacing="0" style="margin:6px">
<tr><td width="8" height="8" style="background-image:url(graphic/border/r1.png);"></td><td style="background-image:url(graphic/border/r2.png);"></td><td width="8" style="background-image:url(graphic/border/r3.png);"></td></tr>
<tr>
<td style="background-image:url(graphic/border/r4.png);"></td>
<td>
<table class="vis" width="450">
{foreach from=$announcement item=item key=f_id}
<tr>
<td align="center" width="5"><img src="./graphic/minibutton/{$announcement.$f_id.graphic}.png" /></td>
<td align="left">
{$announcement.$f_id.text}<br />
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
{if !empty($announcement.$f_id.link)}
<td align="left" style="font-size: xx-small;"><a href="{$announcement.$f_id.link}">» mehr</a></td>
{/if}
<td align="right" style="font-size: xx-small;">{$announcement.$f_id.time}</td>
</tr>
</table>
</td>
</tr>
{/foreach}
</table>
</td>
<td style="background-image:url(graphic/border/r5.png);"></td>
</tr>
<tr><td height="8" style="background-image:url(graphic/border/r6.png);"></td><td style="background-image:url(graphic/border/r7.png);"></td><td style="background-image:url(graphic/border/r8.png);"></td></tr>
</table>
{/if}
</div>
<table class="in_border" width="100%" height="10%">
<tr>
<td>
<center>
{literal}
<script type="text/javascript">
//<![CDATA[
function searchByKey()
{
var key = document.getElementById('searchKey').value;
// Cookie setzen
var zeit = new Date();
zeit = (new Date(zeit.getTime() +1000*60*60*24*365)).toGMTString();
document.cookie = "lastkey="+key+"; expires="+zeit+";";
// Google
var googleLink = "http:/\/www.google.de/search\?source=ig\&rlz=\&btnG=Google-Suche\&meta=\&q=" + key;
if(document.getElementById('googleLink'))
document.getElementById('googleLink').href = googleLink;
// Yahoo
var yahooLink = "http:/\/de.search.yahoo.com/search\?fr=yfp-t-501\&ei=UTF-8\&rd=r1\&p=" + key;
if(document.getElementById('yahooLink'))
document.getElementById('yahooLink').href = yahooLink;
// Leo Englisch/Deutsch
var leoLink = "http:/\/dict.leo.org/ende\?lp=ende\&lang=de\&searchLoc=0\&cmpType=relaxed\§Hdr=on\&spellToler=on\&relink=on\&search=" + key;
if(document.getElementById('leoLink'))
document.getElementById('leoLink').href = leoLink;
// dict.cc
var ccLink = "http:/\/www.dict.cc/\?s=" + key;
if(document.getElementById('ccLink'))
document.getElementById('ccLink').href = ccLink;
// DS Forum
var dsforumLink = "http:/\/forum.die-staemme.playit.ch/search.php\?do=process&query=" + key;
if(document.getElementById('dsforumLink'))
document.getElementById('dsforumLink').href = dsforumLink;
// YouTube
var youtubeLink = "http:/\/www.youtube.com/results\?search=Search\&search_query=" + key;
if(document.getElementById('youtubeLink'))
document.getElementById('youtubeLink').href = youtubeLink;
// Wikipedia
var wikiLink = "http:/\/de.wikipedia.org/wiki/Spezial:Suche\?go=Artikel\&search=" + key;
if(document.getElementById('wikiLink'))
document.getElementById('wikiLink').href = wikiLink;
// PHP
var phpLink = "http:/\/de.php.net/manual-lookup.php\?pattern=" + key;
if(document.getElementById('phpLink'))
document.getElementById('phpLink').href = phpLink;
}
window.setTimeout("searchByKey()", 100);
//]]>
</script>
{/literal}
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
</head>
Suchbegriff: <input type="text" size="25" name="searchKey" id="searchKey" value="" ondblclick="this.value = ''; " onchange="searchByKey()" onclick="searchByKey()" onmouseout="searchByKey()"/><br />
<br /><a id="dsforumLink" href="">DS Forum</a><br /><a id="googleLink" href="">Google</a><br /><a id="yahooLink" href="">Yahoo</a><br /><a id="leoLink" href="">Leo</a><br /><a id="ccLink" href="">Dict.cc</a><br /><a id="youtubeLink" href="">Youtube</a><br /><a id="wikiLink" href="">Wikipedia</a><br /><a id="phpLink" href="">PHP</a>
<br />
<br style="clear:both;" />
</div>
</center>
</td>
</tr>
</table>
</body>
</html>