Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 
Play Blast Billiards on your PC desktop! This downloadable game features six of the best levels from Original, Trick, Ultimate and Deluxe Blast Billiards!


Web Building >> Web design & build
 |  Print Topic
Jump to first unread post. Pages: 1
sam_f
new user


Reg'd: Sun
Posts: 14
disguising e-mail address
      #33992 - Sun Jan 11 2004 04:49 PM

I'd like to convert an e-mail adress into character entities for inclusion into a web page. I seem to remember, a while ago there was a small program that can do this automatically. Can anyone help ?


Post Extras: Print Post   Remind Me!   Notify Moderator  
Sam
regular


Reg'd: Tue
Posts: 432
Re: disguising e-mail address [Re: sam_f]
      #34014 - Sun Jan 11 2004 07:01 PM

You can do that here: http://alicorna.com/obfuscator.html

Post Extras: Print Post   Remind Me!   Notify Moderator  
TheFatControlleRAdministrator
Forum Admin


Reg'd: Fri
Posts: 6805
Loc: Megatripolis
Re: disguising e-mail address [Re: sam_f]
      #34067 - Sun Jan 11 2004 11:14 PM

Hi Sam,

Welcome to the forum.

You can achieve this using Javascript. If you go to the Contact Us page on this site, then View Source, you'll see the script below in use.

Place this in the HEAD of your HTML;

<script language="javascript">
<!--
function safeEmail (user,host) {
return user+'@'+host;
}
//-->
</script>

And this in the BODY wherever you want to display an email address;

<script language="javascript">
document.write('<a href="mailto:'+safeEmail('yourname','yourdomain.co.uk')+'">'+
safeEmail('letters','web-user.co.uk')+'');
</script>

NOTE:
The only editing to be done is the yourname & yourdomain.co.uk strings.
TFC
Nothing is a problem for me...


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
0 registered and 2 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 123

Contact Us | Privacy statement Main website