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.