Ik mag van Lennard de spoiler van one2xs gebruiken voor mijn eigen site indien ik die een beetje aanpas. Maar hij is zo ingewikkeld dat ik hem niet vind. Iemand die die voor mij kan zoeken, en geven?
Thanks
Thanks


function togglespoiler(id)
{
$("#" + id).slideToggle(slow, function() {
$("#button-" + id).val( $("#button-" + id).val() == Laat inhoud zien ? Verberg inhoud : Laat inhoud zien);
});
} [COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]function[/COLOR] spoiler[COLOR= #007700]([/COLOR][COLOR= #0000BB]$string[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"(([spoiler=(.+?)](.+?)[/spoiler])|([spoiler](.+?)[/spoiler]))is"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$string[/COLOR][COLOR= #007700])) {[/COLOR]
[COLOR= #0000BB]$string[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"([spoiler=(.+?)](.+?)[/spoiler])is"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]<fieldset><legend> <strong>Spoiler: $1 (<a href="javascript:void(0);" onclick="$(this).parent().parent().parent().children(div.in).animate({height: toggle, opacity: toggle}, 500);">open/sluit</a>)</strong> </legend><div style="display: none;" class="in">$2</div></fieldset>[/COLOR] [COLOR= #007700],[/COLOR][COLOR= #0000BB]$string[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$string[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"([spoiler](.+?)[/spoiler])is"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]<fieldset><legend> <strong>Spoiler (<a href="javascript:void(0);" onclick="$(this).parent().parent().parent().children(div.in).animate({height: toggle, opacity: toggle}, 500);">open/sluit</a>)</strong> </legend><div style="display: none;" class="in">$1</div></fieldset>[/COLOR] [COLOR= #007700],[/COLOR][COLOR= #0000BB]$string[/COLOR][COLOR= #007700]);
}[/COLOR]
[URL="http://www.php.net/return"]return[/URL] [COLOR= #0000BB]$string[/COLOR][COLOR= #007700];
}[/COLOR]
?> 