Arbeitsloser: komisches Problem...

Beitrag lesen

Hallo,
probiers mal damit:

  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  
<html>  
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">  
<title>Insert title here</title>  
<script type="text/javascript">  
  

~~~~~~javascript
  
  
  
 window.onload=init;  
  
 function init() {  
  document.getElementById("suchlink").onclick=allySuche;  
 }  
  
 function allySuche() {  
  var uni = window.prompt("Universum", "");  
  var ally = window.prompt("Allianztag", "");  
  window.location.href = "http://Uni" + uni + ".ogame.de/game/ainfo.php?allytag=" + ally;  
 }  
  

~~~~~~html
  
  
  
</script>  
</head>  
<body>  
<span id="suchlink">suche</span>  
</body>  
</html>  

Gruß, der Arbeitslose