adding a link for users to add my site to their favorites

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would actually like to add 2 new features.

First, the link that I see on other sites, that allows users to add to their
favorites with one click, EX: "Add us to your favorites".

Second, my site is a pet classifieds. Each ad, when opened, is it's own
page. If possible, how do I add a link to "send this ad to a friend?". In
other words, the viewer would click this link, and the link to the web page
they are looking at, would already be in the text, they only fill in the
e-mail address of the party they would like to send it to, and click "send".

Thank you in advance for any advice you can offer. I tried entering it in
the "help" in frontpage, but none of the results were what I was looking for.
 
You can use JavaScript to do this. See http://javascript.internet.com/ for
samples. For example, to add to favorites you could use:

<script
language="JavaScript">
<!--
if ((navigator.appVersion.indexOf("MSIE") > 0)
&& (parseInt(navigator.appVersion) >= 4))
{
document.write("<U><SPAN STYLE='font-family: ms sans serif, geneva;
font-size: 10pt; color: rgb(0,0,255); cursor:hand;'
onclick='window.external.AddFavorite(location.href, document.title);'>Add
this Site to your Favorites</SPAN></U>");
}
// -->
</script>

For send to a friend try
http://javascript.internet.com/page-details/send-this-page.html
 
The JavaScript site has step by step directions on where to place the code.
Just switch to Code View and copy and paste the code from their site into
the code on yours.
 
Back
Top