Silent_digital
Mitglied
Hi,
ich versuche durch folgendes array eine klapptext zu erstellen also das wenn man [ TOGGLE] öffnet usw. aber irgendwie klappts nich. Vileicht kann mir ja jemand helfen.
ich versuche durch folgendes array eine klapptext zu erstellen also das wenn man [ TOGGLE] öffnet usw. aber irgendwie klappts nich. Vileicht kann mir ja jemand helfen.
PHP:
$search = array(
'[TOGGLE]',
'[/TOGGLE]' );
$replace = array(
'<table>
<td VALIGN="top"><a href="javascript:klapptext('.$newsID.')"><img alt="Klappnews" src="gfx/plus.gif" border="0" id="klapptextImg_'.$newsID.'" style="position: relative; top: 3px;"/> Klapptext </a>
</td>
</tr>
<tr id="klapptextRow_'.$newsID.'" style="display: none">
<td width="400" COLSPAN="2" ALIGN="LEFT" VALIGN="TOP">',
'</td></tr></table>' );
$inhalt = str_replace($search, $replace, $inhalt);