Tell a friend

I have a piece of javascript that works as a tell a friend link, but I would prefer it to be applied to a graphic button I’ve created. As I’m a bit of a novice where this is concerned how can I adapt / add it to a graphic

Tell a friend about Us

Thank you

Nathan Garner
Partner

Austin Wells Design Consultants
1 Elmgate Drive, Littledown, Bournemouth BH7 7EF
+44 (0)1202 301271
email@hidden
http://www.awdc-creative.com

Member of NAPP

Select the graphic, open the Hyperlink dialog and add this to the field on the External tab:

javascript:location.href=‘mailto:?SUBJECT=‘+document.title+’&BODY=’+escape(location.href)

That should be it.

Joe

On 5 Aug 2008, at 15:27, Nathan Garner wrote:

I have a piece of javascript that works as a tell a friend link, but I would prefer it to be applied to a graphic button I’ve created. As I’m a bit of a novice where this is concerned how can I adapt / add it to a graphic

Tell a friend about Us

Thank you

Nathan Garner
Partner

Austin Wells Design Consultants
1 Elmgate Drive, Littledown, Bournemouth BH7 7EF
+44 (0)1202 301271
email@hidden
http://www.awdc-creative.com

Member of NAPP


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Joe, there must be something wrong in the code, as it doesn’t work on my PC at all and on my Mac using FF it doesn’t put a url link in the body of the message.

Back to the drawing board…

Nathan Garner
Partner

Austin Wells Design Consultants
1 Elmgate Drive, Littledown, Bournemouth BH7 7EF
+44 (0)1202 301271
email@hidden
http://www.awdc-creative.com

Member of NAPP

On 5 Aug 2008, at 18:40, Joe Billings wrote:

Select the graphic, open the Hyperlink dialog and add this to the field on the External tab:

javascript:location.href=‘mailto:?SUBJECT=‘+document.title+’&BODY=’+escape(location.href)

That should be it.

Joe

On 5 Aug 2008, at 15:27, Nathan Garner wrote:

I have a piece of javascript that works as a tell a friend link, but I would prefer it to be applied to a graphic button I’ve created. As I’m a bit of a novice where this is concerned how can I adapt / add it to a graphic

Tell a friend about Us

Thank you

Nathan Garner
Partner

Austin Wells Design Consultants
1 Elmgate Drive, Littledown, Bournemouth BH7 7EF
+44 (0)1202 301271
email@hidden
http://www.awdc-creative.com

Member of NAPP


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Try this:

javascript:window.location='mailto:?subject=‘+this.document.title+’&body='+this.location

I did write a little Action that places a text field and a button on he page allowing the visitor to type the email address of the person they want to send the link to. You can specify the text on the button and the message in the email through the Action palette. Let me know if you want it.

Joe

On 6 Aug 2008, at 09:23, Nathan Garner wrote:

Thanks Joe, there must be something wrong in the code, as it doesn’t work on my PC at all and on my Mac using FF it doesn’t put a url link in the body of the message.

Back to the drawing board…

Nathan Garner
Partner

Austin Wells Design Consultants
1 Elmgate Drive, Littledown, Bournemouth BH7 7EF
+44 (0)1202 301271
email@hidden
http://www.awdc-creative.com

Member of NAPP

On 5 Aug 2008, at 18:40, Joe Billings wrote:

Select the graphic, open the Hyperlink dialog and add this to the field on the External tab:

javascript:location.href=‘mailto:?SUBJECT=‘+document.title+’&BODY=’+escape(location.href)

That should be it.

Joe

On 5 Aug 2008, at 15:27, Nathan Garner wrote:

I have a piece of javascript that works as a tell a friend link, but I would prefer it to be applied to a graphic button I’ve created. As I’m a bit of a novice where this is concerned how can I adapt / add it to a graphic

Tell a friend about Us

Thank you

Nathan Garner
Partner

Austin Wells Design Consultants
1 Elmgate Drive, Littledown, Bournemouth BH7 7EF
+44 (0)1202 301271
email@hidden
http://www.awdc-creative.com

Member of NAPP


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Works great thanks Joe. And yes please that action would be good to use too.

Regards,

Nathan Garner
Partner

Austin Wells Design Consultants
1 Elmgate Drive, Littledown, Bournemouth BH7 7EF
+44 (0)1202 301271
email@hidden
http://www.awdc-creative.com

Member of NAPP

On 6 Aug 2008, at 09:49, Joe Billings wrote:

Try this:

javascript:window.location='mailto:?subject=‘+this.document.title+’&body='+this.location

I did write a little Action that places a text field and a button on he page allowing the visitor to type the email address of the person they want to send the link to. You can specify the text on the button and the message in the email through the Action palette. Let me know if you want it.

Joe

On 6 Aug 2008, at 09:23, Nathan Garner wrote:

Thanks Joe, there must be something wrong in the code, as it doesn’t work on my PC at all and on my Mac using FF it doesn’t put a url link in the body of the message.

Back to the drawing board…

Nathan Garner
Partner

Austin Wells Design Consultants
1 Elmgate Drive, Littledown, Bournemouth BH7 7EF
+44 (0)1202 301271
email@hidden
http://www.awdc-creative.com

Member of NAPP

On 5 Aug 2008, at 18:40, Joe Billings wrote:

Select the graphic, open the Hyperlink dialog and add this to the field on the External tab:

javascript:location.href=‘mailto:?SUBJECT=‘+document.title+’&BODY=’+escape(location.href)

That should be it.

Joe

On 5 Aug 2008, at 15:27, Nathan Garner wrote:

I have a piece of javascript that works as a tell a friend link, but I would prefer it to be applied to a graphic button I’ve created. As I’m a bit of a novice where this is concerned how can I adapt / add it to a graphic

Tell a friend about Us

Thank you

Nathan Garner
Partner

Austin Wells Design Consultants
1 Elmgate Drive, Littledown, Bournemouth BH7 7EF
+44 (0)1202 301271
email@hidden
http://www.awdc-creative.com

Member of NAPP


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options