add to favorites

P

Pipe

Hi,
I want to use this script..can i place it in a interactive button? and where

<script language="JavaScript" type="Text/Javascript"><!--
// Hide script from older browsers
// script by http://www.hypergurl.com
var urlAddress = "http://www.cuteclothing.co.uk";
var pageName = "Cute Clothing for Children";

function addToFavorites()
{
if (window.external)
{
window.external.AddFavorite(urlAddress,pageName)
}
else
{
alert("Sorry! Your browser doesn't support this function.");
}
}
// --></script>

WHERE DO I PLACE THIS PART OF THE SCRIPT WITHIN MY IB CODE???

href="javascript:addToFavorites()

IB CODE

<img border="0" id="img22" src="images/addto3.gif" height="17" width="166"
alt="Add Cute to Favourites" fp-style="fp-btn: Soft Tab 7; fp-font: Century
Gothic; fp-font-color-normal: #C84C85; fp-font-color-hover: #993366;
fp-font-color-press: #666699; fp-transparent: 1; fp-proportional: 0"
fp-title="Add Cute to Favourites" align="right"
onmouseover="FP_swapImg(1,0,/*id*/'img22',/*url*/'images/addto1.gif')"
onmouseout="FP_swapImg(0,0,/*id*/'img22',/*url*/'images/addto3.gif')"
onmousedown="FP_swapImg(1,0,/*id*/'img22',/*url*/'images/addto2.gif')"
onmouseup="FP_swapImg(0,0,/*id*/'img22',/*url*/'images/addto1.gif')">
 
S

Steve Easton

Use an onclick event like this: onclick="addToFavorites()" and add it just below the onmouseup
event before the closing >

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top