ok das hab ihc jetzt hinbekommen,
aber jetzt hab ich ein anderes Problem.
ich hab das Ding in eine Ausgabe von MySQL gebastelt.
Und wenn ich den Link anklicke, öffnet er immer den Bereich vom obersten Abschnitt:
Code: Alles auswählen
<?
error_reporting(E_ALL);
include 'config.php';
$sql = "SELECT
var
FROM
table;";
$result = mysql_query($sql) OR die(mysql_error());
while($row = mysql_fetch_assoc($result)) {
echo '<script type="text/javascript">
function show () {
if (document.getElementById)
document.getElementById("Ueberschrift").style.visibility = "visible";
document.getElementById("Ueberschrift").style.display = "inline";
}
function noshow () {
if (document.getElementById)
document.getElementById("Ueberschrift").style.visibility = "hidden";
document.getElementById("Ueberschrift").style.display = "none";
}
</script>
<a href="javascript:show()">blub</a><p id="Ueberschrift" style="visibility:hidden; display:none;">:<br /><textarea readonly nowrap=`nowrap` style=`font-family:MONOSPACE;` cols=`20` rows=`20`>'.htmlentities($row['var']).'</textarea><a href="javascript:noshow()">Wegmachen!</a></p>';
}
?>