Add to Favourites

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

Guest

Hi,
Can I use a interactive button in fp03 to open my "add to favourites"
control panel tryed but I dont seem to get it to work..
Any idea's?

thxs
 
Hi,
Yes I have already been down them roads, I have the sript for usung a form
button and using justa line of text ie "add to favorites" I need to be able
to use an *INTERACTIVE* button, I cant find or write the script for this :((

any help wud be good
 
IB are just images with hyperlinks and onmouse over/out/down events attached to them (using Javascript)

Just call your add to favorites script for the hyperlink

<a href="javascript:yourfunctioname();" ....>
--




| Hi,
| Yes I have already been down them roads, I have the sript for usung a form
| button and using justa line of text ie "add to favorites" I need to be able
| to use an *INTERACTIVE* button, I cant find or write the script for this :((
|
| any help wud be good
|
| "Mark Fitzpatrick" wrote:
|
| > There are lots of JavaScripts out there to do this. Try
| > javascript.internet.com or www.dynamicdrive.com. Here is one script that
| > looks pretty good:
| > http://javascript.internet.com/cookies/bookmark-reminder.html
| >
| > Hope this helps,
| > Mark Fitzpatrick
| > Microsoft MVP - FrontPage
| >
| > | > > Hi,
| > > Can I use a interactive button in fp03 to open my "add to favourites"
| > > control panel tryed but I dont seem to get it to work..
| > > Any idea's?
| > >
| > > thxs
| >
| >
| >
 
Hi,
I was using this script..

<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')">


Hope this helps
 
You need to wrap the whole image tag in a hyperlink

<a href="javascript:addToFavorites();" title="Add Cute to Favourites">
<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')">
</a>

--




| Hi,
| I was using this script..
|
| <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')">
|
|
| Hope this helps
|
 
Back
Top