How to Insert an Add to Favorites button

By Frank and Alfred plus DonD

 

Hi BGW,

Add an HTML Code Fragment to your site page. (Insert > Web Object/HTML...)

Paste the following into the BODY of the HTML Code Fragment. (Simply copy the code below, and use the "Paste to Body" button in the HTML dialog)


<a href="javascript:window.external.AddFavorite('http://y oursite.com', 'The Name you wish to Use for the Bookmark')">
<font face="Arial" size="2">Add Your Site Name to your favorites</font></a>
 


Paste to notepad first and make the edits detailed below to the script. Once modified, copy the script from notepad and then add to your HTML Code Fragment.

You should change the following to your needs before pasting.

1. http://yoursite.com - change to the URL of your website (you can also add a specific page suffix if needed)


2. The Name you wish to Use for the Bookmark - Change to what you want people to see in their favourites list e.g. Visit ABC Widgets.Com


3. Add Your Site Name to your Favourites - Change to the message you want to show as your link. eg. Add This site to your Favorites

4. You can also change the font attributes to whatever you like. The one I've used is Arial, size 2.
 


Insert the HTML Code Fragment to your page and position it where you want the link to appear.

Its that simple!!

Regards
 

Frank

 

Serif Forum link = Add to Favorites

 

Alfred cautions that the above only works in Internet Explorder.  A script from Dynamic Drive is discussed with customization directions in this WP10 thread.

 

<script type="text/javascript">

/********************************************* **
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
********************************************* **/

function bookmarksite(A Oficina dos Presentes, www.aoficinadospresentes.pt){
if (document.all)
window.external.AddFavorite(A Oficina dos Presentes, www.aoficinadospresentes.pt);
else if (window.sidebar)
window.sidebar.addPanel(A Oficina dos Presentes, www.aoficinadospresentes.pt, "")}

</script>
And the following to be added to an image/link or botton:

<a href="javascript:bookmarksite('A Oficina dos Presentes', 'http://www.aoficinadospresentes.pt')">Bookmark this site!</a>
 

 

Serif forum -  " target="_blank" title="Add to favorites 32 - forum link">Create a button with add to favorites

 

 

And, from DonD

Hi

On my demo site home page I just hyperlinked a piece of text to an internet page and put in the URL address box. You can do the same with a button.
 

'donds help demo site', 'http://www.dond.ulmb.com')

This works in IE & FF but not safari browsers. Which is good enough for me.

Dond

 

Serif forum link - Add to Favorites