[...] Thank you very much for making a great snippet out of the emailobfuscation-script.
<span class=\"emo_address\">Turn on JavaScript!</span>
<span class=\"emo_address\"><a href=\"/url-of-your-contact-form.html\">contact me</a></span>
if (!isset($_POST['submit'])) { //Eol: skip submitted pages
$modx->documentOutput = preg_replace_callback("#<a[^>]*mailto:([^'\"]+)['\"][^>]*>([^<]*)</a>#i", "encodeLink", $modx->documentOutput);
$modx->documentOutput = preg_replace_callback(email_regex(), "encodeLink", $modx->documentOutput);
}
--------------------------- Fehler --------------------------- Es ist ein Laufzeitfehler aufgetreten. Möchten Sie den Debugmodus starten? Zeile: 22 Fehler: Nicht implementiert
/*
* Written by: Florian Wobbe
* Contact: www.eprofs.de
* Created: 2008-01-12 - v1.1
* Modified: 2008-01-17 - v1.2 - Email encoding
* Modified: 2008-01-19 - v1.3 - Custom Base64 encoding
* For: MODx cms (modxcms.com)
* Name: emo - E-Mail Obfuscation
* Description: These javascript functions replace html placeholder
* span elements with decrypted email addresses.
* License: GPL
*/
// addLoadEvent is Simon Willison's function that allows for convenient
// addition of multiple fuctions that are all supposed to be triggered
// on window.onload event.
// takes function name as the argument. e.g. addLoadEvent(doPopups);
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func; //*********** SCRIPT STOPS HERE
// Finish encrypted addresses block $addressesjs .= " addLoadEvent(emo_replace);" . "\n" . //Parenthesis at emo_replace REMOVED " //-->" . "\n" . " </script>" . "\n";
// Finish encrypted addresses block
$addressesjs .=
" window.addEvent('domready', function(){" . "\n" .
" emo_replace();" . "\n" .
" });" . "\n".
/*REPLACED " addLoadEvent(emo_replace);" . "\n" .*/
" //-->" . "\n" . " </script>" . "\n";