bluedolphin said:
Hi, I have no idea even how to begin to make a
tell a friend link on my page, but I do want to create it
myself without subscribing to one. Is it possible.
Can someone give me really basic step by step easy
directions to create one, I am an absolute beginner, I
tried google but I cannot understand how to do it, it goes
over my head. Can someone give me really basic simple
step by step instructions on how to do it please. thankyou.
Here are instructions to reflect what I do. It requires that the viewer
have a default email program, e.g. OE.
I have made a few minor changes, so if it doesn't work, let me know.
You don't have to retype the code - just highlight it, cut it from this
post with Ctl-C and paste it into FP with Ctl-V
Enter Code or HTML view (click on tab at botom of page)
Add this HTML where you want the link to appear:
Email this page to a friend
<form name="eMailer" action="">
Enter recipient's e-mail:
<input type="text" id="address" size="30" />
<input type="button" value="Send" style="cursor
ointer"
onclick="mailThisUrl()" />
</form>
Find the </head> tag and add this *before* it:
var cEA_err = false
function checkEmailAddress(field)
{
// the following expression in () after 'match' must be all on one
line...
if
(field.value.match(/(^(\S+@)\S+(((\.ac)|(\.aero)|(\.arpa)|(\.biz)|(\.co)|(\.com)|(\.coop)|(\.edu)|(\.firm)|(\.gov)|(\.info)|(\.int)|(\.jobs)|(\.mil)|(\.museum)|(\.name)|(\.nom)|(\.net)|(\.org)|(\.pro)|(\.store)|(\.travel)|(\.web))(\.\S{2})?)$)/i))
return true
else
{ if (!cEA_err)
{ cEA_err = true
alert('Please enter a valid e-mail address.') }
else
{ if (confirm('Are you sure this is a correct e-mail address?\n\n'
+ field.value + '\n\n'
+ 'Enter OK to accept, Cancel to re-enter'))
return true }
field.focus()
field.select()
return false }
}
function mailThisUrl()
{
var thispage = parent.location.href
var subj = "I thought this might interest you..."
var text = "Here is an interesting Website: "
var content = "mailto:"
+ document.eMailer.address.value
+ "?subject=" + subj
+ "&body=" + text + "%0d%0a"
+ parent.document.title
+ " (" + thispage + ")"
if (checkEmailAddress(document.eMailer.address))
window.location = content
}
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website:
http://trevorl.mvps.org/