PDA

View Full Version : Email Riddler Improvement Suggestion



nickm37
07-22-2009, 07:00 AM
1) CODE TITLE:
Email Riddler Improvement Suggestion
2) AUTHOR NAME/NOTES:
Dynamic Drive
3) DESCRIPTION:
Add alternative text if JavaScript is disabled.
4) URL TO CODE:

or, ATTACHED BELOW (see #3 in guidelines below):

Add an no script string.
[CODE]
<span id="noscript">Please enable Javascript to view email address.</span><script type="text/javascript">
<script type="text/javascript">
/*<![CDATA[*/

/***********************************************
* Encrypt Email script- Please keep notice intact
* Tool URL: http://www.dynamicdrive.com/emailriddler/
* **********************************************/
document.getElementById('noscript').style.display = 'none'; /* hide contents of span element */
<!-- Encrypted version of: you [at] **********.*** //-->
var emailriddlerarray=[121,111,117,64,121,111,117,114,100,111,109,97,105,110,46,99,111,109]
var encryptedemail_id93='' //variable to contain encrypted email
for (var i=0; i<emailriddlerarray.length; i++)
encryptedemail_id93+=String.fromCharCode(emailriddlerarray[i])

document.write('<a href="mailto:'+encryptedemail_id93+'">Contact Us</a>')

/*]]>*/
</script>


[CODE]