Click to See Complete Forum and Search --> : Generating Email Subject Text


Wes Alexander
12-22-2002, 11:32 AM
Anybody got any ideas on how to modify the script below to generate an email SUBJECT?

<!-- Begin
function isPPC() {
if (navigator.appVersion.indexOf("PPC") != -1) return true;
else return false;
}
if(isPPC()) {
document.write('<b>Send <A CLASS="contact" HREF=\"mailto:\?subject\=Take a look at this web page article I found, ' + document.title + '?body=You can see this page at: ' + window.location + '\" onMouseOver="window.status=\'Send your friends e-mail about this page\'; return true" TITLE="Send your friends e-mail about this page"> a link to this page <\/A> to a friend</b>');
}
else { document.write('<b>Send <A CLASS="contact" HREF=\"mailto:\?body\=Take a look at this web page article I found, ' + document.title + '. You can see this page at: ' + window.location + '\" onMouseOver="window.status=\'Send your friends e-mail about this page\'; return true" TITLE="Send your friends e-mail about this page"> this page <\/A> to a friend</b>');
}
// End -->

aepstar
12-22-2002, 01:17 PM
well here's jsut a piece of code, but it works well

if u need help just ask me


oops, this one works fine:


<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<BODY>
<script language="JavaScript">
document.write("<b>Send <A CLASS=\"contact\" HREF=\"mailto:\?subject\=Take a look at this web page article I found "+document.title+"&body=You can see this page at: " + window.location + " \" onMouseOver=\"window.status=('Send your friends e-mail about this page'); return true\" TITLE=\"Send your friends e-mail about this page\"> a link to this page </A> to a friend</b>");
</script>
</BODY>
</HTML>

Wes Alexander
12-22-2002, 07:50 PM
This works fantastic. Thanks for the help.