Location: PHPKode > projects > Modular Site Manager > htdocs/tutorials/Java-3.php
<div class="code"><strong>CODE:</strong><br /><hr />
<?php xhtml_highlight('<script language="JavaScript" type="text/JavaScript">
<!--
function email(email, domain)
{
	window.setTimeout("location.href=\'mailto:" + email +"@" + domain +"\'");
}
//-->
</script>'); ?></div><br />
<br />
We create the function "email", with the variables "email" &amp; "domain". then we write to the browser "mailto:hide@address.com".<br />
<br />
To use it just do <div class="code"><strong>CODE:</strong><br /><hr /><?php xhtml_highlight('<a href=\"javascript:email(\'you\',\'yourdomain.tld\');\">some text</a>'); ?></div><br />
<br />
Enjoy!!
Return current item: Modular Site Manager