Re: Pop Up bookmark in hotspot
From: Stefan B Rusynko (sbr_enjoy_at_hotmail.com)
Date: 12/16/04
- Next message: Stefan B Rusynko: "Re: trouble accessing websites from "OPEN" files after upgrading to 20"
- Previous message: Canu: "Font List Issue"
- In reply to: Pam: "Re: Pop Up bookmark in hotspot"
- Next in thread: Pam: "Re: Pop Up bookmark in hotspot"
- Reply: Pam: "Re: Pop Up bookmark in hotspot"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 16 Dec 2004 05:57:25 -0500
Remove All the code you pasted in the hyperlink tag (a href=) and paste it in the HEAD section (before the </head> tag) as
<script LANGUAGE="JavaScript">
Function addtofavorites() {
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
var url="http://WWW.YOURWEBSITE.COM/";
var title="YOURWEBSITE DESCRIPTION (this will display on favorites listing)";
document.write('<A HREF="javascript:window.external.AddFavorite(url,title);"');
document.write('<small>Bookmark YOURWEBSITE!</small><br></a>');
} else {
var msg = "<b>Bookmark YOURWEBSITE!</b>";
if(navigator.appName == "Netscape") msg += " <b> - press(Ctrl-D) on your keyboard.</b>";
document.write(msg);
} }
</script>
Note: The above code can not wrap - each line above ends in a { or } or ;
Then in your hyperlink tag (a href=" ") add: javascript: addtofavorites()
so it look like:
<a href="javascript:addtofavorites(); title="Add to favorites">
-- _____________________________________________ SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ] "Warning - Using the F1 Key will not break anything!" (-; To find the best Newsgroup for FrontPage support see: http://www.net-sites.com/sitebuilder/newsgroups.asp _____________________________________________ "Pam" <pam_staley(removethis)@hotmail.com> wrote in message news:aG4wd.407$RH4.45@newsread1.news.pas.earthlink.net... | the 'bookmark' I want the link to be is the one for the script that pops up | the little box that says "Bookmark this Page" and then opens up the viewer's | favorites and adds the page to their bookmarked sites. | | I did try what you suggested - just in case I'm missing something in the | directions - I drew my hotspot around the picture - put in index.html and | then went into the code - I took out <area href="index.html" and then | pasted in: | | <area href=<script LANGUAGE="JavaScript"> | | if ((navigator.appName == "Microsoft Internet Explorer") | && (parseInt(navigator.appVersion) >= 4)) | { | var url="http://WWW.YOURWEBSITE.COM/"; | var title="YOURWEBSITE DESCRIPTION (this will display on favorites | listing)"; | document.write('<A | HREF="javascript:window.external.AddFavorite(url,title);"'); | document.write('<small>Bookmark YOURWEBSITE!</small><br></a>');} | else { | var msg = "<b>Bookmark YOURWEBSITE!</b>"; | if(navigator.appName == "Netscape") msg += " <b> - press(Ctrl-D) on your | keyboard.</b>"; | document.write(msg); | } | </script> | | but it still doesn't work | | any other ideas? maybe I can't do this type of thing? | -- | Blessings, | Pam | | | "Rob Giordano (aka: Crash Gordon®)" <NOVIAGRAwebmaster@siriussystems.com> | wrote in message news:eKtpSHw4EHA.3756@TK2MSFTNGP14.phx.gbl... | try linking it to the page that the bookmark will be on, then try altering | the code. | | | "Pam" <pam_staley(removethis)@hotmail.com> wrote in message | news:W93wd.594$9j5.145@newsread3.news.pas.earthlink.net... | | I think I got buried previous and I really need an answer to this - so | | forgive me for asking again- | | | | I have a client that has sent me his own artwork and within the artwork is | a | | 'button' to click to bookmark the site - how can I incorporate the script | | for bookmark on this 'button' with the hotspot tool? using fp2003 | | | | the answers I got were good - however when I draw the hotspot in the | picture | | there is really no where to put the script - I have to put something in | the | | 'address' box or the hotspot disappears. So what I tried was to put | | 'something' in and then go into the edit view and re do the script ... it | | seems like it works, but then when I hit preview and click on it - it | keeps | | going to a 'page not found' .. I tried adding the 1st part of the script | to | | the head tag and then the link script to where the code is at on the | hotspot | | link ... but then I get an error on the script....HELP??!!! | | | | any help appreciated | | | | thanks | | | | | | | | | | -- | | Blessings, | | Pam | | | | | | | |
- Next message: Stefan B Rusynko: "Re: trouble accessing websites from "OPEN" files after upgrading to 20"
- Previous message: Canu: "Font List Issue"
- In reply to: Pam: "Re: Pop Up bookmark in hotspot"
- Next in thread: Pam: "Re: Pop Up bookmark in hotspot"
- Reply: Pam: "Re: Pop Up bookmark in hotspot"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|