komischer Code bei der Bildergalerie
Verfasst: Fr 17. Okt 2003, 15:59
Hallo liebe Leute,
ich benutzte die Bildergalerie aus dem Forum. Aber ich habe da ein Problem mit JavaScript. Mein Thumbnail wird geladen, aber der Link darauf funktioniert. JavaScript-Fehler.
Folgenden Teil ist im Out-Put des Moduls geschrrieben:
?>
<script language="JavaScript">
function Detailbild (theSRC,theDescription) {
theWindow = window.open("",'detailbild','menubar=no,scrollbars=yes,resizable=yes,width=620,height=680');
inhalt ='<html><head><ti';
inhalt += 'tle>Detailansicht</ti';
inhalt += 'tle></he';
inhalt += 'ad><link href="style.css" rel="stylesheet" type="text/css">';
inhalt += '<body leftmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" rightmargin="0">';
inhalt += '<img src="'+theSRC+'" alt="'+theDescription+'" border="0"><br><br>';
inhalt += '<div align="center"><span class="headline">'+theDescription+'</span></div><br>';
inhalt += '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
inhalt += '<tr>';
inhalt += '<td height="0%" width="100%" align="right">';
inhalt += '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
inhalt += '<tr>';
inhalt += '<td background="images/punkte_schwarz.gif"><img src="images/clear.gif" width="1" height="2"></td>';
inhalt += '</tr>';
inhalt += '</table></td>';
inhalt += '</tr>';
inhalt += '<tr>';
inhalt += '<td height="2%" width="100%" align="right">';
inhalt += '<table border="0" cellspacing="0" cellpadding="0" height="14">';
inhalt += '<tr>';
inhalt += '<td class="extramenu"><img src="images/pfeil_gruen.gif" width="8" height="7">';
inhalt += '<a href="javascript:window.close()" class="linktext">Fenster schliessen</a></td>';
inhalt += '<td width="10" class="extramenu"> </td>';
inhalt += '</tr>';
inhalt += '</table></td>';
inhalt += '</tr>';
inhalt += '</table>';
inhalt += '</body>';
inhalt += '</html>';
theWindow.document.write(inhalt);
theWindow.focus();
}
</script>
<?php
Wenn ich aber in der Function den Teil mit dem Body rausnehme, dann funktioniert das. Kein JavaScript-Fehler.
Ich habe auch mal im Quellcode geguckt. Wenn ich den body drin habe, dann fügt er mir nach dem letzten Table noch folgende Zeilen an
inhalt += '<form name="editcontent" method="post" action="front_content.php?area=con_editcontent&idart=58&idcat=35&lang=1&action=20&contenido=defeaa45219d7ff6f4c9f1615cbea905"><input type="hidden" name="PHPSESSID" value="eecd602cce72ef0300e85235c344d988" />
<input type="hidden" name="changeview" value="edit">
<input type="hidden" name="data" value="">
<input type="hidden" name="con_class" value="">
</form></body>';
ich frage mich echt woher er das Form kommt. Und er schreibt es wirklich nur in den Quellcode, wenn ein body vorhanden ist.
Es ist zum verrückt werden. Weiß jemand woher das kommt?
ich benutzte die Bildergalerie aus dem Forum. Aber ich habe da ein Problem mit JavaScript. Mein Thumbnail wird geladen, aber der Link darauf funktioniert. JavaScript-Fehler.
Folgenden Teil ist im Out-Put des Moduls geschrrieben:
?>
<script language="JavaScript">
function Detailbild (theSRC,theDescription) {
theWindow = window.open("",'detailbild','menubar=no,scrollbars=yes,resizable=yes,width=620,height=680');
inhalt ='<html><head><ti';
inhalt += 'tle>Detailansicht</ti';
inhalt += 'tle></he';
inhalt += 'ad><link href="style.css" rel="stylesheet" type="text/css">';
inhalt += '<body leftmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" rightmargin="0">';
inhalt += '<img src="'+theSRC+'" alt="'+theDescription+'" border="0"><br><br>';
inhalt += '<div align="center"><span class="headline">'+theDescription+'</span></div><br>';
inhalt += '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
inhalt += '<tr>';
inhalt += '<td height="0%" width="100%" align="right">';
inhalt += '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
inhalt += '<tr>';
inhalt += '<td background="images/punkte_schwarz.gif"><img src="images/clear.gif" width="1" height="2"></td>';
inhalt += '</tr>';
inhalt += '</table></td>';
inhalt += '</tr>';
inhalt += '<tr>';
inhalt += '<td height="2%" width="100%" align="right">';
inhalt += '<table border="0" cellspacing="0" cellpadding="0" height="14">';
inhalt += '<tr>';
inhalt += '<td class="extramenu"><img src="images/pfeil_gruen.gif" width="8" height="7">';
inhalt += '<a href="javascript:window.close()" class="linktext">Fenster schliessen</a></td>';
inhalt += '<td width="10" class="extramenu"> </td>';
inhalt += '</tr>';
inhalt += '</table></td>';
inhalt += '</tr>';
inhalt += '</table>';
inhalt += '</body>';
inhalt += '</html>';
theWindow.document.write(inhalt);
theWindow.focus();
}
</script>
<?php
Wenn ich aber in der Function den Teil mit dem Body rausnehme, dann funktioniert das. Kein JavaScript-Fehler.
Ich habe auch mal im Quellcode geguckt. Wenn ich den body drin habe, dann fügt er mir nach dem letzten Table noch folgende Zeilen an
inhalt += '<form name="editcontent" method="post" action="front_content.php?area=con_editcontent&idart=58&idcat=35&lang=1&action=20&contenido=defeaa45219d7ff6f4c9f1615cbea905"><input type="hidden" name="PHPSESSID" value="eecd602cce72ef0300e85235c344d988" />
<input type="hidden" name="changeview" value="edit">
<input type="hidden" name="data" value="">
<input type="hidden" name="con_class" value="">
</form></body>';
ich frage mich echt woher er das Form kommt. Und er schreibt es wirklich nur in den Quellcode, wenn ein body vorhanden ist.
Es ist zum verrückt werden. Weiß jemand woher das kommt?