Re: Encoding email address
Sue, your code won't work as presented as it is all REMmed out; the <!-- ... --> is a comment section.
HTML Code:
<script>document.write('<a href="mailto:susann@bodaciousbeardies.com">email</a>');</script>
Nothing I do to the placeholder will cause the email link to drop down.
Acorn
Re: Encoding email address
If you link to Send e-mail and then use your email address for the link, Xara automatically encodes your email without any additional script.
Re: Encoding email address
Quote:
Originally Posted by
gwpriester
If you link to Send e-mail and then use your email address for the link, Xara automatically encodes your email without any additional script.
Gary, good catch,
Acorn
Re: Encoding email address
Well, Acorn, you know I must have done something wrong then. Everything I did dropped it. I see you wrote something else...will give that a shot.
Re: Encoding email address
I tried this but when you hover, you still see the info. How do I know it's encoded?
Quote:
Originally Posted by
gwpriester
If you link to Send e-mail and then use your email address for the link, Xara automatically encodes your email without any additional script.
Re: Encoding email address
It actually does work in all my sites but this one with Xara. In Dreamweaver, works like a charm! You can't view where it's going but when you click on it, it works! Used it for years!
Quote:
Originally Posted by
Acorn
Sue, your code won't work as presented as it is all REMmed out; the <!-- ... --> is a comment section.
HTML Code:
<script>document.write('<a href="mailto:susann@bodaciousbeardies.com">email</a>');</script>
Nothing I do to the placeholder will cause the email link to drop down.
Acorn
Re: Encoding email address
Sue, just try what Gary suggested and view the source code; Xara does it automatically.
Acorn
Re: Encoding email address
Wow, I am so impressed. Who would have known!! Now one question, when I view the source, looks like I am looking at all my pages that I am making and not just the one page. Is that correct? And please forgive me if I am wrong..since this is my 1st time doing this in XARA!
Quote:
Originally Posted by
Acorn
Sue, just try what Gary suggested and view the source code; Xara does it automatically.
Acorn
Re: Encoding email address
Quote:
Originally Posted by
Acorn
Sue, just try what Gary suggested and view the source code; Xara does it automatically.
Acorn
I think Sue is trying to remove the tag that shows the email address when you hover over the link, but not sure why. If someone wants to know the address all they have to do is click the link and it shows in the client anyway...unless I'm running up the wrong path.
Re: Encoding email address
Re: Encoding email address
I just tried this, I linked to the text Send email, and when I preview in all browsers I just see the pointing hand cursor.
If you create a graphic, a button say, then it is possible the email will show (though you could prevent this by converted the text to shapes for the button).
There is one downside. Not all email programs will automatically open the default email program. So to get around this, you can create a button with the email address, convert the text to shapes and link the button to the email address. The address with still be encoded and if the visitor cannot get the link to open her/his email program, then the visitor can see the address and manually enter it.
Re: Encoding email address
When I have used it, I link it to a word, and then it works fine. You can't see the email address, so that the bots don't spam me.
I have never used a button and converted the button to a shape and link it. Any directions on that? And as long as the bots can't grab the email addy, or I am not spammed, I'm fine with it. This is just the way I learned a long time ago to prevent the spam.
Quote:
Originally Posted by
gwpriester
So to get around this, you can create a button with the email address, convert the text to shapes and link the button to the email address. The address with still be encoded and if the visitor cannot get the link to open her/his email program, then the visitor can see the address and manually enter it.
1 Attachment(s)
Re: Encoding email address
Here is the code generated for the attached button. The text on the button has been converted to editable shapes. And this code is good for this generic button only. I just post it to show that the email address is not listed.
<a href="mailto:
 9;yname@do&# 109;ain.com" onclick="return(xr_nn());">
<img class="xr_rn_ xr_ap" src="index_htm_files/3.png" alt="" title="" onmousemove="xr_mo(this,0,event)" style="left:206px;top:52px;width:194px;height:60px ;"/>
</a>
<div id="xr_xo0" class="xr_ap" style="left:0; top:0; width:640px; height:100px; visibility:hidden; z-index:3;">
<a href="" onclick="return(false);" onmousedown="xr_ppir(this);">
</a>
</div>
Re: Encoding email address
Quote:
Originally Posted by
SueB
Wow, I am so impressed. Who would have known!! Now one question, when I view the source, looks like I am looking at all my pages that I am making and not just the one page. Is that correct? And please forgive me if I am wrong..since this is my 1st time doing this in XARA!
Sue, the source will show all the pages' code when it is a Supersite.
Acorn
Re: Encoding email address
Acorn, I did not make it a supersite. Making one page at a time to replace the current one. But in looking at the code, it seemed that it was more than the 1 page code!
Quote:
Originally Posted by
Acorn
Sue, the source will show all the pages' code when it is a Supersite.
Acorn
Re: Encoding email address
That's perfect! I like how it works. So how do I convert text to an editable shape?
Quote:
Originally Posted by
gwpriester
Here is the code generated for the attached button. The text on the button has been converted to editable shapes. And this code is good for this generic button only. I just post it to show that the email address is not listed.
<a href="mailto:myname@domain.com" onclick="return(xr_nn());">
<img class="xr_rn_ xr_ap" src="index_htm_files/3.png" alt="" title="" onmousemove="xr_mo(this,0,event)" style="left:206px;top:52px;width:194px;height:60px ;"/>
</a>
<div id="xr_xo0" class="xr_ap" style="left:0; top:0; width:640px; height:100px; visibility:hidden; z-index:3;">
<a href="" onclick="return(false);" onmousedown="xr_ppir(this);">
</a>
</div>
Re: Encoding email address
Arrange > Convert to Editable Shapes.
Re: Encoding email address
Re: Encoding email address
Quote:
Originally Posted by
gwpriester
... Xara automatically encodes your email without any additional script.
What you say here is very interesting.
My question is a little different, but somewhat related to the original post.
I belong to a business message board and in one thread they were talking about how to keep from getting spam from the email that's listed on one's website.
I actually get very little spam through the email that's on my website. (I get more from my other emails that I use signing on to other websites) I figured that I didn't get much spam because my website doesn't get much visitors, but I guess that wouldn't matter because the spam bots scour the web regardless.
Anyhow, one person the the other message board mentioned email obfuscation and had a link to a site where you enter your email and it makes up a code snippet to replace your "mailto:" code that the spam bots won't easily recognize, but let's real people see it and click it to send an email. So I thought I would give it a try.
When I opened my "Contact Me" page in Notepad to edit the actual HTML, I didn't see any "mailto:" code anywhere so that I could replace it. I did find where the code is that Xara is using to send email, but it doesn't have the "mailto:" term. (I also saw that I have the same things twice in the HTML, which confused me at first. But then I realized it must be one version is for my desktop site and the other version is for the mobile site.)
So, my question is - does that mean that Xara does encode (and thereby obfuscate) the email address? And does that make it harder for the spam bots to grab your email?
Re: Encoding email address
Quote:
So, my question is - does that mean that Xara does encode (and thereby obfuscate) the email address? And does that make it harder for the spam bots to grab your email?
Exactly.
I would suggest you change the email you use on these forums you participate in to a specific gmail account. So if your forum is OldSoldiersNeverDie then see if you can register a gmal account using that as the name: OldSoldiersNeverDie@gmail.com
This way if you get email with that address and it is spam, then you know the source.
Re: Encoding email address
Thank you. That's a good thing to know.